简体   繁体   中英

How does 'min' 'max' works in Highcharts? I can't get the scrollbar to work

So I have a huge array of data and I'm using Highcharts's Heatmap . However I can't get the scrollbar to work, it let me scroll the whole page instead of letting me scroll inside the container. Picture :

在此处输入图片说明

I looked around and found out that it had something to do with min and max properties. But I have no idea how it's suppose to works, I tried messing with it after read the documentation but no luck so far.

Here's my JSFiddle : http://jsfiddle.net/ngendk2o/9/

Any help will be appreciated. Thanks

The command suppose to be:

scrollbar: {
    enabled: true
}

Additional you have to set the xAxis.max visible columns on the x axis.

xAxis: {
    max: 7  // herewith you define the width 
}

Also your chart.width blocks the scrolling as it is defined over the total length, don't use it!

    // width: data.length * 3,

See the modified jsfiddle here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM