Hello again,
I have got another problem with a BIRT report.
I have got a line chart. The x-axis contains the time units grouped by a parameter:
beforeFactory:
importPackage( Packages.org.eclipse.birt.chart.model);
importPackage (Packages.org.eclipse.birt.chart.model.attribute );
cht = reportContext.getDesignHandle().findElement("Chart8");
mychart = cht.getReportItem().getProperty( "chart.instance" );
xAxis =mychart.getAxes().get(0);
xSeriesDef = xAxis.getSeriesDefinitions().get(0);
xGrouping = xSeriesDef.getGrouping();
if (params["Granularity"].value == "Weeks"){
xGrouping.setGroupingUnit(GroupingUnitType.WEEKS_LITERAL);
}
else if (params["Granularity"].value == "Months"){
xGrouping.setGroupingUnit(GroupingUnitType.MONTHS_LITERAL);
}
else {
xGrouping.setGroupingUnit(GroupingUnitType.YEARS_LITERAL);
}
(Thank you for this, Michael

)
And the y-axis provides a success rate in percent. And I am not able to get this...
I am taking the data from a database. I need the creation_date (Date Time) and the Activities (Integer), where '0' stands for fail and '1' stands for success.
It would be great, if you can help me