Skip to main content



      Home
Home » Archived » BIRT » chart engine hangs
chart engine hangs [message #69997] Sun, 28 August 2005 01:27 Go to next message
Eclipse UserFriend
Hi all,

I'm new to birt, I'm trying to use the chart engine inside a view, I'm
using the example from the faq, it seems like it is hanging in:
AutoScale.computeScale, it never makes it out of this:

// THE AUTO ZOOM LOOP
while ( bFits == bFirstFit )
{
bZoomSuccess = true;
scCloned = (AutoScale) sc.clone( );
if ( sc.bStepFixed ) // DO NOT AUTO ZOOM IF
STEP IS FIXED
{
break;
}
if ( bFirstFit )
{
if ( !bFits )
{
break;
}
bZoomSuccess = sc.zoomIn( );
}
else
{
if (!bFits && sc.getTickCount( ) == 2 )
{
break;
}
bZoomSuccess = sc.zoomOut( );
}
if ( !bZoomSuccess )
break;

sc.updateAxisMinMax( oMinValue, oMaxValue );
sc.computeTicks( xs,
ax.getLabel( ),
iLabelLocation,
iOrientation,
dStart,
dEnd,
false,
null );
bFits = sc.checkFit( xs, la, iLabelLocation );
if ( !bFits && sc.getTickCount( ) == 2 )
{
sc = scCloned;
break;
}
}
I'm not sure if that matters but I'm on linux/gtk.

thanks
Re: chart engine hangs [message #70137 is a reply to message #69997] Mon, 29 August 2005 11:52 Go to previous message
Eclipse UserFriend
Originally posted by: mpadhye.actuate.com

Hi Musachy,

Does this happen for a particular set of values? You can try this by
setting different values in the Sample Data sheet in the Chart Builder.
Also, what version does this happen in 1.0, 1.0.1 or a Nightly build?
In any case, please submit a Bugzilla entry so this problem can be
tracked and fixed.

Thanks,
Milind

Musachy Barroso wrote:
> Hi all,
>
> I'm new to birt, I'm trying to use the chart engine inside a view, I'm
> using the example from the faq, it seems like it is hanging in:
> AutoScale.computeScale, it never makes it out of this:
>
> // THE AUTO ZOOM LOOP
> while ( bFits == bFirstFit )
> {
> bZoomSuccess = true;
> scCloned = (AutoScale) sc.clone( );
> if ( sc.bStepFixed ) // DO NOT AUTO ZOOM
> IF STEP IS FIXED
> {
> break;
> }
> if ( bFirstFit )
> {
> if ( !bFits )
> {
> break;
> }
> bZoomSuccess = sc.zoomIn( );
> }
> else
> {
> if (!bFits && sc.getTickCount( ) == 2 )
> {
> break;
> }
> bZoomSuccess = sc.zoomOut( );
> }
> if ( !bZoomSuccess )
> break;
>
> sc.updateAxisMinMax( oMinValue, oMaxValue );
> sc.computeTicks( xs,
> ax.getLabel( ),
> iLabelLocation,
> iOrientation,
> dStart,
> dEnd,
> false,
> null );
> bFits = sc.checkFit( xs, la, iLabelLocation );
> if ( !bFits && sc.getTickCount( ) == 2 )
> {
> sc = scCloned;
> break;
> }
> }
> I'm not sure if that matters but I'm on linux/gtk.
>
> thanks
>
Previous Topic:Changing row formatting depending on the row number...
Next Topic:pie charts and classpaths
Goto Forum:
  


Current Time: Tue Jun 10 00:03:39 EDT 2025

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

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

Back to the top