kevinkhill / lavacharts

Lavacharts is a graphing / charting library for PHP 5.4+ that wraps Google's Javascript Chart API.
http://lavacharts.com
Other
620 stars 142 forks source link

Help with Line Charts #309

Closed Emily-J-Hall closed 4 years ago

Emily-J-Hall commented 5 years ago

What Version?

3.0.8

Issue

Please describe the issue. Is there somewhere with a good example on how I can use a line chart associated with a database, I've looked around online and on the docs and it's just confusing me.

I just need a line graph which displays a blood sugar level according to date if that makes sense a bit like this diagram here. 2

There would be multiple inputs a day as well.

Any advice would be great. Thanks

Controller Code (chart creation code)

Don't have any just yet

View Code

Don'y have one just yet...
kevinkhill commented 5 years ago

you can start by copying the example from the docs and get a sample graph, then use the datatable methods to build your own datatable. If you post some attempts, I will happily help.

kevinkhill commented 4 years ago

Closing due to staleness, please open a fresh issue if you are still having issues