score:1
Accepted answer
Turns out I was returning ticks instead of milliseconds from 1/1/1970
So...
Dim dt1970 As DateTime = New DateTime("1970", "1", "1")
Dim d As DateTime = row("myDateFromDB")
Dim span As TimeSpan = d - dt1970
Dim milli as long = span.TotalMilliseconds
score:1
Highcharts accepts three primary formats for data:
- A simple array (e.g.
[1, 2, 3]
) - An array of arrays of x, y pairs (e.g.
[[x, y], [x2, y2]]
) - A list of point objects
Further details on these formats can be found in the highcharts documentation. However, in your case, it should be quite easy. Just do something like the following.
var data = []; //assume data is the array you've listed in your question
var chart = new Highcharts.chart({
xAxis: {
title: {
text: 'Time'
},
type: 'datetime'
},
series: [{
data: data
}]
});
Source: stackoverflow.com
Related Query
- Highcharts displaying Date axis from milliseconds
- Displaying date on the x axis with Highcharts using ASP.NET MVC
- Displaying Persian dates in highchart from its corresponding Georgian date
- Highcharts - How to start x axis from an arbitrary value
- Convert from string with milliseconds to date object Javascript
- Populate Highcharts X-Axis With Dates Given a From And To Date
- Remove UTC date from Highcharts tooltip
- Using PhantomJS to create HighCharts grahps server side for use in PDF creation (PHP) - results in exit code 11 from PHPs exec();
- Highcharts x axis date full range even if there is not enough data
- Highcharts - Multiple Axis Graph not displaying labels
- How to populate a Highcharts axis with string formatted data from a PHP array
- Highcharts X-Axis time from JS date
- AJAX displaying values from two different functions in a single Highcharts chart instead of two different ones
- not able ot show date in x axis in highcharts
- Highcharts date time axis
- passing json values to highcharts from .net code behind
- Is it possible to have two Y Axis in a highstock chart from highcharts one on the left and another on the right?
- How to make the Y Axis values not start from 0 in highcharts? How to display forcefully display the last category data on X axis in HighCharts ?
- Highchart : by passing FROM DATE and TO DATE x axis labels should set
- High charts not displaying date correctly in x axis per epoch?
- Highcharts not displaying data but drawing chart when reading from CSV file
- Highcharts - on zoom start Y axis from 0
- Highcharts - format date for x-axis as well as autoscale (data from mysql)
- highcharts from HTML table does not getting the x axis key
- Loading string data from table gets parsed as Date on Chrome - Highcharts
- x Axis Labels are cut off from Highcharts Column Chart
- Highcharts - how to access category of multiple axis of the point from tooltip
- highcharts not displaying line when last point is before current x Axis minimum and next point is after current X Axis maximum
- Highcharts :: Need to split y-axis from primary body of chart. Can I display this axis separately from the Highchart?
- highcharts x axis date variable range
More Query from same tag
- Working with Highchart Treemaps (drilldown)
- HighCharts Disable some Series Name from the Legend
- JQuery animation doesn't work in IE8
- Highcharts: wrong labels align for inverted charts
- highcharts datalabel text reversed
- HighCharts not showing anything
- Poorly Ordered Data Over Websockets
- Gauge chart Highchart dial style issue
- evaluateJavaScript in PyQt - function is not called
- highcharts single line with arrow arrow
- How to Click on Highchart Elements During Automation
- Highcharts x axis label text wrapping lost on setting label step
- How to update current view in Highstock / Highcharts based on new Plotlines?
- highchart, TypeError: obj is null
- How dynamically set the zoom level on highcharts?
- Why is my JSON formatting different from HighCharts examples?
- drilldown not working in piecharts in reactjs
- Highcharts Highmap world - color all countries within a continent
- Highcharts xrange styling
- Showing marker for separate values only in line chart in HIghchart
- how to add dynamic series in highcharts
- How to add dotted line to a country in Africa map?
- How to zoom chart line same as legend hover and reset automatically on button click in highcharts?
- How to combine Bar chart and data as table in High Charts
- Apache Zeppelin - Highcharts
- NVDA arrows navigation only working with alt key in highcharts
- highcharts , Hide a chart
- How to create pie chart with only 1 series data and have background be a circle
- Make a text box appear on dragging point in highchart or an editable tooltip
- Highcharts - programmatically "flip" (reverse) Y Axis