score:1
Accepted answer
You can use minPadding
and maxPadding
properties, but their value is relative to the length of the axis.
You can also define pointRange
as 2
and correct ticks by using tickPositions
or tickPositioner
:
plotOptions: {
column: {
stacking: 'normal',
pointRange: 2,
pointWidth: 20,
}
},
xAxis: {
maxPadding: 0,
minPadding: 0,
tickPositions: [0, 1, 2]
},
Live demo: http://jsfiddle.net/BlackLabel/2xdwuah9/
Finally, you can reset default margins and specify min
and max
for the x-axis:
plotOptions: {
column: {
stacking: 'normal',
pointRange: 0,
pointWidth: 20,
}
},
xAxis: {
maxPadding: 0,
minPadding: 0,
min: -1,
max: 3
},
Live demo: http://jsfiddle.net/BlackLabel/96pw12u0/
API Reference:
https://api.highcharts.com/highcharts/xAxis.minPadding
https://api.highcharts.com/highcharts/series.column.pointRange
Source: stackoverflow.com
Related Query
- How to remove space in between bars in HighCharts bar chart?
- How to remove empty space between bars in Highcharts polar chart?
- How to create constant space between bars/columns in Highcharts?
- How to reduce the space between Bars with a fixed bar width in Highcharts column chart?
- How can I do in Highchart to have 1px space between the columns and the y Axis?
- How to add space between chart and axis in highcharts
- Highcharts - How can I decrease space between categories?
- How to change space value between grid and yAxis in Highcharts line chart
- Highcharts columns - fixed border width, remove spacing between the bars
- How do I create data binding between highcharts and Polymer 1.0
- Highcharts - Space between bars based on the bars' width
- Highcharts Pie chart how to reduce space between chart and legend caused by plot width
- How to shrink space between numbers on y-axis in HighCharts
- how to change the width between columns ? HIGHCHARTS
- How to fill the blank space between the bars with specific color in gantt chart of highcharts?
- Highcharts how do i keep space between series the same but increase space between categories?
- How to add space between series in stacked columns in HighChart?
- How to space columns in HighCharts
- Highcharts Stacked Bar: How to remove spacing between bars
- How to create a column range chart in Highcharts using range and navigator functions?
- Space between columns
- HighCharts - How to create dynamic chart that exports EVERYTHING
- Highcharts - How to remove connecting line between fixed tooltip and point
- Remove space between yAxis and data in highcharts
- Highcharts: How to remove tiny space between stacked bars/columns
- Highcharts padding between plot and graph, how to remove?
- In highcharts's stacked bar chart, how can I remove the white space between different
- remove tooltip space between border and content highcharts
- How do I reduce the space between title and chart of a High Chart?
- How to create an inner circle pie chart in Highcharts
More Query from same tag
- Highcharts - Missing Data after setExtremes
- Highchart - Set Time(Hour:Minute) on X axis
- how to zoom dual x axis at same time in highcharts
- Coloring a region programmatically based by user selection with Highmaps
- Links in Y-Axis of stacked bar chart
- Extend highcharts renderer symbols to have plus sign
- getSelectedPoints array delay problem in HighCharts
- Unable to create graphs using highcharts-ng in meanjs. how to create graphs from the existing table in MEANJS
- R different colours for set of bars in barchart
- Highcharts column chart returning incorrect series index on click when using shared tooltip
- plotting irregular time data from CSV with highcharts
- Data map to suitable Highcharts series
- Unable to load the series without duplication on highchart using angular 4
- Meteor: Reusing a Template With a Chart-Div
- How to draw single line graph using Highchart bullet graph?
- Highcharts: how to bring pop-up boxes above the stock-tools menu?
- Show total graph in a particular time: Highcharts, Javascript
- How do I catch a click event on a polygon in HighCharts without having the tooltip popping up
- Tick position on X axis
- Highcharts : How to using grouped_categories for csvURL?
- Get a reference to a Highcharts chart
- Highcharts stacked bar with datetime, not able to set start date
- Is Gill sans supported for export?
- Connecting Highcharts to a database using ASP.net
- Tick Interval for 5 days
- Customize tooltip and format the number to 2 decimal places of highcharts
- How to load highcharts annotations module in react typescript?
- highmap : not able to display tooltip
- Return the next line of a csv file each time a php script is called
- Highcharts - sorting JSON data JavaScript