Sign in to follow this  
Speed1965

AngularGauge - Cloning - Set Chart Caption

Recommended Posts

Hi

 

I am trying to clone an AngularGauge chart, but having a problem setting the chart caption.

 

I have tried

 

var clonedChart = Guage1.clone({

    renderAt: 'New_Id',

    chart: { caption: 'New Caption' }

}, true);

 

 

FusionCharts v3.11.2

 

Regards

 

Mark

Edited by Speed1965

Share this post


Link to post
Share on other sites

After a bit of searching I found the "setChartAttribute()" method.

 

So now I have figured out how to modify the chart caption using the setChartAttribute, I still need to figure out how to modify the dial score in the clone copy.

 

Regards

 

Mark

Share this post


Link to post
Share on other sites

I seems that after finding out about the setCharAttribute() that I hit another wall trying to modify the score details in the dials.dial object. So in the end I have decided to abandon the clone approach and just create a common json object that I can pass into all my FusionCharts AngualrGauge objects.

 

Before I pass in each common json object I modify the:

 

jsonObject.renderAt

jsonObject.datasource.caption

jsonObject.datasource.dials.dial[0].value

jsonObject.datasource.annotations.groups[1].label

 

The reason I am doing this as I can have up to 20 small dials on my webpage, all looking the same apart from the score.

 

Regards

 

Mark

Share this post


Link to post
Share on other sites

Hello,

 

Thanks for the query.

 

Glad to know that setCharAttribute() helped you, for the first query

 

I hope that you got the solution of your second query, ie. set the dial score of angular gauge at the time of creating it's clone at this link:

http://forum.fusioncharts.com/topic/18766-angulargauge-clone-modifying-the-dial-score/

 

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