简体   繁体   English

Highcharts JS'columnrange'图表值格式

[英]Highcharts JS 'columnrange' chart value formatting

How does one know if the 'this.y' in the formatting function of a Highcharts JS 'columnrange' chart is currently processing the label for 'low' or 'high'? 如何知道Highcharts JS“ columnrange”图表格式功能中的“ this.y”当前是否正在处理“ low”或“ high”标签? I really want to be able to style the value differently based on if its the low or high value for the chart. 我真的希望能够根据图表的低值或高值来更改值的样式。 Couldnt find the solution in the docs, although I found stuff like xLow and yLow. 尽管我找到了xLow和yLow之类的东西,但无法在文档中找到解决方案。

If you know Highcharts then this question should make sense without me posting any code. 如果您知道Highcharts,那么无需我发布任何代码就可以理解该问题。

Thanks. 谢谢。

好吧,经过很多痛苦,我发现解决方案就像在格式化程序中添加if(this.y === this.point.low)一样简单。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM