Chart.js icon indicating copy to clipboard operation
Chart.js copied to clipboard

Linechart cannot change the pointColor in version 1.0.2

Open Wvhf opened this issue 10 years ago • 1 comments

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

Wvhf avatar Apr 12 '16 15:04 Wvhf

The proper option is pointStrokeColor

etimberg avatar Apr 23 '16 02:04 etimberg