Display Legend Inside A Pie Chart With Fusion Chart
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 a
Solution 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"
}]
}
Solution 2:
Tried this and works for me
"valuePosition"=>"inside",
"labelPosition"=>"inside",
https://www.fusioncharts.com/dev/chart-guide/standard-charts/pie-and-doughnut-charts
Post a Comment for "Display Legend Inside A Pie Chart With Fusion Chart"