Bharat Patel

JavaScript functions as links not working with Multi Series Chart

Recommended Posts

Hi there,

Is there something that I am getting wrong here??

the code below is not working. If I take off the links then it is working fine. I dont think that the links by themselves seem to be a problem as the same link is working on a single series but seems to be causing invalid data issue for multi series. Any help is greatly appreciated.

 

 

//"dataSource": "<chart caption='' subCaption='' captionPadding='15' xAxisName='' yAxisName='' showValues='1' showPlotBorder='0' borderColor='DDDDDD' borderThickness='0' canvasBorderThickness='1' canvasBorderColor='DDDDDD' chartLeftMargin='10' chartRightMargin='10' chartTopMargin='10' chartBottomMargin='40' showLegend='0' legendBorderThickness='1' legendBorderColor='DDDDDD' legendShadow='0' legendAllowDrag='0' legendBgColor='FFFFFF' legendPosition='BOTTOM' dateFormat='yyyy-mm-dd' outputDateFormat='dd/mm/yyyy' numberScaleValue='1000,1000' numberScaleUnit='Bn,Tn' showPercentageValues='0' alternateHGridColor='FFFFFF' divLineColor='DDDDDD' vDivLineColor='DDDDDD' vDivLineThickness='1' vDivLineIsDashed='1' numVDivLines='5' numDivLines='10' divLineAlpha='0' yAxisMinValue='0' yAxisMaxValue='35' NumberPrefix='' formatNumber='1' formatNumberScale='0' sformatNumberScale='0' sNumberPrefix='' syncAxisLimits='1' rotateValues='0' showSum='0' canvasPadding='5' valuePadding='0' baseFont='Verdana' valuePosition='AUTO' paletteColors='05C218, 8FFA47, 05C276, C27605, C21805, C20551, 9A0BF9, C205AF, 7605C2, 05AFC2' plotGradientColor='' unescapeLinks='0' labelStep='0' showYAxisValues='1' yAxisValuesStep='1' showDivLineValues='1' bgColor='FEFEFE' logoURL='/images/SVG/preqin-logo.svg' logoPosition='BR' ExportWithlogo='1' ExportWithBackground='0' exportEnabled='1' exportShowMenuItem='1' exportFormats='PNG=Export as High Quality Image|JPG|PDF=Export as PDF File' exportAtClient='0' exportHandler='/user/uc/Charts/Export/FusionChartExporter.aspx?ExportWithlogo=True&logoPosition=BR&ExportWithBackground=False' exportAction='download' exportFileName='ChartImage' showExportDialog='1'><categories> <category label='less than 50' /> <category label='50 - 149' /> <category label='150 - 499' /> <category label='500 - 999' /> <category label='1,000 - 4,999' /> <category label='5,000 - 9,999' /> <category label='10,000 +' /></categories><dataset renderAs='COLUMN' seriesName='PercentageCount' > <set value='2.07' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_chartFundSizes_chart1_fusion\", \"0\");' /> <set value='5.66' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_chartFundSizes_chart1_fusion\", \"1\");' /> <set value='13.21' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_chartFundSizes_chart1_fusion\", \"2\");' /> <set value='11.06' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_chartFundSizes_chart1_fusion\", \"3\");' /> <set value='32.41' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_chartFundSizes_chart1_fusion\", \"4\");' /> <set value='14.31' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_chartFundSizes_chart1_fusion\", \"5\");' /> <set value='21.38' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_chartFundSizes_chart1_fusion\", \"6\");' /></dataset><dataset renderAs='COLUMN' seriesName='PercentageSum' anchorSides='3' anchorRadius='5' > <set value='2.07' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_chartFundSizes_chart1_fusion\", \"0\");' /> <set value='5.66' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_chartFundSizes_chart1_fusion\", \"1\");' /> <set value='13.21' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_chartFundSizes_chart1_fusion\", \"2\");' /> <set value='11.06' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_chartFundSizes_chart1_fusion\", \"3\");' /> <set value='32.41' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_chartFundSizes_chart1_fusion\", \"4\");' /> <set value='14.31' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_chartFundSizes_chart1_fusion\", \"5\");' /> <set value='21.38' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_chartFundSizes_chart1_fusion\", \"6\");' /></dataset><styles> <definition> <style name='CanvasAnim' type='animation' param='_xScale' start='0' duration='1' /> <style name='CaptionStyle' type='font' font='Verdana' isHTML='1' /> </definition> <application> <apply toObject='Canvas' styles='CanvasAnim' /> <apply toObject='Caption' styles='CaptionStyle' /> </application></styles></chart>"

 

Kind Regards,

Bharat Patel

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

It seems the the "&" character is not encoded in the URL of "exportHandler" attribute.

 

Could you please try once by setting

exportHandler='/user/uc/Charts/Export/FusionChartExporter.aspx?ExportWithlogo=True&logoPosition=BR&ExportWithBackground=False'

to

exportHandler='/user/uc/Charts/Export/FusionChartExporter.aspx?ExportWithlogo=True%26logoPosition=BR%26ExportWithBackground=False' 

and see if it helps?

 

Please find the chart screen shot which I got, by rendering "Multi series Column2D " chart using your XML with required changes.

 

Hope this helps.

post-23588-0-47252000-1404468361_thumb.png

Share this post


Link to post
Share on other sites

Thanks a lot. This seems to have fixed the problem for me. I have been able to close 2 issue with this fix. Export is now functional with link charts.

Kind Regards,

Bharat Patel 

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now