Tried to do some custom data alteration before charting a line graph
Keen.io Dataviz to draw graph but keep getting error "Uncaught Requested parser does not exist"
Does Keen.Dataviz only take data from Keen.query??
Data:
{
"result": [
{
"value": 317,
"timeframe": {
"start": "2017-04-01T00:00:00.000Z",
"end": "2017-05-01T00:00:00.000Z"
}
},
{
"value": 1015,
"timeframe": {
"start": "2017-05-01T00:00:00.000Z",
"end": "2017-06-01T00:00:00.000Z"
}
}
],
"totalusers": 5357
}
vm.mau = JSON.stringify(data.result, null, 2);
console.log(vm.mau);
var chart = new Keen.Dataviz()
.el(document.getElementById('my-div'))
.chartType("line")
.colors(["#6ab975"])
.title("AVG. TIME ON SITE / USER")
.width(400)
.prepare();
chart
.data({result: vm.mau})
.render();