I'm trying to create a time series graph where my x-axis should be a time and y-axis is speed. Im reading both time and speed values from a json array. I can see many examples in the internet where they have defined only x-axis using crossfilter. My json (which is input to the graph) looks like below. Only a sample is shown here.
[
{
"Time": "19-Jan-2018 11:24:49.000 UTC",
"Speed": 1.885
},
{
"Time": "19-Jan-2018 11:24:59.000 UTC",
"Speed": 1.875
},
{
"Time": "19-Jan-2018 11:25:00.000 UTC",
"Speed": 1.878
},
{
"Time": "19-Jan-2018 11:25:01.000 UTC",
"Speed": 1.876
}
]
Can someone please suggest how to mark these time in x-axis and speed in y-axis for a time series graph using dc.js