Sign in to follow this  
rite2rio

I want he legend values to appear in the right side of a line chart

Recommended Posts

That is the legend values to should appear coressponding to the line that it represents on the right hand side of the canvas in a 2D Line chart .

Please let me know if its possible and if it is possible then how to go about it

thanks and reagards

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Welcome to FusionCharts forum. :)

I am afraid, single-series charts does not support legends as of now.

In case you wish to display the datavalues on the right side of the chart instead of the left side(default), I am afraid, FusionCharts does not support this natively.

However as a work-around, please try the following steps :-

1) you need to set the value of the attribute "showvalues" to '0' in the <chart> element 

Ref.- http://www.fusioncharts.com/docs?/AttDesc/DataValues.html

2) Draw trendline along each horizontal dive lines.

3)Display the datavalues as the trendline values using the attribute "displayvalue" in the <trendline> attribute.

Ref.- http://www.fusioncharts.com/docs?/AttDesc/Trend.html

I hope this helps.

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Could you please specify the issue a bit elaborately?

Awaiting your reply.

Share this post


Link to post
Share on other sites

I meant that the legends should appear in the right side of the chart  like in the above chart sample Class A,Class B , Class C, Class D etc should appear in right side of the chart i tried using the trend lines ,

 is there a possiblilty to make the trendlines invisibles and only show the display value for them

Share this post


Link to post
Share on other sites

Hi,

I meant that the legends should appear in the right side of the chart  like in the above chart sample Class A,Class B , Class C, Class D etc should appear in right side of the chart

Could you please

try setting the value "Right" for the attribute "legendPosition" in the <chart> element to display the legend on the right side of the chart?

is there a possiblilty to make the trendlines invisibles and only show the display value for them

Could you please try setting "alpha='0'" in the <trendLines> element to make the line transparent?

Ref.- <trendLines>

  <line startValue='895' alpha='0' displayvalue='Average' />

  </trendLines>

Hope this helps. :)

Share this post


Link to post
Share on other sites
Guest Basundhara Ghosal

Hi,

Glad to help you.

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