|
|
Re: chart and series with zero values [message #248841 is a reply to message #248648] |
Thu, 19 July 2007 12:01 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Leos Literak![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=literakl%40centrum.cz) Messages: 115 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------020809090609000306040205
Content-Type: text/plain; charset=ISO-8859-2; format=flowed
Content-Transfer-Encoding: 7bit
David,
thank you, your hint helped me to get a bit further.
See the screenshot, I was able to hide this zero
labels with:
function beforeDrawDataPointLabel(dph, label, icsc){
if (dph.getOrthogonalValue() == 0)
label.setVisible(false);
}
It seems that renderer thinks that these lines are still there,
when it calculates the circle diameter. Therefore the chart
is small. Can I somehow tell it to recalculate the circle diameter?
Leos
David Michonneau wrote:
> You can try a script on the beforeDrawDataPointLabel to set the label
> visibility to false if hte value is equal to zero.
>
> Thanks,
>
> David
>
> "Leos Literak" <literakl@centrum.cz> wrote in message
> news:f7l6mu$b22$1@build.eclipse.org...
>> Hello,
>>
>> I have a pie chart associated with data set that returns
>> rows with zero value. Once deployed to BIRT 2.2, the percentile
>> is displayed for every zero category and the pie is getting
>> smaller. See the attachment for screenshot. How can I fix it.
>> so zeroes will not be displayed in series leaders? But I do
>> want to display them in the legend.
>>
>> Thanks
>>
>> Leos
>>
>
>
--------------020809090609000306040205
Content-Type: image/png;
name="chart_hidden.png"
Content-Transfer-Encoding: base64
Content-Disposition: inline;
filename="chart_hidden.png"
iVBORw0KGgoAAAANSUhEUgAAAZQAAACNCAYAAACQa4xHAAAHiElEQVR42u3d T4hUdQDA8T10
8BDUoUMHDx08dPAg2KFjh6AOHTp28OAhRNBAQrBAWkGCoECiqENIUtISRkFQ EEkSEYSmlqah
hn/WrDb/obJW/nvxWxDGZWbe7/fmzczvvfl84NG67czOzuz+vvt7b9/7TRUA UIMpTwEAggKA
oAAgKAAgKAAICgCCAoCgAICgACAoAAgKAIICA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XRbKstsN67gQggKtm6HUNTsYdlBi Hk+VWUnZ7QRF
UEBQRhyUmGMoZYN9HVETFEEBQRlzUDoH9dQD1WWDb+wfAqTELnat+ZjH7mC8 oEBrguJaXgZu
BAUYMCDWmUdQABAUAAQFAEEBAEEBQFAAEBQABAUABAUAQQFAUABAUAAQFAAE BQBBAQBBAUBQ
ABAUAAQFAAQFAEEBQFAAEBQAqOh/L7n1lpDOfhsAAAAASUVORK5CYII=
--------------020809090609000306040205--
|
|
|
Re: chart and series with zero values [message #248846 is a reply to message #248841] |
Thu, 19 July 2007 12:50 ![Go to previous message Go to previous message](theme/Solstice/images/up.png) ![Go to next message Go to next message](theme/Solstice/images/down.png) |
David Michonneau![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=dmichonneau%40actuate.com) Messages: 1145 Registered: July 2009 |
Senior Member |
|
|
No, but you could try the opposite: hide the labels by default in the chart
model and make the non-zero ones visible at run-time. Not sure it will work,
but worth a try..
Otherwise try to download the latest weekly build to see if the problem is
still there, I think we already fixed some layout problems with pie labels
and pie size becoming small.
David
"Leos Literak" <literakl@centrum.cz> wrote in message
news:f7njnl$9d5$1@build.eclipse.org...
> David,
>
> thank you, your hint helped me to get a bit further.
> See the screenshot, I was able to hide this zero
> labels with:
>
> function beforeDrawDataPointLabel(dph, label, icsc){
> if (dph.getOrthogonalValue() == 0)
> label.setVisible(false);
> }
>
> It seems that renderer thinks that these lines are still there,
> when it calculates the circle diameter. Therefore the chart
> is small. Can I somehow tell it to recalculate the circle diameter?
>
> Leos
>
> David Michonneau wrote:
>> You can try a script on the beforeDrawDataPointLabel to set the label
>> visibility to false if hte value is equal to zero.
>>
>> Thanks,
>>
>> David
>>
>> "Leos Literak" <literakl@centrum.cz> wrote in message
>> news:f7l6mu$b22$1@build.eclipse.org...
>>> Hello,
>>>
>>> I have a pie chart associated with data set that returns
>>> rows with zero value. Once deployed to BIRT 2.2, the percentile
>>> is displayed for every zero category and the pie is getting
>>> smaller. See the attachment for screenshot. How can I fix it.
>>> so zeroes will not be displayed in series leaders? But I do
>>> want to display them in the legend.
>>>
>>> Thanks
>>>
>>> Leos
>>>
>>
>>
>
>
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03640 seconds