Suraj

Doughnut 2d graph,annotation

Recommended Posts

In Doughnut 2d Graph for printing labels on Arc of is there any attribute to do so.if not so how can we create  annotation  category with dynamic values  according to the labels present in data.  

PF screenshot for the same

Doughnut2d Chart.PNG

Share this post


Link to post
Share on other sites

Hi Suraj,

 

FusionCharts does not support displaying the labels or values on the Doughnut slices. You need to use annotations to achieve this.

However, since annotations are static in nature, you need to provide the "x" and "y" attributes of the text annotations accordingly with pixel values to get the text positioned on top of the slices.

For further reference check the below links :

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

Positioning Macros : https://www.fusioncharts.com/dev/chart-guide/chart-configurations/annotations#positioning-annotations

 

Thanks,

Akash.

Share this post


Link to post
Share on other sites

HI Akash,

 Please could you provide the same annotation(dynamic implementation) depending upon data input or data Sample.

According to our implementation we want to plot data depending upon dynamic input from backend. So could you help me and tell how to find start angle and end angle of arcs in doughnut charts.

Thanks

Suraj

Edited by Suraj

Share this post


Link to post
Share on other sites

Hi Suraj,

 

It is not possible to set the annotations position with respect to the starting and the ending arcs of the slices in a Doughnut chart. The available macro options with respect to the dataset are in the below documentation link :
https://www.fusioncharts.com/dev/chart-guide/chart-configurations/annotations#use-macros

Please note : Annotations are static in nature.

Though, you can dynamically set the annotation configurations using the supported API, but the "x" and "y" values for the text annotations have to be set according to your requirement to place them on top of the slices. Because, fetching the slice or arc starting and ending angles are not possible using 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