score:1
Accepted answer
You need to set min/max values as workaround.
xAxis:{
type:'categories',
min:0.49,
max: categories.length - 1.49,
categories: categories,
minPadding:0,
maxPadding:0,
gridLineWidth:0,
tickmarkPlacement: 'between',//仅适用于类别轴categories值时候,刻度线位于在类别名称的中心
labels: {
align:'center',
y:-3,//垂直偏移
style:{
color:'white'
}
}
},
Source: stackoverflow.com
Related Articles
- Highcharts's width is not able to fill 100% of parent
- How to change chart's width to fill up div using angular2-highcharts when hide/open left side nav menu?
- Strange character in the Highstock source code
- Highcharts custom pattern fill shows different stroke width
- HIghcharts - chart width not the size of the parent container
- Highcharts width flow out of parent div
- Highcharts exceeding width of parent on Chrome only
- highcharts not to fill the width
- Angular - highcharts-angular / bootstrap / chart not growing to parent size width
- highchart How can I get width parent element for calculated x max in xAxis
- Highchart disappear on resize and not taking parent width
- Highcharts - issue about full chart width
- Highcharts width exceeds container div on first load
- Highchart specific width stack column bar graph
- Maximum bar width in Highcharts column charts
- HighCharts full width issue
- Fixed y-axis label width in Highcharts
- Highcharts Area graph, use 2 fill colors above / below X axis
- Gradient Fill on Line Chart (Highcharts)
- Highcharts Solid Gauge Width
- adapting text to highchart tooltip max width
- Highstocks graph width not correctly rendered
- set width of chart, highcharts
- Spline chart gradient fill
- Optimize JavaScript DrillDown code
- How can I change the width of the bars in a highchart?
- Get Highcharts width
- Using a fill pattern instead of colour with HighCharts
- Highchart Pattern fill
- Stop HighCharts increasing width of line on hover
- A different suffix for each line on Highstock/Highcharts
- Highcharts :Rendering only Percentage Bar Using type: 'xrange'
- Dotnet highchart visible attribute
- ionic3 highchart shows error during build
- Create Highchart from the Following Data
- highcharts: tooltip shows for spline but not scatter plot
- Link table data with chart data Jquery
- Highcharts - creating chart with same scale axis
- Highcharts - Even tick with uneven spacing
- Highchart / Highstock how to set color of individual ohlc or candle?
- "display: none" with highcharts - incorrect size
- Use RangeSelector in Highcharts without Date
- adding a custom variable as a tooltip in highcharts scatter chart
- Loading string data from table gets parsed as Date on Chrome - Highcharts
- FsPlot for osx sierra
- How to divide the x-axis in two parts in highcharts?
- highcharts now showing with activemq's amq
- How to produce scatterplot with a factor as y in highcharter?
- Highcharts gantt or any chart x-axis scroll position to be at the start/left side on loading chart
- How to create highlight area under curve in high chart?