Formatting pie series identifier [message #95941] |
Thu, 01 December 2005 10:38 |
Eclipse User |
|
|
|
Originally posted by: prooteus_NOSPAM.gmx.net
Hi,
how can the following pie series identifier be formatted?
PieSeries pieSeries = (PieSeries) PieSeriesImpl.create();
pieSeries.setSeriesIdentifier("Test");
setSeriesIdentifier() takes just an object. I tried to create a new
TextImpl and set the font for it, but this did not have an effect on
the displayed identifier.
I would like to decrease the font size and set another text color.
How can this be done?
Thanks,
Stefan
|
|
|
|
|
Re: Formatting pie series identifier [message #96085 is a reply to message #96011] |
Thu, 01 December 2005 17:13 |
David Michonneau Messages: 1145 Registered: July 2009 |
Senior Member |
|
|
Hi Stefan,
That's a good question. If you look at the model, the identifier is part of
the Series, the pie title is a pie series specificity. It happens that the
value of the identifier of the series is used as the title string for pie
charts, since we can't use the string defined in the title. This is because
the title is dynamic, if you set Y series grouping. Let's take an example
Sales Country Year
100 France 2000
130 France 2001
300 US 2000
350 US 2001
Now I set
base series: row["country"]
orthogonal series: row["sales"]
orthogonal series definition query: row["year"]
You will see two charts with titles 2000 and 2001. Each chart shows the
sales per country. What happens is that each pie series gets its identifier
from the query value, and this identifier is later on used as a title. The
identifier is also used in the legend when grouped by series. So the point
is that the title property of pie series is only used for formatting this
identifier, not for setting its value.
Thanks,
David
"Stefan Knieling" <prooteus_NOSPAM@gmx.net> wrote in message
news:dmmvaq$7t5$1@news.eclipse.org...
> Thanks,
>
> pieSeries.getTitle().getCaption().getFont().setSize(12);
>
> dit it :-)
>
> But why is the method name 'setIdentifier()' and not 'setTitle()'? That's
> not very intuitive :-)
>
> "David Michonneau" <dmichonneau@actuate.com> schrieb im Newsbeitrag
> news:dmmsuu$3np$1@news.eclipse.org...
>> Use the Pie Series title to format it.
>> http://www.eclipse.org/birt/release20specs/BPS36/ChartModelD oc%201.0.1/Eclipse%20BIRT%20Chart%20Object%20Model.html#elem ent_Title_Link01E3CAE0
>>
>> Thanks,
>>
>> David
>>
>> "Stefan Knieling" <prooteus_NOSPAM@gmx.net> wrote in message
>> news:dmmjrp$mfp$1@news.eclipse.org...
>>> Hi,
>>>
>>> how can the following pie series identifier be formatted?
>>>
>>> PieSeries pieSeries = (PieSeries) PieSeriesImpl.create();
>>> pieSeries.setSeriesIdentifier("Test");
>>>
>>> setSeriesIdentifier() takes just an object. I tried to create a new
>>> TextImpl and set the font for it, but this did not have an effect on the
>>> displayed identifier.
>>>
>>> I would like to decrease the font size and set another text color.
>>>
>>> How can this be done?
>>>
>>> Thanks,
>>> Stefan
>>
>>
>
|
|
|
Re: Formatting pie series identifier [message #96115 is a reply to message #96085] |
Thu, 01 December 2005 17:39 |
Eclipse User |
|
|
|
Originally posted by: prooteus_NOSPAM.gmx.net
Hi David,
"David Michonneau" <dmichonneau@actuate.com> schrieb im Newsbeitrag
news:dmnb24$s3p$1@news.eclipse.org...
> Hi Stefan,
>
> That's a good question. If you look at the model, the identifier is
> part of the Series, the pie title is a pie series specificity. It
> happens that the value of the identifier of the series is used as the
> title string for pie charts, since we can't use the string defined in
> the title. This is because the title is dynamic, if you set Y series
> grouping. Let's take an example
>
> Sales Country Year
> 100 France 2000
> 130 France 2001
> 300 US 2000
> 350 US 2001
>
> Now I set
> base series: row["country"]
> orthogonal series: row["sales"]
> orthogonal series definition query: row["year"]
>
> You will see two charts with titles 2000 and 2001. Each chart shows
> the sales per country. What happens is that each pie series gets its
> identifier from the query value, and this identifier is later on used
> as a title. The identifier is also used in the legend when grouped by
> series. So the point is that the title property of pie series is only
> used for formatting this identifier, not for setting its value.
Thanks for taking the time to explain it :-) I am quite new to BIRT.
Regards,
Stefan
|
|
|
Powered by
FUDForum. Page generated in 0.04983 seconds