Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider replacing Chart.js with a native SVG plotting library #12

Open
gflegar opened this issue Feb 27, 2019 · 0 comments
Open

Consider replacing Chart.js with a native SVG plotting library #12

gflegar opened this issue Feb 27, 2019 · 0 comments
Labels
Enhancement An improvement of an existing feature. Help wanted Need ideas on how to solve this.

Comments

@gflegar
Copy link
Member

gflegar commented Feb 27, 2019

As already discussed in #8, since Chart.js uses a canvas to output the data (raster graphics), it extremely difficult (if not impossible) to get it to output vector graphics such as SVG which would be useful to be able to include high quality (and reasonably compressed) plots generated by GPE into scientific papers.

One option would be to explore the possibility of replacing Chart.js with a different library that generates SVG natively. One example is Chartist. There are more examples of various plotting libraries in this article, not all with SVG capabilities.

Of course, one consideration needs to be the integration between Jsonata and the new library, i.e. can a JSON object be converted into the input for the new library with reasonable effort?

Also, using a different library would mean we need to convert all existing plotting scripts to output the result in the new format.

@gflegar gflegar added Enhancement An improvement of an existing feature. Help wanted Need ideas on how to solve this. labels Feb 27, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement An improvement of an existing feature. Help wanted Need ideas on how to solve this.
Projects
None yet
Development

No branches or pull requests

1 participant