spotify / chartify

Python library that makes it easy for data scientists to create charts.
Apache License 2.0
3.53k stars 324 forks source link

PNG output is fuzzy #37

Open cphalpert opened 5 years ago

cphalpert commented 5 years ago

PNGs don't look as good as SVG or HTML output.

PNG: image

HTML: image

hrs2203 commented 4 years ago

This sounds fun. I would like to work on this. can you please guide me with any available documentation?

cphalpert commented 4 years ago

@hrs2203 your help would be appreciated!

The png conversion happens in this function: https://github.com/spotify/chartify/blob/master/chartify/_core/chart.py#L448

It is loosely based on this function in Bokeh, but is adapted to use chromedriver instead of phantomjs https://github.com/bokeh/bokeh/blob/master/bokeh/io/export.py#L169