Area Chart
Last updated
Last updated
This widget function displays an area chart whenever you call it. You can pass in multiple data sets if you wish to have multiple data sets displayed on chart.
The function accepts 4 parameters that are illustrated below
Chart Title- This is the title of the chart
Chart Data- An array with multiple sql queries as values, each query needs to have 2 fields to be used that is: label and value
Dataset Label- An array with all the labels for your datasets provided
Chart Size= This is a bootstrap class for chart size, default is col-md-12
In the above chart I have passed in only 2 queries as array values for my chart data and 2 labels as array values for my dataset label. If you wish to have a single dataset, you just provide 1 query and 1 dataset label.