Development is ongoing and the items below are what I am planning for the next release, v1.2:
Add a sunburst chart generator
Add a class for handling color processing for all charts and graphs
Add a class for handling tooltips for all charts and graphs
Additional code cleanup both the js and PHP
If you have a feature, graph or chart you would like to see included in an upcoming release, please feel free to contact me about it or just submit a PR with it. This is an open project and your contributions are always welcome. 🙂
As always, please feel free to leave a comment below and enjoy the updated library.
Just a quick update on some recent progress made on v1.1 of the php-d3-lib project. As you know, this project is meant to make the creation of charts and graphs using D3.js easy via a ready-to-go-out-of-the-box PHP Library.
At this point, I have updated all of the existing graphs to use D3.js v4 and also added a new graph type “Simple Line Graph” (which includes tooltips).
This development effort took longer than expected because some of the graph scripts I am using, don’t actually have a D3.js v4 example yet. As a result, I had to get a little creative and combine different methods from different examples that were using D3.js v4 and then go back and tweak them so they are all somewhat aligned. Unfortunately, I am not an expert at D3.js so I had to learn and adapt as I went. Hopefully the outcome will work for folks who wish to use the library in their projects and such.
The Simple Line Graph features a new addition in the form of mouseover tooltips for the data points. I aim to expand this feature to all of the graphs and make using it even more dev friendly.
The latest commits are up on Github and development continues on the “automatic resizing” option and also adding “tooltips” options to the rest of the graphs to round out version 1.1.