score:8
Accepted answer
https://jsfiddle.net/e8n4xd4z/15822/
You can use an array of colors to the pointBackgroundColor
in the options
as follows
pointBackgroundColor: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"]
Then if you want to change any individual point color later you can do that as follows
myChart.config.data.datasets[0]['pointBackgroundColor'][4] = 'red';
I have attached the link to the updated jsfiddle. You can check that. Cheers!
Source: stackoverflow.com
Related Query
- Changing style of individual point Chart.js
- how to change point style legend to diamond in chart js
- line chart with {x, y} point data displays only 2 values
- Changing fontFamily on ChartJS bar chart
- Chart.js: Dynamic Changing of Chart Type (Line to Bar as Example)
- chart.js scatter chart - displaying label specific to point in tooltip
- How to display Line Chart dataset point labels with Chart.js?
- chartjs show dot point on hover over line chart
- Highlight a particular point in chart JS
- Changing cursor to pointer on Chart.js bar chart when hover (mousemove) event is disabled?
- Changing x axis labels in Chart.js line chart
- Center point labels between ticks (Polar Area Chart JS)
- ChartJS: Draw vertical line at data point on chart on mouseover
- ChartJS - Line chart issue with only 1 point
- Angular 2 chart - change point radius
- Changing color of specific chartjs point
- how to programmatically make a line chart point active/highlighted
- Chart Js, Style some ticks on the axis differently
- Chart JS: Ignoring x values and putting point data on first available labels
- Removing ChartJS 2 border and shadow from point style legend
- Change size of a specific point on a line chart in Chart.js
- Show point values in Radar Chart using chart.js
- Add a text as tooltip for each point on a line chart
- Changing width of chart.js chart without changing height
- Chart.js tooltip at any point on the chart
- Chart.js V2 line chart missing point
- Display point style on legend in chart.js
- Can individual bubbles in a chartjs bubble chart have labels?
- Chart Js update legend boxes of graph with graph line style
- ChartJS v2 - Keep tooltip open when user click on a point of a multiple lines chart
More Query from same tag
- automatic legend translation on chart.js
- Chart.js - Creating Custom Chart Types
- HTML in Chart.js labels
- Chart js legend are being cut off if the bar height is equal to port height - chart js
- Using Charts.js with react
- Set Chart Background Image - Chart.js
- How can I show Bootstrap modal when on click in individual bars in chart.js
- Have all label in Chartjs be at fixed positions
- hide labels and 0 values in chart.js?
- How to realtime plotting firebase data to ChartJS
- ChartJS - how to display line chart with single element as a line? (not as a dot)
- Updating in chart.js
- Angular 8 & ChartJs change color in pie chart
- Changing the base of the logarithmic scale in Chart.js
- How to make bar chart cover multiple labels?
- how to only show zero grid axes at center and hide all other gridlines in chart js
- Chart.js pie chart overflowing div
- Removing Dynamic Fields by Association in MongoDB Aggregation
- How do I type string in the tooltip in Chart.js?
- How to draw x axis and y-axis origin line draw in ng2-google-charts?
- Rest Api data fetching error while using chartjs
- Get multiple boxes in background in ChartJs
- Use Ternary Option with Chart.js and AngularJs
- how to change thickness of two doughnut charts in chartjs
- Display two datasets from an array using chart.js in node.js
- toDataURL() gives checkered background to downloaded chart
- How do I customise doughnut chart using chart.js
- issue with customisation of Chart new.js for bar chart
- ChartJS v2 - Keep tooltip open when user click on a point of a multiple lines chart
- Is there a way to style multiple borders on Doughnut chart with Chart.js library?