Sign in to follow this  
rokhan

How To Change X-Axis Label Orientation

Recommended Posts

In my case FusionCharts are installed on the server, I dont know which version unless I ask them but I believe it is a bit older. My problem is I want to change label orientation in x-axis to vertical. I tried

 

labelDisplay='ROTATE'

 

but it did not work.

 

I am guessing, they are using an older version and this attribute was not supported then? When I look at the XML file, it is generated in this form

 

<graph caption='caption' xAxisName="Months" ..>
  <set name='January' value='100'>
 <set name='Febraury' value='200'>
</graph>

 

When I change it to this form, as is given in various examples, change graph to chart and name to label, it does not work

 

<chart caption='caption' xAxisName="Months" ..>
  <set label='January' value='100'>
 <set label='Febraury' value='200'>
</chart>

 

If I change the graph to chart graph is not displayed. I did change `name` to `label` labels do not shown. Is there an attribute in this older version where I can set x-axis label orientation to vertical. I basically want my x-axis labels to run upwards.

 

Thanks

post-28290-0-57767200-1338928269_thumb.png

Share this post


Link to post
Share on other sites

Hey,

 

Using FusionCharts Free, setting rotateNames='1' attribute will set x-axis label orientation to vertical.

 

<graph caption='caption' xAxisName="Months" rotateNames='1'..>
  <set name='January' value='100'>
 <set name='Febraury' value='200'>
</graph>

 

Hope this helps.:)

Share this post


Link to post
Share on other sites

Hi,

 

can someone explain, how to to that in Zkoss 6.5. Version (including FusionCharts free)?

 

My object there is <fusionchart>, not <graph>. And i prefer to access the java object "org.zkoss.zkmax.zul.Fusionchart" instead of scripting.

 

 

Following code did nothing:

 

this.mychart.setAttribute("rotateNames", "1");

this.mychart.setAttribute("labelDisplay", "Rotate");

 

Thanks

Reinhard

Share this post


Link to post
Share on other sites

Hi,

 

Welcome to FusionCharts Forum :D

 

Apologies. I am afraid, we do not have any in-house support for the library in Zkoss.

 

However, we would try our best to provide as much help as possible with respect to FusionCharts features and implementation.

 

Note that if Zkoss is using FusionCharts FREE, labelDisplay attribute would not be supported. This attribute is supported only in FusionCharts XT.

 

However, rotateNames is supposed to work if you are using Column, Line or Area charts.

 

Can you please let us know the chart type that you are using.

 

Also, please note that for each chart in FusionCharts FREE, a final XML is generated before it renders. Is there a possibility that you can also get the XML that is internally being built for the chart?

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