use of shipped kurkle/color utils in own code #10351
pavel-francirek
started this conversation in
General
Replies: 2 comments
-
Something like this should work: console.log(Chart.helpers.color('red').saturate(0.5).rgbString()); OR (esm) import {color} from 'chart.js/helpers';
console.log(color('red').saturate(0.5).rgbString()); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Great, thank you. This is exactly what is was looking for. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
is it possible to use kurkle/color utils (saturate, brighten ..) that are shipped with Chartjs minified version in own code? Or at least in Chartjs configuration? I'd like to avoid code duplicity.
Pavel
Beta Was this translation helpful? Give feedback.
All reactions