gauravsingh

How To Check & Uncheck The Checkboxes By Default While Loading Fusion Chart

Recommended Posts

Hi All,

I am new to the fusion charts.

I have an xml which is having the following axis.

String power = "<axis title="Power[W]" titlePos='left' tickWidth='10' divlineisdashed='1'>";

String temp = "<axis title="Temperature" axisOnLeft='0' titlePos='right' numDivLines='4' tickWidth='10' divlineisdashed='1' formatNumberScale='1' numberScaleUnit='K' numberScaleValue='1000'>";

String speed="<axis title="Speed" titlepos='RIGHT' axisOnLeft='0' numDivLines='5' tickWidth='10' divlineisdashed='1'>";

 

I send the this xml in StringBuffer and using the following code to add the xml data into chart.

var chart1 = new FusionCharts("clfw/FusionCharts/FusionChart/Charts/MultiAxisLine.swf", "chart1Id", "100%", "100%", "0", "1");

chart1.setDataXML(xmlData);

 

While loading the chart all the check boxes with each axis is displayed with checked state for all checkboxes.

I want only one checkbox for "Power" should be checked by default while other other checkboxes should be unchecked while loading the chart.

Please find the attachment for more details.

We do have allowselection attribute at <chart> level. in xml but do we have any parameter/attribute for axis tag which can change the state of checkbox in xml itself?

Any input/suggestion would be appreciated.

 

Thanks,

Gaurav

post-28028-0-05932400-1335273405_thumb.jpg

Edited by gauravsingh

Share this post


Link to post
Share on other sites
Guest Sumedh

Hi All,

I am new to the fusion charts.

I have an xml which is having the following axis.

String power = "<axis title="Power[W]" titlePos='left' tickWidth='10' divlineisdashed='1'>";

String temp = "<axis title="Temperature" axisOnLeft='0' titlePos='right' numDivLines='4' tickWidth='10' divlineisdashed='1' formatNumberScale='1' numberScaleUnit='K' numberScaleValue='1000'>";

String speed="<axis title="Speed" titlepos='RIGHT' axisOnLeft='0' numDivLines='5' tickWidth='10' divlineisdashed='1'>";

 

I send the this xml in StringBuffer and using the following code to add the xml data into chart.

var chart1 = new FusionCharts("clfw/FusionCharts/FusionChart/Charts/MultiAxisLine.swf", "chart1Id", "100%", "100%", "0", "1");

chart1.setDataXML(xmlData);

 

While loading the chart all the check boxes with each axis is displayed with checked state for all checkboxes.

I want only one checkbox for "Power" should be checked by default while other other checkboxes should be unchecked while loading the chart.

Please find the attachment for more details.

We do have allowselection attribute at <chart> level. in xml but do we have any parameter/attribute for axis tag which can change the state of checkbox in xml itself?

Any input/suggestion would be appreciated.

 

Thanks,

Gaurav

 

 

 

Hi,

 

The configuration of a checkbox button(checked/unchecked) for a particular axis is not possible.

 

Using allowSelection attribute in the chart element is the only way.

 

Thanks for your time.

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