I have a line chart made with AngularJS - http://jtblin.github.io/angular-chart.js/#getting_started - Chart.js.
<canvas id="line" class="chart chart-line" data="data"
labels="labels" legend="true" series="series"
click="onClick" options="options">
</canvas>
$scope.labels = labels_filtered;
$scope.series = [word];
$scope.data = [_.values(response.graph_values)];
Is it possible to set a different color for some point in the graph depending on some conditions? (for example: for points with value > 10 set color red, else set color green)
[Edit] Link to small demo: http://plnkr.co/edit/S0W5wPznMu4bCxRjOppl?p=preview . What I would like is to set the colors of the dots with 80,81 values with red and the other points with another color.
Thanks.
I don't think the angular version exposes the chart points directly.
But you could use the animation complete handler to update the point colors once the rendering is done. You can set the animation complete handler using the ChartJsProvider that the angular-chart.js provides
Plunkr - http://plnkr.co/edit/ggqcmpkhFXsinnm9aDbM?p=preview