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 21:52 Go to next message
Eugene Ostroukhov is currently offline Eugene OstroukhovFriend
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 263 times)

[Updated on: Mon, 12 November 2012 21: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 18:49 Go to previous messageGo to next message
Eugene Ostroukhov is currently offline Eugene OstroukhovFriend
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 19:21 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1687
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

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.

[Updated on: Tue, 13 November 2012 19: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 21:11 Go to previous messageGo to next message
Eugene Ostroukhov is currently offline Eugene OstroukhovFriend
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 23:40 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1687
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

Add interactivity, scheduling, sharing, live Excel export, and JS integration to your BIRT app with the new, free BIRT server, BIRT iHub F-Type.
Previous Topic:how can i change y-axis
Next Topic:Report Repeating First Line of Data
Goto Forum:
  


Current Time: Mon Dec 22 18:29:49 GMT 2014

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

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