score:2
Accepted answer
Highcharts
support the UTC
date format in ms
as you said. DateTime
can be converted using Date.UTC
in javascript:
var date = new Date(d.addMonths(1));
var x = Date.UTC(date.getYear() + 1900, date.getMonth(), date.getDate());
Also you have to use tickInterval
for xAxis
to make sure the intervals are in months:
tickInterval: 30 * 24 * 3600 * 1000 // (30 days, 24 hours, 3600 seconds, 1000 milliseconds)
Here's the DEMO
Source: stackoverflow.com
Related Query
- Having trouble incrementing X axis by Month in Highchart
- Having trouble just getting the Highchart to show
- Having trouble to show highchart for each element
- how to hide highchart x - axis data values
- How to set PointIntervals per month in HighChart
- How to display highchart y axis with constistant data
- same scale on x y axis in highchart
- How to dynamically change axis from linear to logarithmic in HighChart
- Overlapping Y Axis in a Multi y axis Highchart
- Highchart axis max with multiple axes
- Highchart Axis Update/ chart redraw
- Get X Axis value on bar Highchart click event
- last label in x axis with datetime format not coming in highchart
- How to place labels on opposite Y axis in Highchart without a second series
- Highcharts: having trouble recreating stacked area chart from Excel with positive and negative values
- Highchart Crosshair not touching x axis
- max Y Axis value in a Highchart
- Click event on highchart axis
- Fire click event on a highchart column drilldown chart on clicking x axis for drill down reports
- Highchart axis 2 decimal places
- highchart Axis values color
- R Highchart // grouped categories in x axis
- Highchart datetime x-axis : display end of month date instead of first day of month
- X axis value in stackLabels Formatter in bar highchart
- How to add % symbol to Y axis values in HighChart graph?
- Swap Y Axis in Highchart
- js coding newbie - having trouble with variables and for loops
- trouble with highchart and .clone()
- Pan one of multiple Y axis for highchart
- Highchart Axis with only min and max series value
More Query from same tag
- Highcharts Label Formatter Issue
- mouseOver in Highcharts
- How to prevent my stacked series from being in reverse order?
- Minor change cause HighStock charts syncing to fail
- how to enable only 1 out of 2 column column graph by default when page loads in highcharts and the 2nd one gets visible when toggled in the legend
- Highcharts add a serie that does not exist
- Plot Histograms in Highcharts
- Format data from database to Highcharts series Format
- Getting weird error message from Highstock / Highcharts
- Highcharts not generating charts for ajx returned objects
- How to programmatically set navigator handles in highstock?
- Highcharts drilldown treemap legend
- Have Highcharts tooltip disappear on click
- High chart spline chart is not plotting with single data
- How do I hide specific legend items?
- Can highcharts drilldown of a chart, reflect on another chart?
- Can't create gauge charts using HighCharts
- Meteor: Display API result data on highcharts
- HighCharts: How to toggle yAxis options on browser resize?
- How to have a negative colour on an area chart as a gradient?
- Ajax dynamic data with column bar chart
- How do I change the line width of the area polygon in highchart?
- Get javascript highcharts to render inside a Bootstrap Popover
- Multiple pie-charts in the same chart with HighCharts
- How to handle HighCharts zooming with large data sets
- Highcharts - change background color along specific date range
- How to convert string array to ints to use with Highcharts
- How can I create a chart with stacked columns after drilldown?
- create a sticky tooltip for a point or a permanent label using HighCharts
- AngularJS and angular-translate: Using the translate filter in an object literal