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.
You will have to manually set point color of your chart:
myLineChart.datasets[0].points[4].fillColor = "rgba(000,111,111,55)" ;Example: