Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Creating a chart using the design engine
Creating a chart using the design engine [message #63349] Mon, 01 August 2005 13:39 Go to next message
Nathan McKeown is currently offline Nathan McKeownFriend
Messages: 27
Registered: July 2009
Junior Member
Hi,

Has anyone created a chart programmatically using the design engine API's?

If so, please could you give me an example of how to go about doing so.

Thanks and Regards,

Nathan
Re: Creating a chart using the design engine [message #63574 is a reply to message #63349] Tue, 02 August 2005 04:06 Go to previous messageGo to next message
Nina Li is currently offline Nina LiFriend
Messages: 44
Registered: July 2009
Member
Hi Nathan,

Attached is a chart example created by using DE API and chart engine API.
I'm sorry that it looks a little bit ugly. However, it is able to make the
chart nicer by setting the relevant properties.
The examples of setting chart properties could be checked out from
org.eclipse.birt.chart.examples plugin.

Cheers.

Regards,
Nina


"Nathan McKeown" <nathan.mckeown@scapatech.com> wrote in message
news:dcl8as$f3s$2@news.eclipse.org...
> Hi,
>
> Has anyone created a chart programmatically using the design engine API's?
>
> If so, please could you give me an example of how to go about doing so.
>
> Thanks and Regards,
>
> Nathan


Re: Creating a chart using the design engine [message #63642 is a reply to message #63574] Tue, 02 August 2005 15:48 Go to previous messageGo to next message
Nathan McKeown is currently offline Nathan McKeownFriend
Messages: 27
Registered: July 2009
Junior Member
Hi Nina,

Thanks for the help, it allowed me to create a basic line chart without
too much fuss, however I am still having some trouble trying to add a
series grouping key to my chart. Is there a simple way to do this?

Thanks for the help,

Nathan

Nina Li wrote:
> Hi Nathan,
>
> Attached is a chart example created by using DE API and chart engine API.
> I'm sorry that it looks a little bit ugly. However, it is able to make the
> chart nicer by setting the relevant properties.
> The examples of setting chart properties could be checked out from
> org.eclipse.birt.chart.examples plugin.
>
> Cheers.
>
> Regards,
> Nina
>
>
> "Nathan McKeown" <nathan.mckeown@scapatech.com> wrote in message
> news:dcl8as$f3s$2@news.eclipse.org...
>
>>Hi,
>>
>>Has anyone created a chart programmatically using the design engine API's?
>>
>>If so, please could you give me an example of how to go about doing so.
>>
>>Thanks and Regards,
>>
>>Nathan
>
>
>
Re: Creating a chart using the design engine [message #63803 is a reply to message #63642] Wed, 03 August 2005 03:32 Go to previous messageGo to next message
Nina Li is currently offline Nina LiFriend
Messages: 44
Registered: July 2009
Member
Hi Nathan,

The series grouping key could be set as follows:

SeriesDefinition seGroup = SeriesDefinitionImpl.create();
Query query = QueryImpl.create("row[\"Month\"]");
seGroup.setQuery(query);
yAxisPrimary.getSeriesDefinitions().add(seGroup);
seGroup.getSeries().add(bs);

------and please delete the following code in the original class------------

SeriesDefinition sdY = SeriesDefinitionImpl.create();
sdY.getSeries().add(bs);
yAxisPrimary.getSeriesDefinitions().add(sdY);


Cheers. ^-^

Regards,
Nina

"Nathan McKeown" <nathan.mckeown@scapatech.com> wrote in message
news:dco473$kum$1@news.eclipse.org...
> Hi Nina,
>
> Thanks for the help, it allowed me to create a basic line chart without
> too much fuss, however I am still having some trouble trying to add a
> series grouping key to my chart. Is there a simple way to do this?
>
> Thanks for the help,
>
> Nathan
>
> Nina Li wrote:
>> Hi Nathan,
>>
>> Attached is a chart example created by using DE API and chart engine API.
>> I'm sorry that it looks a little bit ugly. However, it is able to make
>> the chart nicer by setting the relevant properties.
>> The examples of setting chart properties could be checked out from
>> org.eclipse.birt.chart.examples plugin.
>>
>> Cheers.
>>
>> Regards,
>> Nina
>>
>>
>> "Nathan McKeown" <nathan.mckeown@scapatech.com> wrote in message
>> news:dcl8as$f3s$2@news.eclipse.org...
>>
>>>Hi,
>>>
>>>Has anyone created a chart programmatically using the design engine
>>>API's?
>>>
>>>If so, please could you give me an example of how to go about doing so.
>>>
>>>Thanks and Regards,
>>>
>>>Nathan
>>
>>
Re: Creating a chart using the design engine [message #64013 is a reply to message #63803] Wed, 03 August 2005 13:04 Go to previous message
Nathan McKeown is currently offline Nathan McKeownFriend
Messages: 27
Registered: July 2009
Junior Member
Hi Nina,

That works a treat!

Thanks,

Nathan

Nina Li wrote:
> Hi Nathan,
>
> The series grouping key could be set as follows:
>
> SeriesDefinition seGroup = SeriesDefinitionImpl.create();
> Query query = QueryImpl.create("row[\"Month\"]");
> seGroup.setQuery(query);
> yAxisPrimary.getSeriesDefinitions().add(seGroup);
> seGroup.getSeries().add(bs);
>
> ------and please delete the following code in the original class------------
>
> SeriesDefinition sdY = SeriesDefinitionImpl.create();
> sdY.getSeries().add(bs);
> yAxisPrimary.getSeriesDefinitions().add(sdY);
>
>
> Cheers. ^-^
>
> Regards,
> Nina
>
> "Nathan McKeown" <nathan.mckeown@scapatech.com> wrote in message
> news:dco473$kum$1@news.eclipse.org...
>
>>Hi Nina,
>>
>>Thanks for the help, it allowed me to create a basic line chart without
>>too much fuss, however I am still having some trouble trying to add a
>>series grouping key to my chart. Is there a simple way to do this?
>>
>>Thanks for the help,
>>
>>Nathan
>>
>>Nina Li wrote:
>>
>>>Hi Nathan,
>>>
>>>Attached is a chart example created by using DE API and chart engine API.
>>>I'm sorry that it looks a little bit ugly. However, it is able to make
>>>the chart nicer by setting the relevant properties.
>>>The examples of setting chart properties could be checked out from
>>>org.eclipse.birt.chart.examples plugin.
>>>
>>>Cheers.
>>>
>>>Regards,
>>>Nina
>>>
>>>
>>>"Nathan McKeown" <nathan.mckeown@scapatech.com> wrote in message
>>>news:dcl8as$f3s$2@news.eclipse.org...
>>>
>>>
>>>>Hi,
>>>>
>>>>Has anyone created a chart programmatically using the design engine
>>>>API's?
>>>>
>>>>If so, please could you give me an example of how to go about doing so.
>>>>
>>>>Thanks and Regards,
>>>>
>>>>Nathan
>>>
>>>
>
Previous Topic:Data Sorting
Next Topic:PDF Images
Goto Forum:
  


Current Time: Sat Jul 27 13:25:33 GMT 2024

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

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

Back to the top