Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » ScatterChart with rectangle-areas as markers
ScatterChart with rectangle-areas as markers [message #651553] Mon, 31 January 2011 10:26 Go to next message
Eclipse User
Originally posted by: no.no.no

Hello,

I want to show some rectangle-shaped in a scatter chart.

So my datastructure is sth. like:

X | Y | WIDTH | HEIGHT
3 | 3 | 20 | 2
3 | 6 | 20 | 2
160 | 3 | 10 | 1
160 | 5 | 10 | 3
360 | 3 | 10 | 1
360 | 5 | 5 | 3

So it's actually like a scatter chart, but drawing rectangles instead
of the normal markers.

Width should use same scale as x-axis
Height should use same scale as y-axis

So far, i managed to set marker type to rectangle and size via javascript,
but found no way to set width and height in units.

Is it possible to draw the whole marker via javascript ?

any help appreciated,
Dennis
Re: ScatterChart with rectangle-areas as markers [message #651574 is a reply to message #651553] Mon, 31 January 2011 11:54 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Dennis,

Currently this is not possible with the MarkerImpl, which is what the
scatter chart uses. The only way around this is to create your own
series renderer implementation.

Jason

On 1/31/2011 10:26 AM, Dennis Schladebeck wrote:
> Hello,
>
> I want to show some rectangle-shaped in a scatter chart.
>
> So my datastructure is sth. like:
>
> X | Y | WIDTH | HEIGHT
> 3 | 3 | 20 | 2
> 3 | 6 | 20 | 2
> 160 | 3 | 10 | 1
> 160 | 5 | 10 | 3
> 360 | 3 | 10 | 1
> 360 | 5 | 5 | 3
>
> So it's actually like a scatter chart, but drawing rectangles instead
> of the normal markers.
>
> Width should use same scale as x-axis
> Height should use same scale as y-axis
>
> So far, i managed to set marker type to rectangle and size via javascript,
> but found no way to set width and height in units.
>
> Is it possible to draw the whole marker via javascript ?
>
> any help appreciated,
> Dennis
Re: ScatterChart with rectangle-areas as markers [message #651958 is a reply to message #651574] Wed, 02 February 2011 03:45 Go to previous messageGo to next message
Eclipse User
Originally posted by: no.no.no

Hi,

is there a tutorial or example implementation for a series renderer ?

I imagine, that the area chart would actually be a new type of chart,
where u choose x and y-axis dataset columns and additional columns for
width and height. If i would implement a series renderer for scatter chart
i wonder, how i can pass the additional data for height and width to it.

Dennis


Jason Weathersby wrote:
> Dennis,
>
> Currently this is not possible with the MarkerImpl, which is what the
> scatter chart uses. The only way around this is to create your own
> series renderer implementation.
>
> Jason
>
> On 1/31/2011 10:26 AM, Dennis Schladebeck wrote:
>> Hello,
>>
>> I want to show some rectangle-shaped in a scatter chart.
>>
>> So my datastructure is sth. like:
>>
>> X | Y | WIDTH | HEIGHT
>> 3 | 3 | 20 | 2
>> 3 | 6 | 20 | 2
>> 160 | 3 | 10 | 1
>> 160 | 5 | 10 | 3
>> 360 | 3 | 10 | 1
>> 360 | 5 | 5 | 3
>>
>> So it's actually like a scatter chart, but drawing rectangles instead
>> of the normal markers.
>>
>> Width should use same scale as x-axis
>> Height should use same scale as y-axis
>>
>> So far, i managed to set marker type to rectangle and size via
>> javascript,
>> but found no way to set width and height in units.
>>
>> Is it possible to draw the whole marker via javascript ?
>>
>> any help appreciated,
>> Dennis
>
Re: ScatterChart with rectangle-areas as markers [message #652081 is a reply to message #651958] Wed, 02 February 2011 10:53 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Dennis,

We are working on an example for the next version of the Integrating and
Extending book, but it is not finished. The code for that example is
the radar chart in BIRT 2.6.1. The code is available in two plugins

org.eclipse.birt.chart.examples.core
and
org.eclipse.birt.chart.examples

The core plugin has the render code that is used at runtime.
The other plugin has a lot of examples of using the chart api, but it
also has code to show how the radar chart gui is built.
The chart faq also has detail on how to modify the emf model and write
your own series renderer:
http://wiki.eclipse.org/BIRT/FAQ/Charts2.2#Chart_Engine_Exte nsions

Jason

On 2/2/2011 3:45 AM, Dennis Schladebeck wrote:
> Hi,
>
> is there a tutorial or example implementation for a series renderer ?
>
> I imagine, that the area chart would actually be a new type of chart,
> where u choose x and y-axis dataset columns and additional columns for
> width and height. If i would implement a series renderer for scatter chart
> i wonder, how i can pass the additional data for height and width to it.
>
> Dennis
>
>
> Jason Weathersby wrote:
>> Dennis,
>>
>> Currently this is not possible with the MarkerImpl, which is what the
>> scatter chart uses. The only way around this is to create your own
>> series renderer implementation.
>>
>> Jason
>>
>> On 1/31/2011 10:26 AM, Dennis Schladebeck wrote:
>>> Hello,
>>>
>>> I want to show some rectangle-shaped in a scatter chart.
>>>
>>> So my datastructure is sth. like:
>>>
>>> X | Y | WIDTH | HEIGHT
>>> 3 | 3 | 20 | 2
>>> 3 | 6 | 20 | 2
>>> 160 | 3 | 10 | 1
>>> 160 | 5 | 10 | 3
>>> 360 | 3 | 10 | 1
>>> 360 | 5 | 5 | 3
>>>
>>> So it's actually like a scatter chart, but drawing rectangles instead
>>> of the normal markers.
>>>
>>> Width should use same scale as x-axis
>>> Height should use same scale as y-axis
>>>
>>> So far, i managed to set marker type to rectangle and size via
>>> javascript,
>>> but found no way to set width and height in units.
>>>
>>> Is it possible to draw the whole marker via javascript ?
>>>
>>> any help appreciated,
>>> Dennis
>>
Re: ScatterChart with rectangle-areas as markers [message #652233 is a reply to message #652081] Thu, 03 February 2011 04:55 Go to previous messageGo to next message
Eclipse User
Originally posted by: no.no.no

Hi Jason,

can u give me a rough estimate how long it would take to implement
an extension realizing a rectangular area chart.

Are we talking about hours, days or weeks ?

My customer is using BIRT 2.5.x. Can everything be done by
using extension points?

The FAQ says, that,for example, changes to the model have to
be ported again into a newer version of BIRT.

I just want to get an idea, how long it would take me to implement
a chart extension/a new type of chart.

If there are other ppl interested in this type of chart, i will post
my solution here or on birt-exchange after finished.

Dennis

Jason Weathersby wrote:
> Dennis,
>
> We are working on an example for the next version of the Integrating and
> Extending book, but it is not finished. The code for that example is
> the radar chart in BIRT 2.6.1. The code is available in two plugins
>
> org.eclipse.birt.chart.examples.core
> and
> org.eclipse.birt.chart.examples
>
> The core plugin has the render code that is used at runtime.
> The other plugin has a lot of examples of using the chart api, but it
> also has code to show how the radar chart gui is built.
> The chart faq also has detail on how to modify the emf model and write
> your own series renderer:
> http://wiki.eclipse.org/BIRT/FAQ/Charts2.2#Chart_Engine_Exte nsions
>
> Jason
>
> On 2/2/2011 3:45 AM, Dennis Schladebeck wrote:
>> Hi,
>>
>> is there a tutorial or example implementation for a series renderer ?
>>
>> I imagine, that the area chart would actually be a new type of chart,
>> where u choose x and y-axis dataset columns and additional columns for
>> width and height. If i would implement a series renderer for scatter
>> chart
>> i wonder, how i can pass the additional data for height and width to it.
>>
>> Dennis
>>
>>
>> Jason Weathersby wrote:
>>> Dennis,
>>>
>>> Currently this is not possible with the MarkerImpl, which is what the
>>> scatter chart uses. The only way around this is to create your own
>>> series renderer implementation.
>>>
>>> Jason
>>>
>>> On 1/31/2011 10:26 AM, Dennis Schladebeck wrote:
>>>> Hello,
>>>>
>>>> I want to show some rectangle-shaped in a scatter chart.
>>>>
>>>> So my datastructure is sth. like:
>>>>
>>>> X | Y | WIDTH | HEIGHT
>>>> 3 | 3 | 20 | 2
>>>> 3 | 6 | 20 | 2
>>>> 160 | 3 | 10 | 1
>>>> 160 | 5 | 10 | 3
>>>> 360 | 3 | 10 | 1
>>>> 360 | 5 | 5 | 3
>>>>
>>>> So it's actually like a scatter chart, but drawing rectangles instead
>>>> of the normal markers.
>>>>
>>>> Width should use same scale as x-axis
>>>> Height should use same scale as y-axis
>>>>
>>>> So far, i managed to set marker type to rectangle and size via
>>>> javascript,
>>>> but found no way to set width and height in units.
>>>>
>>>> Is it possible to draw the whole marker via javascript ?
>>>>
>>>> any help appreciated,
>>>> Dennis
>>>
>
Re: ScatterChart with rectangle-areas as markers [message #652361 is a reply to message #652233] Thu, 03 February 2011 10:57 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

Dennis,

When I did the first cut of the radar chart it took me about three or
four days. The actual code is not difficult, the learning curve is what
takes the time.

Send me an email, so I can send you some things to get you started.

Jason

On 2/3/2011 4:55 AM, Dennis Schladebeck wrote:
> Hi Jason,
>
> can u give me a rough estimate how long it would take to implement
> an extension realizing a rectangular area chart.
>
> Are we talking about hours, days or weeks ?
>
> My customer is using BIRT 2.5.x. Can everything be done by
> using extension points?
>
> The FAQ says, that,for example, changes to the model have to
> be ported again into a newer version of BIRT.
>
> I just want to get an idea, how long it would take me to implement
> a chart extension/a new type of chart.
>
> If there are other ppl interested in this type of chart, i will post
> my solution here or on birt-exchange after finished.
>
> Dennis
>
> Jason Weathersby wrote:
>> Dennis,
>>
>> We are working on an example for the next version of the Integrating
>> and Extending book, but it is not finished. The code for that example
>> is the radar chart in BIRT 2.6.1. The code is available in two plugins
>>
>> org.eclipse.birt.chart.examples.core
>> and
>> org.eclipse.birt.chart.examples
>>
>> The core plugin has the render code that is used at runtime.
>> The other plugin has a lot of examples of using the chart api, but it
>> also has code to show how the radar chart gui is built.
>> The chart faq also has detail on how to modify the emf model and write
>> your own series renderer:
>> http://wiki.eclipse.org/BIRT/FAQ/Charts2.2#Chart_Engine_Exte nsions
>>
>> Jason
>>
>> On 2/2/2011 3:45 AM, Dennis Schladebeck wrote:
>>> Hi,
>>>
>>> is there a tutorial or example implementation for a series renderer ?
>>>
>>> I imagine, that the area chart would actually be a new type of chart,
>>> where u choose x and y-axis dataset columns and additional columns for
>>> width and height. If i would implement a series renderer for scatter
>>> chart
>>> i wonder, how i can pass the additional data for height and width to it.
>>>
>>> Dennis
>>>
>>>
>>> Jason Weathersby wrote:
>>>> Dennis,
>>>>
>>>> Currently this is not possible with the MarkerImpl, which is what the
>>>> scatter chart uses. The only way around this is to create your own
>>>> series renderer implementation.
>>>>
>>>> Jason
>>>>
>>>> On 1/31/2011 10:26 AM, Dennis Schladebeck wrote:
>>>>> Hello,
>>>>>
>>>>> I want to show some rectangle-shaped in a scatter chart.
>>>>>
>>>>> So my datastructure is sth. like:
>>>>>
>>>>> X | Y | WIDTH | HEIGHT
>>>>> 3 | 3 | 20 | 2
>>>>> 3 | 6 | 20 | 2
>>>>> 160 | 3 | 10 | 1
>>>>> 160 | 5 | 10 | 3
>>>>> 360 | 3 | 10 | 1
>>>>> 360 | 5 | 5 | 3
>>>>>
>>>>> So it's actually like a scatter chart, but drawing rectangles instead
>>>>> of the normal markers.
>>>>>
>>>>> Width should use same scale as x-axis
>>>>> Height should use same scale as y-axis
>>>>>
>>>>> So far, i managed to set marker type to rectangle and size via
>>>>> javascript,
>>>>> but found no way to set width and height in units.
>>>>>
>>>>> Is it possible to draw the whole marker via javascript ?
>>>>>
>>>>> any help appreciated,
>>>>> Dennis
>>>>
>>
Previous Topic:Gantt chart with summary tasks
Next Topic:Charts with Interactivity not complete
Goto Forum:
  


Current Time: Tue Sep 02 12:57:23 EDT 2014

Powered by FUDForum. Page generated in 0.01706 seconds