How to create a bar chart with tick labels below ticks and bars between two adjacent ticks [message #1038936] |
Thu, 11 April 2013 10:23  |
Eclipse User |
|
|
|
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!
Attachment: barchart.bmp
(Size: 149.91KB, Downloaded 796 times)
|
|
|
|
Powered by
FUDForum. Page generated in 0.03197 seconds