javascript - Decimal values for yAxis categories in Highcharts - Stack Overflow

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

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 /

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 /

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/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./ref/

Share asked May 15, 2012 at 17:40 NarenNaren 1,9201 gold badge17 silver badges22 bronze badges 2
  • 1 Probably not what you want but it might solve this issue: Since your yAxis is actually your "value" why not use plotBands instead to mark which yAxis values are in poor, below average, average, or good? See highcharts./demo/spline-plot-bands – wergeld Commented May 15, 2012 at 17:50
  • @Naren ~ What is the status on this question? Were you ever able to e to an acceptable solution? – Linger Commented Jun 6, 2012 at 3:47
Add a ment  | 

1 Answer 1

Reset to default 6

You could always use plot bands to display categories on the Y axis. That way you could still keep the actual values. I have demonstrated that with your code here.

EDIT

Here is another example with the grid lines taken off and the plotBands each with their own color. Here is the color chart if you wan to change any of them.

If you prefer to use the plot bands and no y-axis labels, here is an example of that. I think it works just fine. If the user really wants to see the exact value they can hover over the point.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744861839a4597748.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信