Map not rendering
- Dominant language
- Python
- Stars
- 2.8k
- Forks
- 419
- PR merge metrics
- No merged PRs in 30d
Description
I am trying to get a pygal map to work in django and am having some trouble. Other chart types work fine using the exact same method, so it appears to be specific to maps.
The issue is that everything renders as expected except the actual plot, which does not show up at all. Inspecting it shows the height is 0 x 0.
Note also that using render_to_file works as expected.
[Here is a gist](https://gist.github.com/GregKaleka/39431a3ba0cfa881e78dc4dfa0116546) with my views.py file, testing_pygal.html file, and the rendered testing_pygal.html file. I don't see anything immediately wrong with the svg, so any help would be appreciated!
Contributor guide
Research direction
Start with the views.py and testing_pygal.html files in the linked gist, then reproduce the map through Django template rendering and compare it with render_to_file. Investigate why the rendered map has 0 x 0 dimensions while other chart types work; done means the map plot is visible with nonzero dimensions in the Django-rendered page.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- django, python
- Domain
- data-visualization, web-dev
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100