Sign in to follow this  
davide.menoni@omnilab.it

Dynamically Set Chart Properties

Recommended Posts

Hi,

it is possible dynamically set or change chart properties?

 

var myChart = new FusionCharts(... + "/Column3D.swf");

myChart.setXMLUrl(... + "/Data.xml");

myChart.render("divChartContainer");

 

var myExportComponent = new FusionChartsExportObject("fcExporter", ... + "/FCExporter.swf");

myExportComponent.componentAttributes.btnsavetitle = "Save";

myExportComponent.componentAttributes.btndisabledtitle = "Waiting";

myExportComponent.Render("divChartExporter");

 

Without changing xml file, I want to set dynamically some chart properties (exportenabled, exportAtClient, exportHandler, exportDialogMessage, exportDialogMessage, exportFormats, exportDataMenuItemLabel, decimalSeparator, thousandSeparator ...). How do it via JavaScript?

 

Tks.

 

 

Share this post


Link to post
Share on other sites

Hi,

 

Hi,

it is possible dynamically set or change chart properties?

 

var myChart = new FusionCharts(... + "/Column3D.swf");

myChart.setXMLUrl(... + "/Data.xml");

myChart.render("divChartContainer");

 

var myExportComponent = new FusionChartsExportObject("fcExporter", ... + "/FCExporter.swf");

myExportComponent.componentAttributes.btnsavetitle = "Save";

myExportComponent.componentAttributes.btndisabledtitle = "Waiting";

myExportComponent.Render("divChartExporter");

 

Without changing xml file, I want to set dynamically some chart properties (exportenabled, exportAtClient, exportHandler, exportDialogMessage, exportDialogMessage, exportFormats, exportDataMenuItemLabel, decimalSeparator, thousandSeparator ...). How do it via JavaScript?

 

Tks.

 

 

 

Please note that FusionCharts JavaScript class allows you to change various settings and properties of an existing chart. You can dynamically update chart's root properties (also known as "chart attributes" which are passed through <chart> element in chart XML data or through chart property in chart's JSON data) on-the-fly.

 

For further details on the above, please refer to the following link.

Ref.- http://docs.fusioncharts.com/charts/contents/?JavaScript/JS_ChangeChartProperties.html

 

Hope this helps. :)

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
Sign in to follow this