I am wring a website using Node.Js. I got data from calling some API and returns to me JSON array in this format:
[{ '2015-04-08T17:12:05+00:00': 103.7 },{ '2015-04-08T17:13:05+00:00': 109.5 },{ '2015-04-08T17:14:05+00:00': 106 },{ '2015-04-08T17:15:05+00:00': 112.6 }]
So I want to use vis.js
library to display this data like this:
Please correct me if I am wrong. I think vis.js
only accepts dataset in this format:
[{x: '2014-06-11', y: 10},{x: '2014-06-12', y: 25},{x: '2014-06-13', y: 30},{x: '2014-06-14', y: 10}]
converting json array format.
directly feeding the raw data to vis.js.
Don't know how to do it.
Thank you in advance!!!