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'
                    }
                  }
                ]
              },

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM