When Creating Time Chart I am getting below error.
My JSON object is
{"unit":"m","values":[[1388601000000,82.25],[1388687400000,80.64],[1389033000000,667.98],[1390501800000,7.04],[1391106600000,0],[1391193000000,0],[1391452200000,96.1],[1391625000000,201.24],[1391970600000,136.73],[1392057000000,0],[1392143400000,435],[1392229800000,435],[1392575400000,6.68]]}
and my chart declaration is
var t = new TimeChart(
{
container: document.getElementById("TabOneDashleteTwo"),
data:
{
units:["m"],
preloaded: {
values: dashboardsGlobalObject.invoiceCountByMonth
},
timestampInSeconds: true
},
valueAxisDefault: { title: "Price, GBP" },
series: [
{data: {field: "value"}}
]
}
);
I don't know whether series what I mentioned is correct or not. I am trying do by month wise, if I click on month it will drill by day, that's why I wrote query based on date. In my json [1388601000000,82.25] represents [ 01/01/2014 in milliseconds ,Amount]
Could you tell me where I am doing wrong.