Home » Archived » BIRT » Creating a chart using the design engine
Creating a chart using the design engine [message #63349] |
Mon, 01 August 2005 09:39  |
Eclipse User |
|
|
|
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 11:48   |
Eclipse User |
|
|
|
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] |
Tue, 02 August 2005 23:32   |
Eclipse User |
|
|
|
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 09:04  |
Eclipse User |
|
|
|
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
>>>
>>>
>
|
|
|
Goto Forum:
Current Time: Sat May 03 14:04:40 EDT 2025
Powered by FUDForum. Page generated in 0.04152 seconds
|