Skip to content

Tag: chart.js

How to load an array of external data in QuickChart?

I am looking to use QuickChart in my PHP project. I skimmed the documentation completely. But, everything in it has the data being statically loaded as an array. I am trying to load external data, that is generated from somewhere else, into the chart. To understand QuickChart, I tried to load data dynamically…

Split assoc array by keys

I have data like this: I want to separate it into 3 different arrays like so: For the life of me i just cant seem to wrap my head around this today, I have tried doing loops and while/if using “array_colum()” but I cant get to add a 0 for the entry that does not have a matching date. PS:

cant resize range of Y axis of chart in HTML/PHP

new account here, so basically i have code like this the result is like this enter image description here Since the range of Y axis is between 3.0, 3.1 – 5.0. it makes one of the data seems like zero frequency because the lowest value on y axis is 3.0 not 0, how to change the range on Y axis