Dynamic data


« 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 Raja Chandran on 4th April 2013
     <script>
//<![CDATA[
         window.onload = function ()
         {
    var data = "['Testing', 'Test']";
             var rose1 = new RGraph.Rose('cvs', [[0.1, 2, 2, 0], [0.1, 2, 2, 0], [0.1, 2, 1, 0], [0.1, 2, 1, 0], [0.1, 2, 1, 0], [0.1, 2, 1, 0], [0.1, 2, 1, 0], [0.1, 2, 0, 0], [0.1, 2, 0, 0], [0.1, 2, 0, 0], [0.1, 2, 0, 0], [0.1, 2, 0, 0], [0.1, 2, 0, 0], [0.1, 2, 0, 0], [0.1, 2, 0, 0], [0.1, 2, 2, 0], [0.1, 2, 2, 0]]);
             rose1.Set('chart.colors.alpha', 0.75);
             rose1.Set('chart.colors', ['white', 'rgb(0,255,255)', 'red', 'rgb(0,255,0)']);
             rose1.Set('chart.labels', data);
             rose1.Set('chart.labels.position', 'center');
             rose1.Set('chart.margin', 5);
             rose1.Draw();
         }
//]]>
     </script>

I am trying to use this chart for the project as trial version. I am trying to set the data as Chart.Labels and it doesnt working. What is wrong here?

Regards,
Raja
Posted by Raja Chandran on 4th April 2013
Sorry.. My mistake I have fixed it.

Add a reply

 




« Back to message list
RGraph on social media