Skip to main content



      Home
Home » Archived » BIRT » How to set dial region at runtime
How to set dial region at runtime [message #167013] Fri, 02 June 2006 08:34 Go to next message
Eclipse UserFriend
Originally posted by: wirojp.yahoo.com

Hi..

I want to change dialregion marker of Meter chart by set StartValue and
EndValue at runtime. I try to adapt from markerRange example but it's not
work.

function beforeGeneration( chart, context ){
var firstAxis =
chart.getSeriesDefinitions().get(0).getSeriesDefinitions().g et(0).getSeries().get(0).getDial();
var firstRange = firstAxis.getDialRegions().get(0);
firstRange.setStartValue( NumberDataElementImpl.create( 0 ) );
firstRange.setEndValue( NumberDataElementImpl.create( 9000 ) );
}

Does anyone can help me to solve this problem? I'm quite new for BIRT.

Thank you.
Wiroj P.
Re: How to set dial region at runtime [message #177097 is a reply to message #167013] Wed, 12 July 2006 19:15 Go to previous messageGo to next message
Eclipse UserFriend
How can this be done? Anyone?

Thanks in advance for any help on this topic!

"wirojp" <wirojp@yahoo.com> schrieb im Newsbeitrag
news:00d6eaa4ac10c2f13c2cefe9cec0fb4d$1@www.eclipse.org...
> Hi..
>
> I want to change dialregion marker of Meter chart by set StartValue and
> EndValue at runtime. I try to adapt from markerRange example but it's not
> work.
>
> function beforeGeneration( chart, context ){
> var firstAxis =
> chart.getSeriesDefinitions().get(0).getSeriesDefinitions().g et(0).getSeries().get(0).getDial();
> var firstRange = firstAxis.getDialRegions().get(0);
> firstRange.setStartValue( NumberDataElementImpl.create( 0 ) );
> firstRange.setEndValue( NumberDataElementImpl.create( 9000 ) );
> }
>
> Does anyone can help me to solve this problem? I'm quite new for BIRT.
>
> Thank you.
> Wiroj P.
>
>
>
>
Re: How to set dial region at runtime [message #177113 is a reply to message #177097] Wed, 12 July 2006 23:36 Go to previous message
Eclipse UserFriend
Try this, you need to create the region before use it.

function beforeGeneration( chart, context )
{
var firstAxis =
chart.getSeriesDefinitions().get(0).getSeriesDefinitions().g et(0).getSeries().get(0).getDial();
var firstRange = DialRegionImpl.create();
firstRange.setFill(ColorDefinitionImpl.CREAM());
firstAxis.getDialRegions().add(firstRange);
firstRange.setStartValue( NumberDataElementImpl.create( 0 ) );
firstRange.setEndValue( NumberDataElementImpl.create( 9000 ) );
}

Der Spunk wrote:
> How can this be done? Anyone?
>
> Thanks in advance for any help on this topic!
>
> "wirojp" <wirojp@yahoo.com> schrieb im Newsbeitrag
> news:00d6eaa4ac10c2f13c2cefe9cec0fb4d$1@www.eclipse.org...
>> Hi..
>>
>> I want to change dialregion marker of Meter chart by set StartValue and
>> EndValue at runtime. I try to adapt from markerRange example but it's not
>> work.
>>
>> function beforeGeneration( chart, context ){
>> var firstAxis =
>> chart.getSeriesDefinitions().get(0).getSeriesDefinitions().g et(0).getSeries().get(0).getDial();
>> var firstRange = firstAxis.getDialRegions().get(0);
>> firstRange.setStartValue( NumberDataElementImpl.create( 0 ) );
>> firstRange.setEndValue( NumberDataElementImpl.create( 9000 ) );
>> }
>>
>> Does anyone can help me to solve this problem? I'm quite new for BIRT.
>>
>> Thank you.
>> Wiroj P.
>>
>>
>>
>>
>
>
Previous Topic:xpath and xml datasource
Next Topic:Chart library problem
Goto Forum:
  


Current Time: Sat May 10 01:53:23 EDT 2025

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

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

Back to the top