Hi I am using apache echart so for the i have created the used the example script
option = {
tooltip: {
trigger: 'item'
},
legend: {
top: '5%',
left: 'center'
},
series: [
{
name: 'Access From',
type: 'pie',
radius: ['40%', '70%'],
avoidLabelOverlap: false,
label: {
show: false,
position: 'center'
},
emphasis: {
label: {
show: true,
fontSize: 40,
fontWeight: 'bold'
}
},
labelLine: {
show: false
},
data: [
{name: 'test1', spend1: 12468.31},
{name: 'test2', spend2: 2322}
]
}
]
};
In this case labels are visible test 1 and test2 but piechart is not visible . I am new to this can anyone help me how can recplace spend 1 AND spend2 with value.
Solution for my json data so that pie chart will be visible