echart平行于X轴Y轴标识线markLine、在X轴或者折线图上标识某个点markpointer

标识线

 

markLine: {
symbol: [
'none', 'none'], lineStyle: { normal: { type: 'solid', color: 'blue' } }, label: { normal: { show: true, position: 'middle',提示信息放在哪个位置,三个值“start”,"middle","end" 开始 中点 结束 formatter: 'ssss' } }, itemStyle: { normal: { color: 'red' } }, data: [
{ name:
'Y轴为1的水平线', yAxis: 1, xAxis: 15 },{
name: 'X轴为15的垂直线',
xAxis: 15
}
[ { name: '起点', value: 10, x: 15, y: 0 }, { name: '终点', x: 15, y: 1 } ] ] }

 垂直线

 

标识点

markPoint: {
                data: [
                  {
                    yAxis: '0',
                    xAxis: 15,
                    name: '当前时间',
                    value: '当前时间',
                    itemStyle: {
                      color: 'red'
                    }
                  }
                ]
              },

 

 

posted @ 2020-12-03 15:01  吾本人间一叶茶  阅读(3465)  评论(0)    收藏  举报
Live2D