score:12
Accepted answer
you can intercept the x-axis label function and change it's output. in my example, i've changed it to render short dates:
{ xaxis:
labels: {
formatter: function() {
return highcharts.dateformat("%b %e", this.value);
}
}
}
the xaxis.labels.formatter property allows control over this. you also may notice i'm using highcharts.dateformat, which is a utility function for rendering dates. this is not mandatory, but it's a nice built in feature. documentation on the xaxis formatter is here:
score:12
the easiest way to do is using "mintickinterval"
xaxis: {
mintickinterval: 24 * 3600 * 1000
}
Source: stackoverflow.com
Related Query
- Highcharts datetime axis, how to disable time part (show only dates)?
- How to show only specific x-axis values on datetime axis in Highcharts
- How To Show All Data Labels For Datetime Axis In Highcharts
- How to show only one pair of linked Highcharts series at a time
- How to disable the date and time mentioned in the navigator part and not on the x axis in highstock?
- How to show equally spaced axis for datetime for billing cycle related data on highcharts
- Show only time labels on xAxis. Highcharts
- How to show all values at datetime axis in highcharts?
- How can I force ticks/grid lines on a Highcharts datetime X axis to arbitrarily line up with data points?
- Highcharts datetime axis overlap with a long time series
- Highcharts show days of month dates in X axis (from JSON file). tickInterval: not work?
- how to show column and area charts with different y axis with same category and same x axis in highcharts
- Get only visible x axis dates when zooming in highcharts
- how to zoom dual x axis at same time in highcharts
- Show only two axis values in highcharts
- How to show only the last 100 candlesticks or hide the first 50 candlesticks in Highcharts Stock Chart?
- High charts – how to show axis as time
- Highcharts, datetime, xAxis label. How to show all dates on x axis, not only even dates?
- Highcharts - How show only two series on click
- How to show first and last label of x axis Highcharts
- How to hide date time x-axis but still be able to show plot lines in Highcharts gantt chart?
- How to Show Same Month name of two years in X axis of Highcharts
- Highcharts how to only plot if x axis is having value greater than 0?
- Show how many elements every X time with HighCharts
- How to properly configure DateTime axis for Highcharts on Android?
- HIGHCHARTS - Given a series with UNIX stamps and values pairs for the data, how do I show only the date for the first and last point on xAxis?
- How to show real time HighCharts Line Graph data which is receiving by an API?
- Show ticks on x axis in local time with highcharts api
- How to let x axis title still show on the bottom when setting fontsize attribute in Highcharts
- How to get highcharts dates in the x axis?
More Query from same tag
- Highcharts polar area label customization
- Highchart reversed column data labels
- How to change the interval of negative values? using Highcharts
- How to add space between series in stacked columns in HighChart?
- Echarts how to highlight area between 2 line charts
- Highcharts make pie chart goal value only 50%
- How can I add links in a Highcharts tooltip that will open on mobile's browser?
- Highcharts adds duplicate xmlns attribute to SVG element in IE
- highcharts: A chart with 1 or 0 in Y axis
- highcharts: convert useUTC=true milliseconds to javascript Date object
- Javascript - Page slow to show after not being the active tab
- Unable to plot two piechart using Highchart
- Having Several Units on Highcharts Spiderweb
- Highcharts - Toggle between different data with dropdown box
- Highcharts: legendItemClick: make background transparent instead of deleting it
- Highcharts donut chart customization
- Unable to load the series without duplication on highchart using angular 4
- Highcharts spiderweb - How to fix xAxis interval in case of empty data
- How to style text annotation using CSS in highchart
- Dynamic values above column + jQuery Highcharts
- jquery chart should show ticks labels without data
- Highmaps - Issue with Internet Explorer
- Highstock scrollbar doesn't work in svg foreignObject
- Highcharts legends data overlapping issue on set and update data
- Highcharts add point to line chart with json
- Highcharts add symbol on tooltip when over 100 or 1000
- Highcharts memory leak when using jQuery 2.X
- Highstock weird y-axis scale difference in same data dual series
- How to add different click events on each pie of a pie chart created by highcharts usin jquery
- How to push data into highchart with just one decimal place?