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

Replace jqplot with c3 #16120

Open
diosmosis opened this issue Jun 25, 2020 · 1 comment
Open

Replace jqplot with c3 #16120

diosmosis opened this issue Jun 25, 2020 · 1 comment
Labels
c: Design / UI For issues that impact Matomo's user interface or the design overall. c: Graphs and charts For bugs and features related to functional graphs & charts. c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.

Comments

@diosmosis
Copy link
Member

jqplot is old, our build is custom and it is not marked by exactly what version it is based off of, so it would be a good idea to replace it with something newer. Additionally the normal, non-custom builds do not work with matomo, which is a blocker in both upgrading and switching to getting it from npm. For now we can still use jqplot, but eventually it would be good to switch away from it.

c3 is a similar charting library that is built on d3 and will allow us to quickly and (more) easily switch over to d3.

I created a quick proof of concept to see how much effort integrating c3 would be: https://github.com/matomo-org/matomo/tree/c3-attempt

This creates a new, limited bar graph visualization using c3, without re-using old and bloated jqplot code. We can create c3 visualizations by going through the functionality of old jqplot visualizations and implementing similar functionality and styling to c3.

One limitation I found so far is that c3 does not allow more than 2 y-axes though matomo can show three. There is an issue for this in c3's issue tracker, so they may work on this eventually.

@Findus23 Findus23 added c: Design / UI For issues that impact Matomo's user interface or the design overall. c: Usability For issues that let users achieve a defined goal more effectively or efficiently. labels Jun 25, 2020
@tsteur tsteur added this to the Backlog (Help wanted) milestone Jun 25, 2020
@michalkleiner
Copy link
Contributor

Just came across https://echarts.apache.org/examples/en/index.html and it looks quite well, could be an option for our graphs/charts.

@michalkleiner michalkleiner added c: Graphs and charts For bugs and features related to functional graphs & charts. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. labels Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: Design / UI For issues that impact Matomo's user interface or the design overall. c: Graphs and charts For bugs and features related to functional graphs & charts. c: Usability For issues that let users achieve a defined goal more effectively or efficiently. Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc.
Projects
None yet
Development

No branches or pull requests

4 participants