Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » dinamical chart marker from dataset
dinamical chart marker from dataset [message #707434] Mon, 01 August 2011 16:39 Go to next message
Nicola is currently offline NicolaFriend
Messages: 184
Registered: July 2009
Senior Member
Hi,
I'd like to draw a chart with a dinamical marker (taken from a filed of
my dataset). Is it possible with birt. I am using 2.6.2 version.

Bye
Nicola
Re: dinamical chart marker from dataset [message #707453 is a reply to message #707434] Mon, 01 August 2011 17:23 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

You can if the marker is a url. Currently markers do not support blobs.
Is the field a URL?

function beforeDrawSeries( series, seriesRenderer, context )
{
importPackage( Packages.org.eclipse.birt.chart.model.type );
importPackage( Packages.org.eclipse.birt.chart.model.type.impl );
importPackage( Packages.org.eclipse.birt.chart.model.attribute );
importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );

//Marker Types (MarkerType.java)
//BOX_LITERAL
//CIRCLE_LITERAL
//CROSS_LITERAL
//CROSSHAIR_LITERAL
//DIAMOND_LITERAL
//ELLIPSE_LITERAL
//FOUR_DIAMONDS_LITERAL
//HEXAGON_LITERAL
//TRIANGLE_LITERAL
//STAR_LITERAL
//SEMI_CIRCLE_LITERAL
//...
if( series.getClass() == LineSeriesImpl ){
//series.getMarkers().get(0).setType( MarkerType.TRIANGLE_LITERAL);
series.getMarkers().get(0).setType( MarkerType.ICON_LITERAL);
series.getMarkers().get(0).setFill( ImageImpl.create(
"http://www.actuate.com/images/copy/thumb_businessintelligence.gif" ) );
}
}


Jason

On 8/1/2011 12:39 PM, nicola wrote:
> Hi,
> I'd like to draw a chart with a dinamical marker (taken from a filed of
> my dataset). Is it possible with birt. I am using 2.6.2 version.
>
> Bye
> Nicola
Re: dinamical chart marker from dataset [message #707983 is a reply to message #707453] Tue, 02 August 2011 09:46 Go to previous messageGo to next message
Nicola is currently offline NicolaFriend
Messages: 184
Registered: July 2009
Senior Member
I intend a marker as a number.
in my chart I am going to draw a line chart, after selecting an exam as
input parameter.
When selecting, for example, exam AAA the marker is 5, for exam BBB the
marker is 8, ...
So I know the marker after selecting the input parameter.

Bye,
Nic


Jason Weathersby ha scritto:
> You can if the marker is a url. Currently markers do not support blobs.
> Is the field a URL?
>
> function beforeDrawSeries( series, seriesRenderer, context )
> {
> importPackage( Packages.org.eclipse.birt.chart.model.type );
> importPackage( Packages.org.eclipse.birt.chart.model.type.impl );
> importPackage( Packages.org.eclipse.birt.chart.model.attribute );
> importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );
>
> //Marker Types (MarkerType.java)
> //BOX_LITERAL
> //CIRCLE_LITERAL
> //CROSS_LITERAL
> //CROSSHAIR_LITERAL
> //DIAMOND_LITERAL
> //ELLIPSE_LITERAL
> //FOUR_DIAMONDS_LITERAL
> //HEXAGON_LITERAL
> //TRIANGLE_LITERAL
> //STAR_LITERAL
> //SEMI_CIRCLE_LITERAL
> //...
> if( series.getClass() == LineSeriesImpl ){
> //series.getMarkers().get(0).setType( MarkerType.TRIANGLE_LITERAL);
> series.getMarkers().get(0).setType( MarkerType.ICON_LITERAL);
> series.getMarkers().get(0).setFill( ImageImpl.create(
> "http://www.actuate.com/images/copy/thumb_businessintelligence.gif" ) );
> }
> }
>
>
> Jason
>
> On 8/1/2011 12:39 PM, nicola wrote:
>> Hi,
>> I'd like to draw a chart with a dinamical marker (taken from a filed of
>> my dataset). Is it possible with birt. I am using 2.6.2 version.
>>
>> Bye
>> Nicola
>
Re: dinamical chart marker from dataset [message #708190 is a reply to message #707983] Tue, 02 August 2011 14:44 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Currently markers do not support text but you could make an image that
contained the text and use an image marker. Take a look at the attached
report. It has two embedded images and depending on chart values one or
the other is selected.

Jason

On 8/2/2011 5:46 AM, nicola wrote:
> I intend a marker as a number.
> in my chart I am going to draw a line chart, after selecting an exam as
> input parameter.
> When selecting, for example, exam AAA the marker is 5, for exam BBB the
> marker is 8, ...
> So I know the marker after selecting the input parameter.
>
> Bye,
> Nic
>
>
> Jason Weathersby ha scritto:
>> You can if the marker is a url. Currently markers do not support blobs.
>> Is the field a URL?
>>
>> function beforeDrawSeries( series, seriesRenderer, context )
>> {
>> importPackage( Packages.org.eclipse.birt.chart.model.type );
>> importPackage( Packages.org.eclipse.birt.chart.model.type.impl );
>> importPackage( Packages.org.eclipse.birt.chart.model.attribute );
>> importPackage( Packages.org.eclipse.birt.chart.model.attribute.impl );
>>
>> //Marker Types (MarkerType.java)
>> //BOX_LITERAL
>> //CIRCLE_LITERAL
>> //CROSS_LITERAL
>> //CROSSHAIR_LITERAL
>> //DIAMOND_LITERAL
>> //ELLIPSE_LITERAL
>> //FOUR_DIAMONDS_LITERAL
>> //HEXAGON_LITERAL
>> //TRIANGLE_LITERAL
>> //STAR_LITERAL
>> //SEMI_CIRCLE_LITERAL
>> //...
>> if( series.getClass() == LineSeriesImpl ){
>> //series.getMarkers().get(0).setType( MarkerType.TRIANGLE_LITERAL);
>> series.getMarkers().get(0).setType( MarkerType.ICON_LITERAL);
>> series.getMarkers().get(0).setFill( ImageImpl.create(
>> "http://www.actuate.com/images/copy/thumb_businessintelligence.gif" ) );
>> }
>> }
>>
>>
>> Jason
>>
>> On 8/1/2011 12:39 PM, nicola wrote:
>>> Hi,
>>> I'd like to draw a chart with a dinamical marker (taken from a filed of
>>> my dataset). Is it possible with birt. I am using 2.6.2 version.
>>>
>>> Bye
>>> Nicola
>>
Previous Topic:Small doubts about the meter
Next Topic:How to set the layout of the report
Goto Forum:
  


Current Time: Fri Apr 19 12:48:23 GMT 2024

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

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

Back to the top