Kozea / Kozea/pygal

graph is surrounded by b'\n

Open
#461 4 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

I'm using Django 2.15 while running this code:

![image](https://user-images.githubusercontent.com/25789997/57181629-45626b00-6e8e-11e9-90b4-d2e66e6fc449.png)
and calling it in template:
by running
` {{ feature_chart|safe}} `

I have this errror: (graph is adding unwanted string b'\n)
![image](https://user-images.githubusercontent.com/25789997/57181646-7b9fea80-6e8e-11e9-839b-40117e792cc4.png)

Some ideas how to solve this issue? Thank you

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the reported Django template usage with `{{ feature_chart|safe }}` and inspect the generated graph output for the unwanted `b'\n` text. Done means identifying why those bytes appear and confirming that the rendered graph no longer contains them.

Written by the indexing model from the issue text.

Assessment

Tech stack
django, python
Domain
data-visualization
Issue type
Bug
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.