When trying to specify colors for a slice on a pie chart, the config options don't work with this plugin. However, if I can create the chart how I want it in the Mermaid playground/live editor.
For example, this is a valid custom pie chart in Mermaid:
---
config:
theme: "base"
themeVariables:
pie1: "#bf24b9"
pie2: "#ff0000"
pie3: "#00ff00"
pie4: "#0000ff"
---
pie
"Graphics" : 40
"Sound" : 30
"Technology" : 20
"Gameplay": 10
Instead when I use this extension, the colors of the base theme cannot be overridden. I am not sure if this is a bug or a design decision, but I was hoping to use this plugin instead of having to utilize pictures of the charts. Being able to modify the colors is important for using the pie charts with the same categories with different parameters.
| Software |
Version |
| MediaWiki |
1.43.6 (LTS) |
| PHP |
8.3.6 |
| Web Server |
Apache |
| Database |
PostgreSQL 18.1 |
When trying to specify colors for a slice on a pie chart, the config options don't work with this plugin. However, if I can create the chart how I want it in the Mermaid playground/live editor.
For example, this is a valid custom pie chart in Mermaid:
Instead when I use this extension, the colors of the base theme cannot be overridden. I am not sure if this is a bug or a design decision, but I was hoping to use this plugin instead of having to utilize pictures of the charts. Being able to modify the colors is important for using the pie charts with the same categories with different parameters.