今天帮同学搞个英文论文的图,他要坐标轴有名字,而echarts示例里一般坐标轴不写名字
option = {
xAxis: {
type: 'category',
data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
name:'abc',
nameLocation:'middle',
nameTextStyle:{
color:"red",
fontSize:16,
padding:10
}
},
yAxis: {
type: 'value'
},
series: [{
data: [820, 932, 901, 934, 1290, 1330, 1320],
type: 'line',
smooth: true
}]
};