Open eloyvallinaes opened 4 years ago
any feedback on this? I have the same problem
A workaround is to set up these four dataset properties:
dataset : {
backgroundColor : "lightgray",
pointBackgroundColor : "lightgray",
borderColor : "white",
pointBorderColor : "white",
}
the BackgroundColor
and BorderColor
will set what's displayed on the legend, while pointBackgroundColor
and pointBorderColor
will set what you see on the plot. Hope that helps!
thanks,
what also helped me as a workaround is manually disabling plugin for specific chart:
options.plugins: { colorschemes: false }
Setting specific colors for some traces in Chart of type 'scatter' doesn't prevent them for catching colors from the scheme. More exactly, even though the legend does show what would be expected, the markers on the canvas retain the colors supplied by the colorscheme.
MWE
Output