score:1
Accepted answer
Numbers are needed in tickPositions and new Date ('string') does not return it: https://jsfiddle.net/BlackLabel/e2gjqoty/
Also Date.UTC is slow so the months start indexing at 0: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/UTC
xAxis: {
type: "datetime",
tickPositions: [
Date.UTC(2018,02,01),
Date.UTC(2019,02,01),
Date.UTC(2020,02,01),
Date.UTC(2021,02,01)
]
}
Source: stackoverflow.com
Related Query
- 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
- Highcharts show x-axis with dates
- Getting numbers on Y-axis to show up as percentages with code from a Highcharts code generator tool?
- Show ticks on x axis in local time with highcharts api
- In the following code i want to show the WHOLE names on x axis nd dont want them to overlap with the legend
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Populate Highcharts X-Axis With Dates Given a From And To Date
- Highcharts - with datetime axis labels overlap
- highcharts - removing decimal places on Y axis with only one point
- Highcharts blank chart with x and y axis
- Highcharts label format with tickPositioner in a datetime x Axis
- How to show only specific x-axis values on datetime axis in Highcharts
- Highcharts - Global configuration with common code and unique data & Headings
- How to populate a Highcharts axis with string formatted data from a PHP array
- Show more data on Gauge chart with Highcharts
- Show some specefic number on gauge highcharts axis labels
- Highcharts show plot value on x axis label
- Highcharts with 2 series and 2 compare dates
- 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?
- HighCharts - Show categories in x axis intead of the value of x in Bubble Chart
- Highcharts stacked column stackLabels do not show when axis is reversed
- Highcharts show the same yAxis start and end value with multiple data series
- How To Show All Data Labels For Datetime Axis In Highcharts
- Replace axis labels with custom in highcharts r
- Highcharts : show time with 30 second interval
- Highcharts stacked columns with Y Axis grouping
- HighCharts PieChart with just one segment doesn't show a label
- not able ot show date in x axis in highcharts
More Query from same tag
- Highcharts Dates Wrong
- force Highcharts redraw animation when changing graph type
- Is it possible to have the category displayed above the series in a horizontal bar jsHighchart?
- HighMaps - need to make datalabels clickable
- Initialize Highcharts line chart from unknown number of points
- Hide dataLabels at specific chart width in Highcharts
- how can I get the index of point hovering in Highcharts?
- npm throws this error '"**/node_modules/@angular/core/core"' has no exported member 'ɵɵFactoryDef'
- Highcharts: Stop the circle marker from shrinking in size on mouseover
- how to pass data in Highcharts(Line Graph)
- Periodic events with duration
- Highcharts problem - showing labels in zoomable chart
- highcharts destroy selected group annotation with button
- HighStock Depthchart is updating the data strangely
- Update Line Chart (High Charts) after applying filter
- Loading data to Highchart from MySQL and displaying in appropriate way
- Trying to set a minimum height on bars in HighStock
- How to toggle date input datepicker in Highstock rangeSelector
- How to hide grid line protrusion in bar chart
- php to highchart, how to send the right array?
- How to change border radius of legend symbol
- How to retain the conditional color of bar in highcharts
- Highmaps border color of region
- Highcharts: limit number of markers
- In a Highcharts pie chart, how to keep height in sync when window is resized?
- Is there a way to set Highchart options dynamically?
- Highcharts: Highmaps - Choropleth maps - All states are the same color
- How to add literals to panels in codebehind, in order to create a dashboard-like layout grid?
- Highstock xAxis label formatting
- Highcharts: Chart does not resize properly by making the screen smaller