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)
Negative Y Axis
net boy
Hello,
When I pass coordinates with all Y values as 0, the birt chart is displaying the negative Y axis. Is it possible to stop displaying the negative Y axis using Birt chart API's? It is okay to display the negative Y axis, if I pass a negative Y value.
Please see the attached screenshot.
Thanks,
net boy
Find more posts tagged with
Comments
JasonW
You can always set the scale like:
Axis xAxisPrimary = ( (ChartWithAxesImpl) mybar)
.getPrimaryBaseAxes( )[0];
Axis yAxisPrimary = ( (ChartWithAxesImpl) mybar)
.getPrimaryOrthogonalAxis( xAxisPrimary );
yAxisPrimary.getScale( ).setMin( NumberDataElementImpl.create( 0 ) );
yAxisPrimary.getScale( ).setMax( NumberDataElementImpl.create( 100) );
yAxisPrimary.getScale( ).setStep( 10 );
Jason