Kozea / Kozea/pygal

Questions : Showing values and forcing colors on a Pie chart

Open
#363 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
2.8k
Forks
419
PR merge metrics
No merged PRs in 30d

Description

Hello, I have 2 small question, I could not find anything in the documentation.

  1. How to force a color on a Pie chart ? The documentation say to put instead of the value, a dictionnary with like {'value': X, 'color': 'red'}, but I had a blank chart doing that, is this different for Pie charts ?

  2. How can I display the value, either in the legend or on the graph on a Pie chart ?

Thank you.
Best regard,
Mathieu

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No file or test is named. Start by locating the Pie chart documentation and existing examples for colors, legends, and value labels; document the supported usage and expected output so both questions are answered.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
data-visualization
Issue type
Documentation
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.