如何设置Highcharts图表最大yAxis值 [英] How to set Highcharts chart maximum yAxis value

查看:833
本文介绍了如何设置Highcharts图表最大yAxis值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直试图在两天内找到一种方法来设置Highcharts上yAxis的最大值



我得到了列图形的百分比,但系列中的最高值为60,因此它将轴调整为顶部为70 ,我找到了一种方法来选择开始点,但无法选择终点



我真正需要的是将 yAxis设置为0到100 ,所以数据会更准确地查看为百分比

在此先感谢您,
Bruno WG

解决方案

试试这个:

  yAxis:{min: 0,max:100} 

请参阅 this jsfiddle example


I've been trying for two days to find a way to set the maximum value of the yAxis on Highcharts.

I got a percentage column graphic, but the highest value in the series is 60, so it adjusts the axis to top at 70, I found a way to choose the start point, but no way to choose the end point.

What I really need is to set the yAxis from 0 to 100, so the data will be more accurately viewed as percentage

Thanks in advance, Bruno W.G.

解决方案

Try this:

yAxis: {min: 0, max: 100}

See this jsfiddle example

这篇关于如何设置Highcharts图表最大yAxis值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆