簡體   English   中英

高圖靜態線,其下方為背景色

[英]Highcharts static line with background color below it

我需要一條“最小值”樣式線,該樣式線分布在值y並且在該值上是靜態的。 到目前為止,我有:

yAxis: {
    plotLines: [{
        color: 'red',
        width: 2,
        value: <?=$product[0]['current_price']?>
    }]
}

現在,我要做的就是獲取這行下面的背景,並為其上色。 我該如何實現?

不幸的是,不支持plotLine下的背景。 您只能使用Renderer http://api.highcharts.com/highcharts#Renderer並添加額外的形狀,或在plotLine下使用plotBand。

http://api.highcharts.com/highcharts#xAxis.plotBands

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM