Jqplot条形图有任何条形调整非常大和小的值?

时间:2022-09-15 10:52:52

I am using Jqplot plugin to generate charts like bar. In My bar charts have two large values First bar and last bar. In between bars are too small. How to show the small bars adjust to large values .

我正在使用Jqplot插件生成像bar这样的图表。在我的条形图中有两个大值First bar和last bar。在酒吧之间太小了。如何显示小条调整为大值。

Jqplot条形图有任何条形调整非常大和小的值?

Any way to match or adjust the other small value bars to high value bars .

任何方式匹配或调整其他小值栏到高值栏。

1 个解决方案

#1


4  

The graph was drawn like the above as it has the highest value 350500 and lowest value -5000 in it.So the y axes range is arranged automatically to include all the range of values.If your concern is the values 1600,993,2410,1854 etc.. are hardly unnoticeable then you can control the y-axis ticks by giving it a max value and a min value of your choice as shown below.

该图形如上所示,因为它具有最高值350500和最低值-5000.所以y轴范围自动排列以包括所有值的范围。如果您关注的是值1600,993,2410, 1854等等几乎没有什么不明显的,你可以控制y轴刻度,给它一个最大值和你选择的最小值,如下所示。

 axes: {
        xaxis: {
           //specify x-axis options here 
        },            
        yaxis: {
            min:-5000, //can give your choice of minvalue
            max:10000, //can give your choice of max value                
        }
    }

If the max value is given as 10000,you can see the graph adjust itself so that the values 1600,993,2410,1854 etc have become large and noticeable but you can see the bar corresponding to 350500 touches the top as it indicates the value is higher than 10000.You can use a highlighter then to know the exact value when they are moused over.Refer Jqplot documentation to know more details.

如果最大值为10000,您可以看到图形自我调整,以便值1600,993,2410,1854等变得大而且明显但您可以看到对应于350500的条形触及顶部,因为它表示值高于10000.您可以使用荧光笔然后知道它们被鼠标悬浮时的确切值。请参阅Jqplot文档以了解更多详细信息。

#1


4  

The graph was drawn like the above as it has the highest value 350500 and lowest value -5000 in it.So the y axes range is arranged automatically to include all the range of values.If your concern is the values 1600,993,2410,1854 etc.. are hardly unnoticeable then you can control the y-axis ticks by giving it a max value and a min value of your choice as shown below.

该图形如上所示,因为它具有最高值350500和最低值-5000.所以y轴范围自动排列以包括所有值的范围。如果您关注的是值1600,993,2410, 1854等等几乎没有什么不明显的,你可以控制y轴刻度,给它一个最大值和你选择的最小值,如下所示。

 axes: {
        xaxis: {
           //specify x-axis options here 
        },            
        yaxis: {
            min:-5000, //can give your choice of minvalue
            max:10000, //can give your choice of max value                
        }
    }

If the max value is given as 10000,you can see the graph adjust itself so that the values 1600,993,2410,1854 etc have become large and noticeable but you can see the bar corresponding to 350500 touches the top as it indicates the value is higher than 10000.You can use a highlighter then to know the exact value when they are moused over.Refer Jqplot documentation to know more details.

如果最大值为10000,您可以看到图形自我调整,以便值1600,993,2410,1854等变得大而且明显但您可以看到对应于350500的条形触及顶部,因为它表示值高于10000.您可以使用荧光笔然后知道它们被鼠标悬浮时的确切值。请参阅Jqplot文档以了解更多详细信息。