简体   繁体   中英

Highcharts axis padding offset

I have looked for a particular case for a highchart configuration but cant seem to find any answers.

I want to know is it possible to add some padding on the x axis to put the plotted graph in an arbitrary point on the x axis such that is should look like so: Desired Graph

I've tried

minPadding: 1,
maxPadding: 1

which can condense data towards the middle but I want an empty plot point

Here is a jsFiddle to get most of what I wanted except that padding jsFiddle

This update will add two empty categories

Javascript line 8

data: [0,12.5,32.7,45,9.8,0],

Javascript lie 13

categories: ['','<16', '16-25', '26-35', '>35',''],

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