Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » How to create a bar chart with tick labels below ticks and bars between two adjacent ticks
How to create a bar chart with tick labels below ticks and bars between two adjacent ticks [message #1038936] Thu, 11 April 2013 14:23 Go to next message
Tony Hsiao is currently offline Tony HsiaoFriend
Messages: 13
Registered: March 2013
Junior Member
Hi all,
I want to draw a bar chart in my eclipse plugin whose tick labels (the number strings) are placed below the ticks and bars between two adjacent ticks, I have tried the following two approachs and encountered some troubles:

(1)xAxis.setType(AxisType.TEXT_LITERAL);
xAxis is the object which stands for the x axis. But how can I put the tick label (the number) exactly below the tick other than between two adjacent ticks. Moreover, there would be one more tick label for the first or the last tick, how to achieve that?

(2)xAxis.setCategoryAxis(false);
xAxis.setType(AxisType.LINEAR_LITERAL);
In this case, the tick label is below the tick, however, the bar is drawed above a tick, how can I move it to the midpoint of the two adjacent ticks?

The attached image shows what I want.

Thanks in advance!
index.php/fa/14335/0/
  • Attachment: barchart.bmp
    (Size: 149.91KB, Downloaded 687 times)
Re: How to create a bar chart with tick labels below ticks and bars between two adjacent ticks [message #1039040 is a reply to message #1038936] Thu, 11 April 2013 17:13 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

I responded to you, over on BIRT Exchane, about this. Sorry for missing your post, yesterday.

BIRT Exchange Forums - Draw a bar chart as shown in the attached image


Michael

Developer Evangelist, Silanis
Previous Topic:Birt nested Table with ECore ODA Problem
Next Topic:Error in XML Source Page must be correct before other pages can be used
Goto Forum:
  


Current Time: Mon May 29 19:04:29 GMT 2023

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

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

Back to the top