<p>Hello,</p><p>our current BIRT project specifications require that we add a vertical line in a bar Chart séparating two groups of data. We extensively use the Java handlers mechanisms in order to customize our components.</p><p> </p><p>The challenge here is that the runtime series data point on the x-Axis are literals, or Text type.</p><p>For Date or Number series, adding in Java a MarkerLine is ease :</p><p> </p><p>
@Override</p><p><strong class='bbc'>public</strong> <strong class='bbc'>void</strong> beforeGeneration(Chart chart, IChartScriptContext icsc) {</p><p>....</p><p> </p><p>// Line creation</p><p>MarkerLine mLine = MarkerLineImpl.<em class='bbc'>create</em>(xAxis, NumberDataElementImpl.<em class='bbc'>create</em>(value), markerColor);</p>