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 Donut Graph
Container options
This should be appended to response as
title.{ "className" : "h4", "enable" : true, "text" : "Monthly Timelog" }Donut Graph options
This should be appended to response as chart.
{ "type" : "pieChart", "donut" : true, "height" : 350, "labelSunbeamLayout" : true, "labelThreshold" : 0.01, "labelOutside" : false, "legend" : { "align" : false, "updateState" : false }, "noData" : "No data Available", "showLabels" : true, "transitionDuration" : 500 }Request payload
{ "Interval" : "monthly", "UserId" : 1, "Date" : "2016-11-01", "Tab" : "mylogs", }Example Response
{ "title" : { "className" : "h4", "enable" : true, "text" : "Monthly Timelog" }, "chart" :{ "type" : "pieChart", "donut" : true, "height" : 350, "labelSunbeamLayout" : true, "labelThreshold" : 0.01, "labelOutside" : false, "legend" : { "align" : false, "updateState" : false }, "noData" : "No data Available", "showLabels" : true, "transitionDuration" : 500 }, "data" : [ { "x" : "Submitted", "y" : "2.50" }, { "x" : "Approved", "y" : "8.00" }, { "x" : "Rejected", "y" : "3.10" } ] }