Home
DevShare Downloads
BIRT Chart Scripting: X-Axis line color
Virgil
<p>This works for BIRT 2.3.2 to change the color of the X-axis using scripting.</p>
<p> function beforeGeneration( chart, icsc )<br />{<br />importPackage(Packages.org.eclipse.birt.chart.model); <br />importPackage(Packages.org.eclipse.birt.chart.model.attribute.impl);<br />xAxis = chart.getBaseAxes()[0];<br />xAxis.getLineAttributes().setColor(ColorDefinitionImpl.create(255, 0, 0));<br />}</p>
Find more posts tagged with
Comments
There are no comments yet