3

I need to know how to set min height of data element of series. Eg:-If i have series [1000,400,200,500,10] and my Y-Axis max height is 1000..but when it will plot graph the height of last element of series "10" will be very small or negligible....i want to set condition that whatever the data of series the max height while ploting graph is 10 px. how to do it??? Thanks in advance.

4

1 回答 1

1

Take a look at the min and max properties of the axis, like:

    yAxis: {
        min: 0,
        max: 3,
        title: {
            text: 'Total fruit consumption'
        }
    }

Example taken from here: http://jsfiddle.net/gh/get/jquery/1.7.2/highslide-software/highcharts.com/tree/master/samples/highcharts/demo/bar-stacked/

API Documentation of the min option on an axis is availble here: http://api.highcharts.com/highcharts#yAxis.min

API Documentation of the max option on an axis is availble here: http://api.highcharts.com/highcharts#yAxis.max

于 2012-10-13T10:38:36.280 回答