3

I want to display legend with it's value inside pie chart. I googled it a lot but didn't get any solution. Also, there is no option in fusion charts to achieve this directly. Can anyone please suggest what trick can I apply to do so? I think I need to modify lot of things in library which I don't want so please help me.

Refer below image

enter image description here

I'm using angular-fusion charts library so I want to do this in angular way.

Jay Shukla
  • 5,794
  • 8
  • 33
  • 63

2 Answers2

1

If you are using FusionCharts you can achieve this using the attribute "placeValuesInside='1'"

// Sample data
{
"chart": {
    "showpercentagevalues": "1",
    "use3dlighting": "0",
    "showshadow": "0",
    "placevaluesinside": "1",
    "animation": "0"
},
"data": [{
        "label": "ST_Clean",
        "value": "33",
        "color": "f7bc34"
    }, {
        "label": "ST_Eff",
        "value": "67",
        "color": "e24b1a"
    }]
}
0

Tried this and works for me

"valuePosition"=>"inside",
"labelPosition"=>"inside",

https://www.fusioncharts.com/dev/chart-guide/standard-charts/pie-and-doughnut-charts