I am using ASP.net code to dynamically create the xml data for generating chart. While using dataXML method everything was working as expected. But I have to switch to dataURL method inorder to use '<' for embedding html tags.
So I saved the dynamically created XML data to an XML file, 'data.xml' in root folder, to use in dataURL method. The result of RenderChartHTML method is output to a Literal control in the aspx page using the following C# code:
ltrChart.Text = infosoftglobal.FusionCharts.RenderChartHTML(ApplicationPath + "/FusionCharts/StackedBar3D.swf?PBarLoadingText=Rxploring...&ChartNoDataText=No Data Available for Your Selection", ApplicationPath + "data.xml", "", "CategoryNumber", "540", "470", false);But it always displays the message 'No Data Available for Your Selection'.
The dynamically created sample XML data is pasted below:
<chart caption="Drug Regimen Adverse Reaction Profile" legendShadow="1" xAxisName="Effects - Summary" yAxisName="Rxplore Score <a href="test.aspx" target="_blank">(What's This?)</a>" baseFontSize="10" baseFontColor="808080" showValues="0" numberPrefix="">
- <categories>
<category label="Insomnia" />
<category label="nausea" />
<category label="headache" />
<category label="dry mouth" />
<category label="Dyspepsia" />
<category label="Throat discomfort" />
<category label="Agitation" />
<category label="dizziness" />
<category label="palpitations" />
<category label="back pain" />
</categories>
- <dataset seriesName="Allegra-D 24 Hour">
<set value="12.6" toolText="Up to 12.6%25 of patients taking Allegra-D 24 Hour experienced Insomnia compared with 0.0%25 of patients taking a placebo." />
<set value="7.4" toolText="Up to 7.4%25 of patients taking Allegra-D 24 Hour experienced nausea compared with 0.0%25 of patients taking a placebo." />
<set value="3.1" toolText="Up to 10.6%25 of patients taking Allegra-D 24 Hour experienced headache compared with 7.5%25 of patients taking a placebo." />
<set value="2.8" toolText="Up to 2.8%25 of patients taking Allegra-D 24 Hour experienced dry mouth compared with 0.0%25 of patients taking a placebo." />
<set value="2.8" toolText="Up to 2.8%25 of patients taking Allegra-D 24 Hour experienced Dyspepsia compared with 0.0%25 of patients taking a placebo." />
<set value="2.3" toolText="Up to 2.3%25 of patients taking Allegra-D 24 Hour experienced Throat discomfort compared with 0.0%25 of patients taking a placebo." />
<set value="1.9" toolText="Agitation occurred in > 2%25 of patients taking Allegra-D 24 Hour" />
<set value="1.9" toolText="dizziness occurred in > 2%25 of patients taking Allegra-D 24 Hour" />
<set value="1.9" toolText="palpitations occurred in > 2%25 of patients taking Allegra-D 24 Hour" />
<set value="1.4" toolText="Up to 2.8%25 of patients taking Allegra-D 24 Hour experienced back pain compared with 1.4%25 of patients taking a placebo." />
</dataset>
- <styles>
- <definition>
<style name="myHTMLFont" type="font" bold="1" isHTML="1" />
<style name="myHTMLFont1" type="font" bold="1" isHTML="0" />
</definition>
- <application>
<apply toObject="TOOLText" styles="myHTMLFont1" />
<apply toObject="yAxisName" styles="myHTMLFont" />
<apply toObject="DATALABELS" styles="myHTMLFont" />
</application>
</styles>
</chart>
Another problem is that I am not able to use RenderChart method with Ajax. This method requires complete page refresh to generate chart. It was a very useful method as I could avoid the 'Click to activate this control' message by using this method. So I am using RenderChartHTML method.
Thanks.