score:0
It can also depend on the Font you are using. With me this happens for Arial, but works fine with Helvetica or Times New Roman.
score:0
Had the same issue and fixed with the autoRotation configuration. Highcharts will automatically rotate your labels if they don't fit. If there are too many even when rotated Highcharts will try remove labels automatically for you.
xAxis = {
"type": 'datetime',
"tickInterval": 30 * 24 * 3600 * 1000,
"labels": {
autoRotation: [45]
}
}
Just make sure you don't specify step as it will override autoRotation.
score:1
Found my answer here: Highcharts overlapping category labels I was using a category array for xAxis labels instead of letting HighCharts parse a UTC date code.
score:3
Maybe staggerLines is a solution for you:
xAxis: {
type: 'datetime',
labels: {
staggerLines: 2
}
},
I updated your jsfiddle with this setting: http://jsfiddle.net/benebun/4ghhf/134/
From the API Ref:
staggerLines: Number (Since 2.1)
Horizontal axes only. The number of lines to spread the labels over to make room or tighter labels. .
(found via this comment on github)
I updated your jsfiddle with this setting: http://jsfiddle.net/benebun/4ghhf/134/
score:3
Another solution is to use tickPixelInterval, which defines the pixel spacing between the ticks. A higher number will result in fewer ticks.
http://api.highcharts.com/highcharts#xAxis.tickPixelInterval
score:10
I see two ways of fixing your problem :
- Change the tick interval
- Change the label display
I applied both in the following code (xAxis section) :
$(function () {
var chart = new Highcharts.Chart({
chart: {
renderTo: 'container',
type: 'column'
},
xAxis: {
type: 'datetime',
tickInterval : 7*24 * 3600 * 1000,
labels : { y : 20, rotation: -45, align: 'right' }
},
series: [{
data: [
[Date.UTC(2010, 3, 11), 29.9],
[Date.UTC(2010, 4, 8), 71.5]
]
}]
});
Source: stackoverflow.com
Related Query
- Highcharts - with datetime axis labels overlap
- Highcharts datetime axis overlap with a long time series
- Slanted highcharts axis labels overlap with legend
- Highcharts label format with tickPositioner in a datetime x Axis
- HighCharts scatter plot with Datetime on X Axis not plotting values correctly
- How can I force ticks/grid lines on a Highcharts datetime X axis to arbitrarily line up with data points?
- How To Show All Data Labels For Datetime Axis In Highcharts
- Replace axis labels with custom in highcharts r
- Highcharts drilldown to pie chart - Clicking on axis label with multiple series causes pie charts to overlap
- Highcharts datetime axis labels according to data point groups
- Highcharts React update animations with datetime axis
- Highcharts and EXTJS 3: Labels in x axis overlap
- Is it possible to make a table with y axis labels of Highcharts bar chart?
- X axis labels overlap tooltip in column chart in highcharts
- How to fix formatting of axis labels in Highcharts when surrounding the contents with div?
- Width for labels on x Axis with grouped Categories in Highcharts
- Highcharts multiple axis with custom labels
- Highcharts - draw path on chart with datetime axis
- In the following code i want to show the WHOLE names on x axis nd dont want them to overlap with the legend
- Category chart with datetime y axis in highcharts
- How to prevent highcharts from shortening labels with ellipsis
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Highcharts - Long multi-line y axis labels causing following label to be removed
- Highcharts Column chart with drilldown, remove hyperlink like formatting from x-axis labels
- Highcharts stacked bar chart hide data labels not to overlap
- highcharts - removing decimal places on Y axis with only one point
- Highcharts crosshair with labels on axes
- Highcharts blank chart with x and y axis
- last label in x axis with datetime format not coming in highchart
- In highcharts, is it possible get the exact position of x axis labels for overlap detection purpose?
More Query from same tag
- Highcharts dynamically move dataLabel if it doesnt fit
- Highchart renders differently for height on first click
- Highcharts data off by one day
- Highcharts change dataLabel option 'inside' by function
- Highcharts Map not rendering no errors
- R Highcharter map with hc_motion
- PHP + mysql + highcharts
- How to reflow HighCharts when using highcharts-vue?
- I want the three circles to overlap. (use highcharts)
- JS Gauge with growing arc
- data in x-axis in highcharts with 15mins timeblock
- Highcharts Image Renderer Auto Height
- how to create highcharts formatted json structure with python
- filter json data to display on the pie chart
- Highcharts donut legend toggle
- HighCharts - hide date on x-axis and have only hours and minutes
- HighCharts Does not display Graphics after hosting with Laravel Project
- Not interpolate missing dates in Highcharts
- How can I include two data in one series on HIGHCHARTS?
- Highcharts - where to place style and changing style for one wedge in a pie chart
- Resizing Highcharts legend on window resize
- Highchart, how to vertically align in the middle a line?
- Highcharts-NG is only listening to some of my chart config options
- align the plot in center of the grid in highchart
- Display data from CSV in Highcharts with Angular
- highcharts configuration
- How to mark a specific zone in highcharts
- Highstock column chart y axis ceiling issue
- highcharts-export-clientside Unsupported export format
- How to add blank spaces in highcharts subtitle option