My problem is as follows:
I would like to draw the chart at the specified positions. I have a <div id="chart1"> specified at that position. My XML is being craeted dynamically from the database. I would like to draw the chart only when I click the button. Right now I am able to draw the chart but not in the div. So could you please help me with the code that I should write at codebehind....
I am unable to make this lines in code-behind
<div id="chart1Div"> This text is replaced by chart. </div> <script type="text/javascript"> var chart1 = new FusionCharts("Charts/FCF_Column2D.swf", "ChId1", "240", "200"); chart1.setDataURL("Data/ItemsSold.xml"); chart1.render("chart1Div"); </script>
as I tried to do
Dim chart1 as new fusionchart
But I don't get any setdata url and chart1.render method...
Plzzzz help I need it....
Thanks,
Abhisek
You can use FusionCharts.dll assembly to render chart from code behind. Can please visit our latest documentaion on this from http://www.fusioncharts.com/docs