I need to show custom Series label instead of data array value. here my series data array is
data: [820, 932, 901, 934, 1290, 1330, 1320],
When i enable label :
label: {
show: true,
position: 'top',
color: "black",
fontSize:12,
},
It show data array value top of my line chart i need to show custom text instead of this data array values
[text1,text2,text3...]
My source code:
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
},
yAxis: {
type: 'value'
},
series: [{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line',
symbolSize: 12,
label: {
show: true,
position: 'top',
color: "black",
fontSize:12,
},
}]
};