graph is surrounded by b'\n
- 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:

and calling it in template:
by running
` {{ feature_chart|safe}} `
I have this errror: (graph is adding unwanted string b'\n)

Some ideas how to solve this issue? Thank you
Contributor 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