2015-11-02 96 views
3

最終結果應該看起來像這樣。見LSL線?我怎麼能夠得出這樣的結論,是否有辦法強制第一個值的提取?或者我應該畫一個覆蓋層?如何使用ZingChart繪製直線?

The end result

(內系列)

valueBox:{ 
    visible:true, 
    color:"red", 
    text:"LPL" 
}, 
type:'line', 
"line-style":"dashed", 
lineWidth: 1, 
"values":[max+1], 
lineColor:"red", 
"marker":{ visible:false} 

回答

2

的嘗試可以使用較小的指導,然後設置索引檢查到你想要它。

"minor-guide":{ 
        rules:[{ 
        rule:'%scale-index === 0', 
        alpha:1, 
        lineStyle: 'dashed', 
        lineWidth:1, 
        lineColor:"red", 
        visible:true 
       }]