如何强制Highcharts中的多个y轴具有共同的零点 [英] How can I force multiple y-axis in Highcharts to have a common zero

查看:94
本文介绍了如何强制Highcharts中的多个y轴具有共同的零点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请参阅此 JSFiddle 。如何获得y轴零点对齐?

解决方案

简短的回答是:您不可以。

你可以调整轴缩放,填充和打勾位置等,并可能得到你想要的,但没有设置来实现这一点。



有一个功能请求尽管如此,您可以添加您的投票和/或评论到:



http://highcharts.uservoice.com/forums/55896-general/suggestions/2554384-multiple-axis-alignment-control



编辑:
OTOH,我不得不提到这样的双轴图表通常是一种非常糟糕的方式来显示数据,并邀请用户制作比较无效。


尽管大多数人总是试图将所有内容放在一张图表中,但多个图表往往是更好的解决方案。



FWIW

See this JSFiddle. How do I get the y-axis zero to align?

解决方案

The short answer is: you can't.

You can tweak axis scaling, padding, and tick positions and the like and possibly get what you want, but there is no setting to accomplish this.

There is a feature request though, that you can add your votes and/or comments to:

http://highcharts.uservoice.com/forums/55896-general/suggestions/2554384-multiple-axis-alignment-control

EDIT: OTOH, I have to mention that dual axis charts like this are most often a very poor way to show the data, and invites the user to make comparisons that aren't valid.

While most people are always trying to put everything in one chart, multiple charts are very often the better solution.

FWIW

这篇关于如何强制Highcharts中的多个y轴具有共同的零点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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