Suraj

Data labels on top of horizontal bar chart

Recommended Posts

Hi,

We are using bar2d for horizontal bar chart. Our requirement is to show data labels and values on top of bars. Is there any configuration (attributes) that fusion chart provide to achieve this?

Or is it possible to achieve this with annotations? If yes, then can you please the solution.

Attached is the screen shot of our requirement.

bar chart.PNG

Share this post


Link to post
Share on other sites

Hi Suraj,

 

Natively the Bar chart do not support displaying the labels and the values on top of the horizontal bars. You can use annotation to set custom texts(labels and values) on top of the bars by setting the "x" and "y" attributes accordingly. Please find a sample fiddle for reference : http://jsfiddle.net/d7hwb4so/

Please note : Annotations are static in nature.

Text annotation documentation link : https://www.fusioncharts.com/dev/chart-guide/chart-configurations/annotations#create-text-annotations

Positioning macros documentation link : https://www.fusioncharts.com/dev/chart-guide/chart-configurations/annotations#use-macros

 

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