5

I need my yAxis categories to be 0 = 'Poor', 0.25 = 'Below Average', 0.75 = 'Average' 1="Good"

I set the categories right, but Highcharts seems to interpret each point I plot to be equal to "1" step on the yAxis. See http://jsfiddle.net/54cFG/

Ideally, that chart should always show 4 labels on the yAxis and the plotted points should line up at "Below Average" and "Average".

Is there a setting I'm missing? I think I pretty much tried everything at http://www.highcharts.com/ref/

4

1 回答 1

6

您始终可以使用绘图带在 Y 轴上显示类别。这样你仍然可以保留实际值。我在这里用你的代码证明了这一点。

编辑

这是另一个去掉网格线的例子,每个 plotBands 都有自己的颜色。如果您想更改其中的任何一个,这是颜色图表。

如果您更喜欢使用绘图带而不使用 y 轴标签,这里是一个例子。我认为它工作得很好。如果用户真的想看到确切的值,他们可以将鼠标悬停在该点上。

于 2012-05-15T18:00:55.360 回答