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 Articles
- 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
- Integrate highcharts-custom-events with React
- Highcharts : How to perform an action on Pie chart's legend click ?
- Reverse highmaps legend values or color OR draw legend color from other attribute instead of value in series
- Need to have a clear all button in for legend items in Highchart react
- Custom field name in ECharts
- Highcharts not displaying json data in php
- How to add two different mouse over for two different type of series in same chart?
- highcharts have data Labels only on some points
- Highcharts stacked area - update tooltip only after exact area mouse over
- HighChart Shared Tooltip Number Formatting
- AngularJS not loading directive correctly when using services
- Displaying a json file with highstock
- Move series on the forefront in highchart (z-index)
- Highcharts Export without internet
- Unable to update datatable in Highcharts
- Highcharts rangeSelector ytd
- Highcharts: highlight selected/active button
- PieChart only shows one element
- Issue on Switching Highcharts.js Spider Web Chart and Column Chart
- Calculate Y-axis breaks