-
Notifications
You must be signed in to change notification settings - Fork 533
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
Charts: Investigate and replace the current chartist library #94
Comments
I'd like to work on this issue, please. |
Here's my analysis for: Best Open Source Angular Chart Libraries with Directives Some of the criteria I looked at were the following:
Based on above criteria I ranked each one from 1 to 5, where 1 is least to 5 as most favorable I looked at the chart libaries from doing a wide search and also from these guides here: Best Angular Chart Libraries 10 Best Angular Chart libraries These are the best open-source angular chart libraries available with angular wrapper.
Which leaves us really with 2 good choices for Angular directives: Chart.js and Echarts. === Chart.js Notes:
ECharts - Notes:
D3.js Notes:
One more - There is Angular-nvD3 but it hasn't been updated in 4 years although build is passing. I'm not sure how we'd want to quality this - some very good examples here: http://krispo.github.io/angular-nvd3/ Dygraphs Notes:
C3.js - D3-based reusable chart library Notes:
Highcharts
Plotly
|
Note: Echarts chart resizing scales well on mobile simulator |
@softsimon Yesterday, I went to built the starter app for ngx-echarts, it turned out to have a number of issues. The angular directive project appears to be still a work in progress. Several modifications needed to get it running. Here are my detailed notes: Production build on netlify: |
If you are ok with the above caveats, I'll continue work on the color/style mockups |
Hi - Just checked Angular directive ng2-charts, sample works fine with Angular 10.0.6, see full list of dependencies and 1 warning here, netlify deploy here Todo:
Regarding @wiz 's comment - I took a look at bisq.market. It looks like everything so far is just line charts - If we need to do something more complex than line, bar, radar, doughnut/pie, polar area, bubble, scatter, area then the current chart.js selection wouldn't cover it. I assume we'll need Financial Candlestick charts for Bisq at some point, which chart.js can cover. But if we need something like a cloropleth geo map or treemap or a chord diagram, we'd need to use a different library such as echarts. How we want to represent items such as Cycles in charts could be done with a simple bar, line or pie chart but its not specified in the google doc if there are any preferences. My other concern about graphing libraries is that Angular directives are not going to be well supported in the future. Most of them are dying or on the way out. The chart libraries are all well supported and will continue to be well supported and maintained but Angular Directives libraries are trending down in terms of support and are independent of the charting libraries. Which means in a few years there might not be any decent support for angular directives for any chart libraries. Its something to consider if we have to rely on any angular directive and if angular is the choice for development. While chart libraries often have many developers or foundations maintaining and keeping them current, the available angular directives are often sole developers who, may choose to just abandon the project at any time. It is a risk to consider. If we select an angular directive that is maintained now, it might not keep up with the latest Angular core release in 1 year. |
Correction - Chart.js can look good on mobile; checked another sample source. |
Currently don't have time to work on an echarts mockup so am unassign-ing self. |
@TechMiX can you look into a new chart library that would allow us to have a mouseover legend thing |
Sure. |
@RandyMcMillan do you want to look into replacing our chart library? would be nice to hear your ideas on this |
@wiz |
What is statsd? Maybe make a separate issue for that, I'm not familiar with it |
To fix various bugs and limitations like #70, but also add new features like hover, we need to replace the current deprecated Chartist chart library that is used throughout the site to display mempool and fee data. The graph and colors should not differ too much from the current design.
Consider the following libs:
http://dygraphs.com/
https://d3js.org/
The charting libs should also be wrapped in angular components for seamlessness and tree shaking ability.
The text was updated successfully, but these errors were encountered: