supreethrs

Adding text above and below trendpoints

Recommended Posts

Hello All,

I have downloaded the trial version of fusion chart for evaluation to check if all my requirements can be acheived

I would like to know if it's possible to add text above and below each of the "trendpoints".

I have added the "displayValue" for the text above the trendpoint.

I'm trying to add text using annotations below each trendpoint, but i'm not able to get the X & Y position of each trendpoint to achieve that.

So is it possible to get the position of trendpoints or is there a better approach to achieve my requirement?.

 I have added the image for reference

image.png.f1a059014748d74c187b167f10b0f99e.png

Share this post


Link to post
Share on other sites

Hi,

 

As per the image provided in your query, we presume you are using Bar(horrizontal) Chart, and natively the trend-lines in a chart is capable of displaying a single display label for a single trend-line.

 

However, your requirement could be achieved using the Text annotations feature. To position the Text annotation exactly on top and bottom of the trend-line, you could make use of the supported macros or by using absolute values with respect to the chart. Please refer to the documentation for further information on positioning macros for annotations :

http://www.fusioncharts.com/dev/advanced-chart-configurations/annotations/positioning-annotations-using-macros.html

 

Also find a sample fiddle of Bar Chart using annotations to display trend-line labels : http://jsfiddle.net/yy1ump6j/

Please find the fiddle of Linear Gauge : http://jsfiddle.net/1mck81rq/

 

Thanks,

Akash.

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