Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
set colors of y axis
omittag
I need to programmatically set the color of the y axis in BIRT ? does anybody know how to achieve this ?
Regards - Oliver
Find more posts tagged with
Comments
mwilliams
Oliver,
The following code can be used in the chart script to change the x-axis color to red:
function beforeGeneration( chart, icsc )
{
importPackage(Packages.org.eclipse.birt.chart.model);
importPackage(Packages.org.eclipse.birt.chart.model.attribute.impl);
xAxis = chart.getBaseAxes()[0];
xAxis.getLineAttributes().setColor(ColorDefinitionImpl.create(255, 0, 0));
}