Chartjs-Chart.js change Color of a Point during runtime

0👍

use array for colors

enter image description here

Chart1.config.data.datasets[3]['pointBackgroundColor'] = Array.from(Array(16)).map((e, i) => i === 2 ? 'rgba(255, 0, 0,0.5)' : 'rgba(0, 0, 0, 1)' );

Leave a comment