gauravsingh Report post Posted April 24, 2012 (edited) 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 Edited April 24, 2012 by gauravsingh Share this post Link to post Share on other sites
Guest Sumedh Report post Posted April 25, 2012 On 4/24/2012 at 1:18 PM, gauravsingh said: 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