问题描述
我在列图中使用了高图表。在Y轴显示百分比值。我不想分别显示最大值和最小值100和。
I have used high chart for column graph.in Y axis it is showing percentage value.I don't want to show max and min value 100 and 0 respectively.
推荐答案
<td style="padding:0">{point.y}% </td>
这是代码,其中y轴用百分比填充。一旦你删除它,或只是删除 {point.y}%
部分,它将起作用,你将不会再看到百分比。
此代码(我相信)创建百分比并在屏幕上打印。因此,如果你想在其他任何地方写它,你可以再次使用它来打印价值。
但是,这是一个很好的方法来阅读图书馆的API而不仅仅是库开发人员现有的或提供的代码。在他们的API中,他们非常好地解释了代码。所以在提出问题之前,至少尝试谷歌一次问题。 99%的问题已经解决。
This is the code, where the y axis is being populated with the percentage. Once you remove it, or just remove the {point.y}%
part, it will work and you won't see the percentage again.
This code (I believe) creates the percentage and prints on the screen. So if you want to write it anywhere else, you can use it again to print the value.
However, it is a good approach to read the API of the library, rather than just the existing or provided code by the library developers. In their API they explain the code very well. So before asking a question, atleast try to Google out the question once. 99% problems are already solved.
这篇关于如何从highchart柱形图中删除y轴值?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!