Kozea / Kozea/pygal

pie chart generation error (with test data)

Open
#490 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2.8k
Forks
419
PR merge metrics
No merged PRs in 30d

Description

Test data
{'Windows_Server_2008': '5', 'Windows_Server_2012_R2': '3', 'Windows_Server_2016_DC': '5'}

complete code:

pie_chart = pygal.Pie()
pie_chart.title = 'Verteilung der gescannten Server Typen'
for key in Quelle_dict:
pie_chart.add(key, int(Quelle_dict[key]))
pie_chart.render()

nonsense output: Windows_Server\xe2\x80\xa6 and the like, just search vor \xe2\x80\xa6

I assume, the library is for non windows users.

b'\n'

Contributor guide

Open the contributing guide

Research direction

Start with the reported pygal.Pie example and inspect how render() encodes the chart and labels on Windows. Reproduce the output with the supplied test data, then verify that the generated chart displays the server names correctly rather than escaped or truncated text.

Written by the indexing model from the issue text.

Assessment

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.