| ▲ | rdos 12 hours ago | |
I can't seem to change the colors of the pie chart, other than the predefined themes. But all of those are horrible for a pie chart. | ||
| ▲ | jsmith45 11 hours ago | parent | next [-] | |
Yeah, as far as I know, you need to define a customized theme to customize pie chart colors. You can prepend the chart with initialization logic like: %%{init: {"theme": "base", "themeVariables": { "pie1": "#FF5733", "pie2": "#33FF57", "pie3": "#3357FF", "pieStrokeColor": "#000000", "pieStrokeWidth": 3, "pieOpacity": 0.8 }}}%% This looks like it works on this site too. | ||
| ▲ | pjot 11 hours ago | parent | prev [-] | |
To be fair, pie charts are horrible in general. | ||