Doesn't Support Specifying Pie Chart Colors
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- php
- Domain
- data-visualization
Research direction
No source files or tests are named in the report. Start by tracing how the extension passes Mermaid configuration for pie charts, compare it with the provided Mermaid playground example, and verify that themeVariables such as pie1 through pie4 can override the base theme when the chart is rendered.
Written by the indexing model from the issue text.
Description
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 |
- Dominant language
- PHP
- Stars
- 48
- Forks
- 26
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SemanticMediaWiki/Mermaid
-
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
SemanticMediaWiki/Mermaid#139 ·
-
Update to Mermaid 11 Open
Difficulty 3/5 1-2 days Newbie friendliness 48/100
SemanticMediaWiki/Mermaid#143 ·
-
Difficulty 5/5 Over a week Newbie friendliness 30/100
SemanticMediaWiki/Mermaid#138 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
SemanticMediaWiki/Mermaid#135 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
SemanticMediaWiki/Mermaid#134 ·
All issues in SemanticMediaWiki/Mermaid
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getgrav/grav-plugin-api#45 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RSS-Bridge/rss-bridge#5098 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
phingofficial/phing#2025 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
silverstripe/developer-docs#911 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100