Skip to main content



      Home
Home » Archived » BIRT » Chart: How to get maximum y-axis value within beforeGeneration()?
Chart: How to get maximum y-axis value within beforeGeneration()? [message #185021] Tue, 15 August 2006 10:59
Eclipse UserFriend
Within a stacked chart, I'd like to programmatically set the step size
based on the maximum value on the Y-axis.

function beforeGeneration( chart, context) {
axBase = chart.getPrimaryBaseAxes()[0];
axis = chart.getOrthogonalAxes(axBase, true)[0];
//
// PROBLEM: axis.getScale().getMax() returns NULL !!!
//
maxValue = axis.getScale().getMax();
if ( maxValue != null) {
axis.getScale().setStep(maxValue / 20.0);
}
}

As noted in the code, the maximum Y-axis value is null when queried. So
how would one determine the maximum Y-axis value in the
beforeGeneration() operation?
Previous Topic:Birt CSV Checkout broken please help
Next Topic:Problem with PageBreak in Row
Goto Forum:
  


Current Time: Sun May 11 23:06:25 EDT 2025

Powered by FUDForum. Page generated in 0.04428 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top