Saturday, December 10, 2016

Guide on how to insert custom series into area Stacked Chart in HighCharts (Javascript)

Tags



Sample code that HighCharts provided on their website are all hard coded and there no guide on how to generate a custom value for the series. So, in this tutorial I will teach you on how to dynamically add the series value.

Below is the sample from HighCharts.
You can download it here. highchart javascript library





Step 1 :
You have to create an array containing the value that you want.
Note that the array must have format like below.



Step 2:
Next, just put the name of your array into the 'Series'.

So instead of this



Do this.


Step 3: Run your script again and you should be able to parse you array item into the chart.


If you are facing any problem on this, don't hesitate to message at Obstrum facebook page.

Hope this tutorial will help those in need.

If you want to get in touch with more tutorial, add me on google+ or like and follow our facebook page for more! Obstrum Facebook Page 


EmoticonEmoticon