prabhu.jeevan

Changing Chart Type In Real Time

Recommended Posts

Hi,

        I have a doubt in the chart customization. In real time use case, How can i change the chart properties like chart type,  title, tooltip ,...etc. Is there any API or method for changing customization property dynamically... If yes, can you share the details of the api methods.

 

Regards

Prabhu

Share this post


Link to post
Share on other sites

Hi,

        I have a doubt in the chart customization. In real time use case, How can i change the chart properties like chart type,  title, tooltip ,...etc. Is there any API or method for changing customization property dynamically... If yes, can you share the details of the api methods.

 

Regards

Prabhu

Hi,

 

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.

 

You need to use "setChartAttribute()" function to set a chart attribute. All you need to do is pass the name of the attribute and its new value to this function. This function is available in all the instances of FusionCharts JavaScript class.

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

 

But in case you inetnd to change any data or any attribute, value not in the <chart> element, you would need to update the existing chart with a completely new data.

Ref.- http://docs.fusioncharts.com/charts/contents/?JavaScript/JS_ChangeData.html#update

 

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