i need to change color schema in line chart like demos in here https://swimlane.github.io/ngx-charts/#/ngx-charts/line-chart . Need example plz,plunker may be good
You can look at the code of the demo page for that:
https://github.com/swimlane/ngx-charts/blob/master/demo/app.component.ts#L408
The color schemes need to have the following format:
{
domain: ['#000000', '#FF0000']
}
These are the built-in color schemes into the library:
https://github.com/swimlane/ngx-charts/blob/master/src/utils/color-sets.ts
You can also reference these by the name
These are the built-in color schemes into the library:
https://github.com/swimlane/ngx-charts/blob/master/src/utils/color-sets.ts
You can also reference these by the name
Could you explain how? i.e. I want to use the 'vivid' colorset, and setting [scheme] to 'vivid' just creates lots of errors about
Cannot read property 'scaleType' of undefined
These are the built-in color schemes into the library:
https://github.com/swimlane/ngx-charts/blob/master/src/utils/color-sets.ts
You can also reference these by the nameCould you explain how? i.e. I want to use the 'vivid' colorset, and setting [scheme] to 'vivid' just creates lots of errors about
Cannot read property 'scaleType' of undefined
just say scheme="flame"
These are the built-in color schemes into the library:
https://github.com/swimlane/ngx-charts/blob/master/src/utils/color-sets.ts
You can also reference these by the nameCould you explain how? i.e. I want to use the 'vivid' colorset, and setting [scheme] to 'vivid' just creates lots of errors about
Cannot read property 'scaleType' of undefinedjust say scheme="flame"
[showYAxisLabel]="showYAxisLabel" [xAxisLabel]="xAxisLabel" [yAxisLabel]="yAxisLabel" (select)="onSelect($event)">
You can look at the code of the demo page for that:
https://github.com/swimlane/ngx-charts/blob/master/demo/app.component.ts#L408
The color schemes need to have the following format:
{ domain: ['#000000', '#FF0000'] }These are the built-in color schemes into the library:
https://github.com/swimlane/ngx-charts/blob/master/src/utils/color-sets.ts
You can also reference these by the name
Can you please share how to reference it by name
Most helpful comment
You can look at the code of the demo page for that:
https://github.com/swimlane/ngx-charts/blob/master/demo/app.component.ts#L408
The color schemes need to have the following format:
These are the built-in color schemes into the library:
https://github.com/swimlane/ngx-charts/blob/master/src/utils/color-sets.ts
You can also reference these by the name