Skip to content
Advertisement

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 in the examples provided in the documentation.

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

Live updating chart with data from database with Chart.js

I’ve been having some trouble with Chart.js. I’m making a voting system that I want to dynamically update for the user to see. Kind of like strawpoll websites. When the user submits a vote, the results page will automatically update to the new vote count. I’ve been searching for an answer to this, and I feel like I’ve gotten halfway.

Chart.js – Creating multiple charts on one page

I would like to use chart.js in my joomla-component called “bestia”. To do so I imported chart.js as media-element in the manifest.xml. I’m calling the js by doing the following: JHtml::script(Juri::root() . ‘media/com_hostinghelden/chartjs/Chart.js’); Now I would like to use a helper to shorten things up a bit. My helper should draw a graph… Well, if I call this Jhtml-Graphs, the

Advertisement