-
I would like to have some lines in my line chart as "dotted", how can I do this? |
Beta Was this translation helpful? Give feedback.
Answered by
criscola
Dec 22, 2022
Replies: 1 comment
-
Nevermind, found it: <Chart
options={{
data: graphData,
primaryAxis,
secondaryAxes,
getSeriesStyle: series => {
if (shouldLineBeDotted(series.label)) {
return {strokeDasharray:"5,5"};
}
return {};
}
// defaultColors: ["#ff0000", "#00ffff", "#ff00ff", "#ff0000", "#00ffff", "#ff00ff"], // TODO: How to color code?
}}
/> |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
criscola
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nevermind, found it: