Sign in to follow this  
bouldo

move y axis to the right of the chart?

Recommended Posts

Hi I have been trying to find a solution for moving the y axis values to the right of the chart (removing them from the left)

I am using a 2DLineChart

Here is my xml

[ code ]

<graph numDivLines='4'

formatNumber="1"

formatNumberScale ="0"

showSecondaryLimits ='1'

labelDisplay="none"

showLabels ="1"

showValues="0"

setAdaptiveYMin="1"

bgAlpha="0,0"

canvasBgColor ="272727, 272727"

showAlternateVGridColor ="0"

showBorder ="0"

lineThickness ="2"

lineColor = "ceff00"

bgRatio = "0, 0"

drawAnchors ="0"

baseFont ="Arial"

baseFontSize = "10"

baseFontColor ="ffffff"

labelPadding  ="2"

adjustDiv ="0"

 

>

  <set label="21" value="4775"/>

  <set label="22" value="4817.2"/>

  <set label="23" value="4798.4"/>

  <set label="24" value="4780.1"/>

  <set label="25" value="4767.8"/>

  <set label="26" value="4746.3"/>

  <set label="27" value="4784.5"/>

  <set label="28" value="4741.4"/>

  <set label="29" value="4768.1"/>

  <set label="30" value="4727.6"/>

  <set label="1" value="4721"/>

  </graph>

[/ code ]

Thanks for your help.

bouldo

Share this post


Link to post
Share on other sites
Guest Madhumita

Hello,

You can set showYAxisValues='0' in the <chart> element so that the values are not displayed on the left.

Now, FusionCharts does not have the functionality to show y axis values on the right hand side.

However, as a wrokaround, you can choose to use trendlines to display the same.

e.g.

 <trendLines>

  <line startValue='4710' valueOnRight='1' color='000000' alpha='100' displayValue='4.710' />

  <line startValue='4732' valueOnRight='1' alpha='0' displayValue='4.732' />

  <line startValue='4754' valueOnRight='1' alpha='0' displayValue='4.754' />

  <line startValue='4776' valueOnRight='1' alpha='0' displayValue='4.776' />

  <line startValue='4798' valueOnRight='1' alpha='0' displayValue='4.798' />

  <line startValue='4820' valueOnRight='1' alpha='0' displayValue='4.820' />

  </trendLines>

Alternately, you can choose to use the Dual-Y combination charts to achieve the same.

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