Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Can't customize X axis scale
Can't customize X axis scale [message #982006] Mon, 12 November 2012 16:52 Go to next message
Eugene Ostroukhov is currently offline Eugene Ostroukhov
Messages: 11
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:

  1. X axis shows 3 as a minimal value and 867 as a max value
  2. It actually shows a tick for every point
  3. Can't cpace out grid lines


This is our chart:
index.php/fa/12316/0/

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 236 times)

[Updated on: Mon, 12 November 2012 16:53]

Report message to a moderator

Re: Can't customize X axis scale [message #983180 is a reply to message #982006] Tue, 13 November 2012 13:49 Go to previous messageGo to next message
Eugene Ostroukhov is currently offline Eugene Ostroukhov
Messages: 11
Registered: July 2009
Junior Member
Is there a tutorial on how to customize axis rendering?
Re: Can't customize X axis scale [message #983209 is a reply to message #982006] Tue, 13 November 2012 14:21 Go to previous messageGo to next message
Michael Williams is currently offline Michael Williams
Messages: 1424
Registered: July 2009
Senior Member

Is this just for HTML output? Do you already have the resize handled, when the user resizes the screen? If so, how are you doing this?

Michael
Actuate – The BIRT Company™

BIRT Developer Center
Check out the new, free BIRT Viewer Toolkit

[Updated on: Tue, 13 November 2012 14:22]

Report message to a moderator

Re: Can't customize X axis scale [message #983315 is a reply to message #983209] Tue, 13 November 2012 16:11 Go to previous messageGo to next message
Eugene Ostroukhov is currently offline Eugene Ostroukhov
Messages: 11
Registered: July 2009
Junior Member
I'm using SWT renderer.
Re: Can't customize X axis scale [message #986565 is a reply to message #983315] Tue, 20 November 2012 18:40 Go to previous message
Michael Williams is currently offline Michael Williams
Messages: 1424
Registered: July 2009
Senior Member

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.

Michael
Actuate – The BIRT Company™

BIRT Developer Center
Check out the new, free BIRT Viewer Toolkit
Previous Topic:Wrap text in a cell
Next Topic:Report Repeating First Line of Data
Goto Forum:
  


Current Time: Thu Apr 17 11:37:46 EDT 2014

Powered by FUDForum. Page generated in 0.02137 seconds