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?
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.