AnsweredAssumed Answered

lineChart reports don't render properly

Question asked by vreznikov on Sep 24, 2013
Latest reply on Oct 4, 2013 by vreznikov
Reposting newly created Jira http://jira.codehaus.org/browse/ACT-1795

I could not render a simple lineChart report using the example code from the documentation. Then I just copy/paste JSON example from the documentation as well and found that it doesn't work either:
var reportData = {
"title": "My Report",
"datasets": [
{
"type" : "lineChart",
"description" : "My first chart",
"xaxis" : "Category",
"yaxis" : "Total sales",
"data" :
{ "A" : 50, "B" : 33, "C" : 17, "D" : 87 }
}
]
};
execution.setVariable("reportData", new java.lang.String(JSON.stringify(reportData)).getBytes("UTF-8"));
The axes are rendered but the only value for Xaxis shows as "ANaN".

Has anybody had any luck with lineCharts?

Outcomes