@niketnilay Sorry for the broken link, this link should work now. https://jsfiddle.net/yamero/c461br3j/.
right now I am testing my functions with pie graph but I hope to explore various different graphs such as bar graph and line graph in the future.
I am trying to do a side project where I use a query Splunk through a web page to get results back in a form of graphs. I am trying to create graphs dynamically instead of having my codes pasted multiple time just to create more than one graph.
The val,val1,val2 variables in my code does not seem to work as intended in my head. I want them to have data in the array and output it into a graph, when looped the array becomes empty again, ready to output data into a new graph on the same page again.
... View more