| Can't customize X axis scale [message #982006] |
Mon, 12 November 2012 16:52  |
Eugene Ostroukhov Messages: 9 Registered: July 2009 |
Junior Member |
|
|
We are building an RCP application where we have a view with a chart. Chart is meant to resize when user resizes the view.
Our chart has 1024 data points. Currently we have following problems with chart X axis:
- X axis shows 3 as a minimal value and 867 as a max value
- It actually shows a tick for every point
- Can't cpace out grid lines
This is our chart:

Is there a way to adjust X axis scale? Is there a way to adjust scaling so only ticks with power-of-two values are shown? E.g. so it shows (0, 128, 256, ...) when chart is smaller but switches to (0, 32, 64, ...) when user maximizes the view with a chart?
Is there a way on Y axis to use alternating backgrounds for major grid?
Attachment: xaxis.png
(Size: 9.87KB, Downloaded 154 times)
[Updated on: Mon, 12 November 2012 16:53] Report message to a moderator
|
|
|
|
|
|
| Re: Can't customize X axis scale [message #986565 is a reply to message #983315] |
Tue, 20 November 2012 18:40  |
|
In the designer, I created two separate charts and defined specific scales and then ran client side script to show/hide the larger or smaller chart depending on the new window size. I'm not sure how applicable this is to the SWT renderer, though. I've not used the SWT renderer much, so I'll have to investigate this further. I'll let you know if I find something for you.
Regards,
Michael Williams
BIRT Exchange
Michael's BIRT Blog
|
|
|
Powered by
FUDForum. Page generated in 0.01601 seconds