Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Bar Chart: Label overlapping the bar when chart is too small
Bar Chart: Label overlapping the bar when chart is too small [message #656890] Mon, 28 February 2011 22:03 Go to next message
Eclipse UserFriend
Originally posted by: nuclearpsyche.gmail.com

This is a multi-part message in MIME format.
--------------010702040809010303070808
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

Hi,

I am attaching a screenshot to make my issue more clear.
I have a bar chart that sometimes (when re-sized so that the window is
small) has a label that overlaps the bar itself. Please refer to the
last bar in the attached image.

How can I tell BIRT to not overlay the label on top of the bar?
Thank you!

Best regards,
Tamer

PS: I am using chart API. I create the chart like this: ChartWithoutAxes
pieChart = ChartWithoutAxesImpl.create();

--------------010702040809010303070808
Content-Type: image/png;
name="screenshot.png"
Content-Transfer-Encoding: base64
Content-Disposition: attachment;
filename="screenshot.png"

iVBORw0KGgoAAAANSUhEUgAAAT8AAAETCAIAAADPqpaxAAAAAXNSR0IArs4c 6QAAAARnQU1B
AACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAA5bSURBVHhe7Z29jhzH FUb3DZzpDRwZ
EKBMgA3DEmBjAgUMHNgOnAh+g4m0TBkYMhxoEgEcbGQwMP0MHAUbMGA2GaN9 k3X/VP9V/8yt
wVZP33vPYAORO11V93z3dHX3rJZ3z7wgAAGdBO50LptVQwACz9hLE0BAKwHs 1Zoc64YA9tID
ENBKAHu1Jse6IYC99AAEtBIo7f348eNj7/Xhwwet1bBuCHgiMLH33t2xIXtq AWpVSwB71UbH
wt0TwF73LQAAtQSwV210LNw9Aex13wIAUEsAe9VGx8LdE8Be9y0AALUEsFdt dCzcPQHsdd8C
AFBLAHvVRsfC3ROQ2vv3f//v6/3PG/wqFuY+RAA4JSC1t/D21bvPG/wqFuY0 Osp2TwB73bcA
ANQSwF610bFw9wSw130LAEAtAexVGx0Ld0/Avr2nffE/LN/tjk9TWS9+szlA 9Cb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bPj+Nng4lzXHVWtoKnlRZ6XCoAMrrMF QEZbrRB+9LZV
jlqF4XAHFdY1vgwUHnjdJyCD3ubz3uWrQ74Lge0SwN7tZsPKILBMAHvpEAho JYC9WpNj3RDA
XnoAAloJYK/W5Fg3BLCXHoCAVgLYqzU51g0B7KUHIKCVwP8BJRq/dG0rOO8A AAAASUVORK5C
YII=
--------------010702040809010303070808--
Re: Bar Chart: Label overlapping the bar when chart is too small [message #657099 is a reply to message #656890] Tue, 01 March 2011 15:30 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Do you have the option to rescale the axis?

Jason

On 2/28/2011 5:03 PM, Tamer wrote:
> Hi,
>
> I am attaching a screenshot to make my issue more clear.
> I have a bar chart that sometimes (when re-sized so that the window is
> small) has a label that overlaps the bar itself. Please refer to the
> last bar in the attached image.
>
> How can I tell BIRT to not overlay the label on top of the bar?
> Thank you!
>
> Best regards,
> Tamer
>
> PS: I am using chart API. I create the chart like this: ChartWithoutAxes
> pieChart = ChartWithoutAxesImpl.create();
Re: Bar Chart: Label overlapping the bar when chart is too small [message #657137 is a reply to message #657099] Tue, 01 March 2011 17:13 Go to previous message
Eclipse UserFriend
Originally posted by: nuclearpsyche.gmail.com

Hi Jason,

Your question gave me the solution. I just rescale the axis by 10% and
the problem went away.

If anyone else has this problem, here is how I did it:

Axis axis = barChart.getOrthogonalAxes(xAxisPrimary, true)[0];
Scale scale = axis.getScale();
scale.setMax(NumberDataElementImpl.create(maxValue*1.1));
axis.setScale(scale);

//maxValue is the biggest value in the series

Thanks again for your help and quick response!

Best regards,
Tamer

On 3/1/2011 7:30 AM, Jason Weathersby wrote:
> Do you have the option to rescale the axis?
>
> Jason
>
> On 2/28/2011 5:03 PM, Tamer wrote:
>> Hi,
>>
>> I am attaching a screenshot to make my issue more clear.
>> I have a bar chart that sometimes (when re-sized so that the window is
>> small) has a label that overlaps the bar itself. Please refer to the
>> last bar in the attached image.
>>
>> How can I tell BIRT to not overlay the label on top of the bar?
>> Thank you!
>>
>> Best regards,
>> Tamer
>>
>> PS: I am using chart API. I create the chart like this: ChartWithoutAxes
>> pieChart = ChartWithoutAxesImpl.create();
>
Previous Topic:Empty first page
Next Topic:Does BIRT Report Viewer have zoom in/out function
Goto Forum:
  


Current Time: Thu Nov 27 23:38:27 GMT 2014

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

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