nagix / chartjs-plugin-colorschemes

Predefined color schemes for Chart.js
MIT License
263 stars 58 forks source link

how add bordercolor? #16

Closed 0x14Rp closed 3 years ago

0x14Rp commented 4 years ago

if i use colorschemes: { scheme: 'brewer.Paired12', } how can add bordercolor to my graphic?

ger82 commented 3 years ago
let chartColorsBlue = 'rgb(54, 162, 235)';
....
datasets: [{
    label: "foo",
    fill: false,
    backgroundColor: [chartColorsBlue],
    borderColor: [chartColorsBlue],
    ...
]}

https://www.chartjs.org/docs/latest/ https://nagix.github.io/chartjs-plugin-colorschemes/

0x14Rp commented 3 years ago

thanks this works fine! 🤘