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