This should be appended to response as title
.
{
"className" : "h4",
"enable" : true,
"text" : "Monthly Timelog"
}
This should be appended to response as chart
.
{
"type" : "multiBarChart",
"height" : 350,
"margin" : {
"top" : 20,
"right" : 20,
"bottom" : 45,
"left" : 45
},
"clipEdge" : true,
"duration" : 500,
"stacked" : false,
"showControls" : false,
"noData" : "No data available",
"xAxis" : {
"axisLabel" : "Jobs Status",
"showMaxMin" : false
},
"yAxis" : {
"axisLabel" : "Hours",
"axisLabelDistance" : -20
}
}
{
"Interval" : "monthly",
"UserId" : 1,
"Date" : "2016-11-01",
"Tab" : "mylogs",
"Graph" : "bar"
}
{
"title" : {
"className" : "h4",
"enable" : true,
"text" : "Monthly Timelog"
},
"chart" : {
"type" : "multiBarChart",
"height" : 350,
"margin" : {
"top" : 20,
"right" : 20,
"bottom" : 45,
"left" : 45
},
"clipEdge" : true,
"duration" : 500,
"stacked" : false,
"showControls" : false,
"noData" : "No data available",
"xAxis" : {
"axisLabel" : "Jobs Status",
"showMaxMin" : false
},
"yAxis" : {
"axisLabel" : "Hours",
"axisLabelDistance" : -20
}
},
"data" : [ {
"key" : "Submitted",
"values" : [ {
"x" : "Submitted",
"y" : 0.00
} ]
}, {
"key" : "Approved",
"values" : [ {
"x" : "Approved",
"y" : 8.00
} ]
}, {
"key" : "Rejected",
"values" : [ {
"x" : "Approved",
"y" : 0.00
} ]
} ]
}
Timelogs in Line Graph
Container options
This should be appended to response as
title
.Line Graph options
This should be appended to response as chart.
Request payload
Example Response