What is the "color" option default? #52
stockiNail
started this conversation in
Ideas
Replies: 2 comments 4 replies
-
I think you are correct, the |
Beta Was this translation helpful? Give feedback.
4 replies
-
is there is any option to give background for label has shown in test sample from repo: |
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
-
I have a doubt about what's the default of
color
option.Having a look to the code and the
overrides
of the controller, I see:chartjs-chart-sankey/src/controller.js
Line 370 in 95ed08b
It's defined as scriptable options but it will be never called.
In fact, to set the
fillStyle
is using doing as following:chartjs-chart-sankey/src/controller.js
Line 208 in 95ed08b
where it seems that if
color
is missing, it usesblack
.Furthermore, it's weird why is using
dataset.color
instead ofme.options.color
.Doing some tests, using
me.options.color
, the callback to set the option seems to be invoked (but not the callback set in theoverrides
).I don't know if it's an issue but I would like to use
me.options.color
. Make sense or am I wrong?Beta Was this translation helpful? Give feedback.
All reactions