series: [{ markLine: { itemStyle: { normal: { lineStyle: { type: 'solid', color:'#000' },label: { show: true, position:'left' } } }, data: [ { name: '平均线', // 支持 'average', 'min', 'max' type: 'average' }, { name: 'Y 轴值为 100 的水平线', yAxis: 100 }, [ { // 起点和终点的项会共用一个 name name: '最小值到最大值', type: 'min' }, { type: 'max' } ], [ { name: '两个坐标之间的标线', coord: [10, 20] }, { coord: [20, 30] } ], [{ // 固定起点的 x 像素位置,用于模拟一条指向最大值的水平线 yAxis: 'max', x: '90%' }, { type: 'max' }], [ { name: '两个屏幕坐标之间的标线', x: 100, y: 100 }, { x: 500, y: 200 } ] ] } }]
标线markLine的用法
猜你喜欢
转载自www.cnblogs.com/yifanSJ/p/9553525.html
今日推荐
周排行