<p>Hi guys,</p><p> </p><p>i just signed up to the forum, so hello to everyone.

</p><p>I have a little problem here which i hope you can help me with.</p><p> </p><p>Ok, lets give it a try:</p><p> </p><p>I'm working on a stacked percentile graph with a date row on the x-axis. To highlight specific release events, i'm adding the dates of these events in the script part of the graphs "beforeGenereation":</p><pre class="_prettyXprint">function beforeGeneration( chart, icsc ) { importPackage(Packages.org.eclipse.birt.chart.model.data.impl); importPackage(Packages.org.eclipse.birt.chart.model.component.impl); importPackage(Packages.org.eclipse.birt.chart.model.data.impl); importPackage(Packages.org.eclipse.birt.chart.model.attribute); importPackage(Packages.org.eclipse.birt.chart.model.attribute.impl); var dates = new Array(); dates.push([new Date("11/30/2013"), "Release"]); dates.push([new Date("01/18/2014"), "Release"]);[...] for (x in dates) { newMarker = MarkerLineImpl.create(xAxis, DateTimeDataElementImpl.create(dates[x][0])); newMarker.setLabelAnchor(Anchor.SOUTH_WEST_LITERAL); newMarker.getLineAttributes().getColor().set(128,0,128); newMarker.getLineAttributes().setStyle(LineStyle.DOTTED_LITERAL); newMarker.getLabel().getCaption().setValue(dates[x][1]); newMarker.getLabel().getCaption().getFont().setSize(8); newMarker.getLabel().getCaption().getFont().setName("Arial"); xAxis.getMarkerLines().add(newMarker); }}</pre><p>This works just fine.

Unfortunately, the receiver of the report wants another marker, either line or range, to point out the mondays on the x-axis. So far, i managed to format the labels on the x-axis by using "beforeDrawAxisLabel", but my approach to create marker lines failed miserably.

</p><p> </p><p>Here is what i tried in the "beforeDrawAxisLabel"-function:</p><pre class="_prettyXprint _lang-js">function beforeDrawAxisLabel(axis, label, context) {/* monday-highlight: This part highlights the axis label on every monday with bold text label.*/importPackage(Packages.org.eclipse.birt.chart.model.attribute);importPackage(Packages.java.text);importPackage( Packages.java.util ); if (axis.getType() == AxisType.DATE_TIME_LITERAL) { /* Test, non-working: Add a marker line on a fixed date */ myDate = new Date("01/01/2014"); myMarker1 = MarkerLineImpl.create(axis,DateTimeDataElementImpl.create(myDate)); myMarker1.getLabel().getCaption().setValue("Test"); myMarker1.getLabel().getCaption().getFont().setSize(8); axis.getMarkerLines().add(myMarker1); /* End Test */ value = label.getCaption().getValue(); sdf1 = new SimpleDateFormat("dd.MM.yyyy"); date = sdf1.parse(value); var month = date.getMonth() +1; var day = date.getDate(); var year = date.getYear() +1900; newdate = day + "/" + month + "/" + year; if (date.getDay() == "1") { // label.getCaption().getColor( ).set( 127, 0, 127); label.getCaption().getFont().setBold(true); } else { label.getCaption().getFont().setBold(false); label.getCaption().getColor( ).set( 0, 0, 0); } label.getCaption().setValue(value); }/* end monday-highlight */}</pre><p>I added a