Accepted answer

turns out i was returning ticks instead of milliseconds from 1/1/1970


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


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

Related Query