Chart.js
Chart.js copied to clipboard
Linechart cannot change the pointColor in version 1.0.2
Hello,
When i try to change the pointColor of a linechart, nothing happens. When i change the strokeColor, the color does change. Same for the Fillcolor property.
For example:
This works:
chart.datasets[0].strokeColor = 'rgba(215, 21, 21, 1)';
This doesn't work:
chart.datasets[0].pointColor = 'rgba(215, 21, 21, 1)';
I Also invoke the following method after setting a new color to apply the changes:
scope.chart.update();
I believe that the update() method is missing functionality to update the pointColor.
Could this functionality possibly be added to the chart library ?
Kind regards
The proper option is pointStrokeColor