Include link in Y axis name
FusionCharts Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Include link in Y axis name Expand / Collapse
Author
Message
Posted 5/29/2007 5:15:18 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/7/2007 7:18:47 AM
Posts: 3, Visits: 10
I am using asp.net, C# with fusion charts. I am using the dataXML method to generate chart. All functionalities work great, but I am unable to give '<' character in XML data.

I want to give a hyper link with in the Y-axis name, which on clicking should open a page. That is, I have to give '<a>' tag in the 'yAxisName' attribute of chart element. I have tried the escape characters for < such as '&lt;', '&#60;' but none helped. If the xml contains a '<' or equivalent code of that character it shows 'Invalid XML' error.

Is there a way that I can embed a link in yAxisName attribute value?

Thanks.

Post #1114
Posted 5/30/2007 3:08:46 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117, Visits: 498
You'll need to use dataURL method and then encode < as &lt; Also, you'll need to convey to the chart that y-axis name would be HTML (using STYLES).

Thanks,
Pallav Nadhani
FusionCharts Team
Post #1129
Posted 6/4/2007 3:33:40 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/7/2007 7:18:47 AM
Posts: 3, Visits: 10
When I use the dataURL method, the graph is not properly displayed when viewed from remote machines. The URL of xml file is specified correctly. The graph always shows ChartNoDataText message. In local machine, the graph is properly displayed.

What could be wrong?

Post #1182
Posted 6/6/2007 1:06:33 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117, Visits: 498
Can you please pass me the HTML and XML output?

Thanks,
Pallav Nadhani
FusionCharts Team
Post #1212
Posted 6/7/2007 4:02:24 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: Forum Members
Last Login: 6/7/2007 7:18:47 AM
Posts: 3, Visits: 10
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.

Post #1248
Posted 6/12/2007 12:13:13 AM
FusionCharts Team

FusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts TeamFusionCharts Team

Group: Administrators
Last Login: 10/3/2008 2:42:18 AM
Posts: 2,117, Visits: 498
Can you just run the debug mode of chart to see if data is coming right to it?

Thanks,
Pallav Nadhani
FusionCharts Team
Post #1278
« Prev Topic | Next Topic »


Permissions Expand / Collapse

All times are GMT -7:00, Time now is 10:08am


Execution: 0.156.