Accepted answer

so i was able to get the colors working by doing this:

    datasets: [
            label: "my first dataset",
            fillcolor: ["rgba(0,10,220,0.5)","rgba(220,0,10,0.5)","rgba(220,0,0,0.5)","rgba(120,250,120,0.5)" ],
            strokecolor: "rgba(220,220,220,0.8)", 
            highlightfill: "rgba(220,220,220,0.75)",
            highlightstroke: "rgba(220,220,220,1)",
            data: pokedataset

hope this can help someone who has a similar issue!


the background color will change the color of the bars.

so, you can give different colors to different bar.

datasets: [
        label: 'my first dataset',
        backgroundcolor: ['rgba(0,10,220,0.5)', 'rgba(220,0,10,0.5)'],
        bordercolor: 'rgba(0,0,0,1)',
        data: pokedataset,

Related Query

More Query from same tag