Sign in to follow this  
nomori

valueOnRight does not work

Recommended Posts

Guest Basundhara Ghosal

Hi Nomori,

Welcome to FusionCharts forum. :)

The attribute 'valueOnRight' determines whether to show the trend line value on left side or right side of chart. This is particularly useful when the trend line display values on the chart are colliding with divisional lines values on the chart.

In case you wish to display the display value of the Trendline on the Rught side of the canvas, please try setting the attribute 'valueOnRight' in the <trendline> element to '1'.

Ref.-

  <trendLines>

<...valueOnRight='1'/>

  </trendLines>

For further details please refer to the link below:-

Ref.- http://www.fusioncharts.com/docs?/ChartSS/Combi2DDY.html

Hope this helps. :)

Share this post


Link to post
Share on other sites

Hi!Basundhara Ghosal

 

thank you for your reply.:)

 

 

 

but It doesn't work well though the attribute was set as follows as say by you.

 

Besides, is there a setting that should be done?

 

Is the order that it is necessary to describe the attribute is provided?

 

Or, when it is an evaluation version, has the function been limited?

 

 

 

my XmlCode is:

 

&ltchart showValues='0'&gt

 

&ltcategories&gt

 

&ltcategory label='Sales'/&gt

 

&ltcategory label='FoodCost'/&gt

 

&ltcategory label='LaborCost'/&gt

 

&ltcategory label='MiscCost'/&gt

 

&ltcategory label='Profit'/&gt

 

&lt/categories&gt

 

&ltdataset seriesName='lastyear'&gt

 

&ltset value='12237674' /&gt

 

&ltset value='3069476' /&gt

 

&ltset value='3472187' /&gt

 

&ltset value='0' /&gt

 

&ltset value='5696011' /&gt

 

&lt/dataset&gt

 

&ltdataset seriesName='thisyear'&gt

 

&ltset value='9941934' /&gt

 

&ltset value='2498975' /&gt

 

&ltset value='2883477' /&gt

 

&ltset value='0' /&gt

 

&ltset value='4559482' /&gt

 

&lt/dataset&gt

 

&ltdataset seriesName='vs' renderAs='column' parentYAxis='S'&gt

 

&ltset value='81.2403893092756' /&gt

 

&ltset value='100.21337151454' /&gt

 

&ltset value='102.221297453575' /&gt

 

&ltset value='' /&gt

 

&ltset value='80.0469310891429' /&gt

 

&lt/dataset&gt

 

&lttrendLines&gt

 

&ltline valueOnRight='1' startValue='100' color='FF0000' displayValue='100' dashed='1'/&gt

 

&lt/trendLines&gt

 

&lt/chart&gt

Edited by Guest

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

In case you are using Dual Y-axis Charts, please try setting the value of the 'parentYAxis' attribute of the <trendlines> element to 's' to display the trendvalue for the secondary Y axis.

Ref.- <trendLines>

<line startValue='100' color='FF0000' displayValue='100' dashed='1'  parentYAxis='S'/>

  </trendLines>

The trendvalue for the primary axis gets displayed by default.

Please refer to the sample that we are sending you as an attachment.

Hope this helps. :)

valueonright_MSCombi2DDY.zip

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

You are most welcome.

Glad that your issue is resolved.

Keep smiling and keep FusionCharting. :)

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