lineChart report hasn't been rendered

Description

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".

Environment

windows/ tomcat 7

Assignee

Frederik Heremans

Reporter

Vladi Reznikov

Labels

None

Components

Fix versions

Affects versions

Priority

Major
Configure