How to convert HTML hidden values to CSV format

Share RGraph:   To help my Google visibility (it can't get much worse!), if you like and use RGraph I'd appreciate it if you could link to me

« Back to message list

Enter your email address to get email updates on this topic. You can stop receiving updates by clicking the link in the update email messages.

Posted by Madhu on 27th April 2013
my code is below.

         window.onload = function ()
   var data = (document.getElementById("hiddenid").value).split("!");
   alert(data[0]+" "+data[1]);
             var radar3 = new RGraph.Radar('cvs', [data[0],data[1]])
                 .Set('chart.labels', ['', 'Barry', 'Gary','Dave','Paul','Rich'])
                 .Set('chart.tooltips', [
                                         'Mal', 'Barry', 'Gary','Dave','Paul', 'Rich',
                                         'Mal', 'Barry', 'Gary','Dave','Paul', 'Rich'
                 .Set('chart.background.circles.poly', true)
                 .Set('chart.background.circles.spacing', 30)
                 .Set('chart.colors', ['transparent'])
                 .Set('chart.axes.color', 'transparent')
                 .Set('chart.highlights', true)
                 .Set('chart.strokestyle', ['red', 'black'])
                 .Set('chart.linewidth', 2)
                 .Set('chart.linewidth', 2)
                 .Set('chart.labels.axes', 'n')
                 .Set('chart.text.size', 16)

         <a href="./">« Back</a>
<input type="hidden" id="hiddenid" value="[8,7,6,7,8,6]! [8,9,4,6,6,8]" />

Please help me on this. this is very urgent for me.

Posted by RGraph support on 29th April 2013
Hi there,


You can split data from form fields like this:

PS Please remember to link to the RGraph website - cheers!

Richard, RGraph Support

5 developer license with Priority support for £299:

Add a reply

« Back to message list