kselman Report post Posted November 6, 2008 (edited) Im using the Line Chart. Is there a way to turn on and off the labels on an axis? I have a JavaScript onclick function associated with a text link near a small chart. When clicked it re-renders the selected chart in the larger DIV at the top of the page. in the JS I am setting a new width and height and calling render(). Edited November 6, 2008 by Guest Share this post Link to post Share on other sites
Pallav Report post Posted November 7, 2008 If it's the x-axis labels that you want to hide, you may set [chart showLabels='0' ...] Share this post Link to post Share on other sites
kselman Report post Posted November 7, 2008 (edited) Thanks for the reply. I tried your suggestion in my JavaScript and it didnt change anything. I know about the showLabels attribute in the xml file. I would like to turn it on and off client side via JavaScript. Im starting a fusion chart from JavaScript: < script type="text/javascript"> var targetElement = document.getElementById("HiddenField"); var overallChart = new FusionCharts("Area2D.swf", "ChartId", "650", "200", "0", "1"); overallChart.setDataXML(targetElement.value); overallChart.showLabels='1'; <---------------- This does not turn on the Labels. overallChart.render("overall_chart"); < /script> Edited November 7, 2008 by Guest Share this post Link to post Share on other sites
Arindam Report post Posted November 7, 2008 Hi, I am afraid, overallChart.showLabels='1'; it is not possible from javascript. Share this post Link to post Share on other sites
River Report post Posted November 9, 2008 According to my experience, I've included explicit the attribute showLabels='1' into the chart's xml string: //showLabels can to have two posibles values ( 0 | 1) mychart.setDataXML("..."); Thanks, Jorge Rivero Share this post Link to post Share on other sites