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

Analysis of possible Javascript libraries for charting. #6

Closed
pibebtol opened this issue Mar 13, 2019 · 3 comments
Closed

Analysis of possible Javascript libraries for charting. #6

pibebtol opened this issue Mar 13, 2019 · 3 comments

Comments

@pibebtol
Copy link
Owner

There is a multitude of different libraries for charting in Javascript.
This issue (based on current information) will focus primarily on plotly.js, d3 and vega.

@pibebtol
Copy link
Owner Author

pibebtol commented Mar 20, 2019

plotly.js

Library to create graphs and diagrams, heavily based on d3. Free to use and open source, however the export as SVG is restricted to users with a paying subscription. It might still be possible to export the graph in another way (from the canvas).

Pretty restrictive on the configuration options for the graphs. Offers the needed graphs for the SLR-Toolkit by default but it might not be configurable enough at some point, if the requirements enhance or change.

vega

Powerful library to create different types of charts and graphs. Offers powerful configuration options on a basis of example charts.

Should offer the needed possibilities to configure it. As far as I can tell, it is more configurable than plotly and offers a good amount of configuration options.

Also based on d3.

Bar chart is straight forward, bubble chart should be configurable with the given possibilities, maybe based on scatter plot.

d3

Purely configurable and basis for the other two.

Should offer any needed configuration options.

Problem is, that it is really low level and needs a good amount of working into to understand the basis of chart creation.

@martinmo
Copy link

Problem is, that it is really high level and needs a good amount of working into to understand the basis of chart creation.

You probably meant "low level"?

So in the end, what's your final candidate? Do you want to go with vega, or do you want to continue looking for other libraries?

@pibebtol
Copy link
Owner Author

You probably meant "low level"?

Yes, thank you!

So in the end, what's your final candidate? Do you want to go with vega, or do you want to continue looking for other libraries?

The chosen candidate is vega, for the basic creation of charts with dummy data.

If I encounter problems on the way, plotly should be a good fallback variant.

If the other charting libraries are too high level, we can always switch to d3 and invest more time into the graphing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants