Bharat Patel

Export And Drill Down chart options not working together

Recommended Posts

Hi there,

This is a bit weird. I have implemented internal Export Handler for .NET based on the sample code posted on the forum and is working fine for all the charts that I have implemented so far. But when I implemented drill down chart along with export, it simply breaks and chart is not rendered. Once I have taken off the export parameters then it continues to work as normal. Am I missing something?

 

The code posted below is not working:

 

<!-- Using ASP.NET VB FusionCharts v3.2.2.1 Wrapper and JavaScript rendering --><!-- START Script Block for Chart ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion -->
<div id='ctl00_cphPageBody_ucManFeeSingle_Chart1_FusionDiv' >
Chart.
</div>
<script type="text/javascript">
if (FusionCharts && FusionCharts('ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion') ) FusionCharts('ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion').dispose();
var chart_ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion = new FusionCharts({"renderer" : "javascript", "dataFormat" : "xml", "scaleMode" : "noScale", "renderAt" : "ctl00_cphPageBody_ucManFeeSingle_Chart1_FusionDiv", "lang" : "EN", "debugMode" : "0", "swfUrl" : "/js/FusionCharts/MSColumn2D.swf", "id" : "ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion", "wMode" : "opaque", "width" : "100%", "height" : "350px", "registerWithJS" : "1","dataSource" : "<chart caption='' subCaption='' captionPadding='15' xAxisName='Management Fee(%)' yAxisName='% of funds' showPlotBorder='0' borderColor='DDDDDD' borderThickness='0' canvasBorderThickness='1' canvasBorderColor='DDDDDD' chartLeftMargin='10' chartRightMargin='10' chartTopMargin='10' chartBottomMargin='40' showLegend='1' legendBorderThickness='1' legendBorderColor='DDDDDD' legendShadow='0' legendAllowDrag='0' legendBgColor='FFFFFF' legendPosition='BOTTOM' interactiveLegend='0' 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='4' numDivLines='10' divLineAlpha='0' yAxisMinValue='0' yAxisMaxValue='40' 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='0%' /> <category label='0.01 - 0.99%' /> <category label='1.00 - 1.49%' /> <category label='1.50 - 1.99%' /> <category label='2.00%' /> <category label='2.01% +' /></categories><dataset seriesName='Management Fee(%)' > <set value='1.49' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion\", \"0\");' /> <set value='8.25' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion\", \"1\");' /> <set value='21.06' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion\", \"2\");' /> <set value='31.59' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion\", \"3\");' /> <set value='34.98' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion\", \"4\");' /> <set value='2.63' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion\", \"5\");' /></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>"}).render()</script>
<!-- END Script Block for Chart ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion -->
 
This is working:
 
<!-- Using ASP.NET VB FusionCharts v3.2.2.1 Wrapper and JavaScript rendering --><!-- START Script Block for Chart ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion -->
<div id='ctl00_cphPageBody_ucManFeeSingle_Chart1_FusionDiv' >
Chart.
</div>
<script type="text/javascript">
if (FusionCharts && FusionCharts('ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion') ) FusionCharts('ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion').dispose();
var chart_ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion = new FusionCharts({"renderer" : "javascript", "dataFormat" : "xml", "scaleMode" : "noScale", "renderAt" : "ctl00_cphPageBody_ucManFeeSingle_Chart1_FusionDiv", "lang" : "EN", "debugMode" : "0", "swfUrl" : "/js/FusionCharts/MSColumn2D.swf", "id" : "ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion", "wMode" : "opaque", "width" : "100%", "height" : "350px", "registerWithJS" : "1","dataSource" : "<chart caption='' subCaption='' captionPadding='15' xAxisName='Management Fee(%)' yAxisName='% of funds' showPlotBorder='0' borderColor='DDDDDD' borderThickness='0' canvasBorderThickness='1' canvasBorderColor='DDDDDD' chartLeftMargin='10' chartRightMargin='10' chartTopMargin='10' chartBottomMargin='40' showLegend='1' legendBorderThickness='1' legendBorderColor='DDDDDD' legendShadow='0' legendAllowDrag='0' legendBgColor='FFFFFF' legendPosition='BOTTOM' interactiveLegend='0' 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='4' numDivLines='10' divLineAlpha='0' yAxisMinValue='0' yAxisMaxValue='40' 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'><categories> <category label='0%' /> <category label='0.01 - 0.99%' /> <category label='1.00 - 1.49%' /> <category label='1.50 - 1.99%' /> <category label='2.00%' /> <category label='2.01% +' /></categories><dataset seriesName='Management Fee(%)' > <set value='1.49' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion\", \"0\");' /> <set value='8.25' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion\", \"1\");' /> <set value='21.06' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion\", \"2\");' /> <set value='31.59' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion\", \"3\");' /> <set value='34.98' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion\", \"4\");' /> <set value='2.63' link='JavaScript:Preqin.UserControls.PreqinFusionCharts.ClickDataPoint(\"ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion\", \"5\");' /></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>"}).render()</script>
<!-- END Script Block for Chart ctl00_cphPageBody_ucManFeeSingle_Chart1_Fusion -->

 

Any help will be greatly appreciated.

Thanks!

 

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Could you please try once with the latest version of FusionCharts Suite XT v3.4 and see if the same issue replicates?

 

To download the Evaluation version of FusionCharts Suite XT v3.4, please visit the link: http://www.fusioncharts.com/download/

 

Hope this helps!

Share this post


Link to post
Share on other sites

Hi There,

This seems to be due to the Export handler URL. And as soon as I encoded the URL in the XML, it seems to have solved the problem. thanks a lot for the pointers..

Kind Regards,

Bharat Patel

Share this post


Link to post
Share on other sites
Guest Sashibhusan

Hi,

 

Glad to hear that you have managed of your own to resolve this issue. :)

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