Sign in to follow this  
Lemming

How to user javascript to set attributes

Recommended Posts

Hi,

 

 

 

I'm trying to do the following to alter the bottom labels of the chart, but it doesn't seem to work.

 

 

 

var myChart = new FusionCharts("Line.swf", "1", "500", "300", "0", "0");

 

myChart.setDataURL("file.xml");

 

myChart.setAttribute("labelDisplay", "Rotate");

 

myChart.setAttribute("slantLabels", "1");

 

myChart.render("chartdiv${FusionChart.chartID}");

 

 

 

I've got the values for the setAttribute() function from the documentation, in as far as they are what would be used if I was using xml.

 

 

 

I couldn't see any examples of how to use the setAttribute function in the documentation.

 

 

 

Thanks

 

 

 

Mark

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