Skip to content

Doesn't Support Specifying Pie Chart Colors #136

@BPowell76

Description

@BPowell76

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions