33👍
✅
As per the readme of ng2-charts
, you can use options
to change any properties not exposed by ng2-charts
itself.
Add [options]="options"
to your template, and an options
variable to your component:
private options: any = {
legend: { position: 'left' }
}
0👍
With ng-charts version 4.0.1. it’s:
private options: any = {
plugins: { legend: { position: 'left' } }
}
Source:stackexchange.com