Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » a question about y-axis
a question about y-axis [message #955763] Tue, 23 October 2012 22:16 Go to next message
Candace Chen is currently offline Candace Chen
Messages: 5
Registered: October 2012
Junior Member
<Max xsi:type="data:NumberDataElement">
<Value>-5.0</Value>
</Max>

Do someone know how to set y-axis maximum(image1) value become a negative value(image2) ?
origin:
index.php/fa/12027/0/
after:
index.php/fa/12028/0/
  • Attachment: before.jpg
    (Size: 27.22KB, Downloaded 212 times)
  • Attachment: after.jpg
    (Size: 27.43KB, Downloaded 208 times)
Re: a question about y-axis [message #958095 is a reply to message #955763] Thu, 25 October 2012 15:02 Go to previous messageGo to next message
Michael Williams is currently offline Michael Williams
Messages: 1560
Registered: July 2009
Senior Member

In your case, you could just grab the axis label and modify its value to remove the '-' or add the '-', in script. Let me know if you need an example of 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.
Re: a question about y-axis [message #958391 is a reply to message #955763] Thu, 25 October 2012 20:43 Go to previous messageGo to next message
Candace Chen is currently offline Candace Chen
Messages: 5
Registered: October 2012
Junior Member
sorry, i need y-axes Value changes and chart follow to change too , like the example chart. thanks

index.php/fa/12084/0/
  • Attachment: q1.jpg
    (Size: 66.72KB, Downloaded 205 times)
Re: a question about y-axis [message #958443 is a reply to message #958391] Thu, 25 October 2012 21:39 Go to previous messageGo to next message
Michael Williams is currently offline Michael Williams
Messages: 1560
Registered: July 2009
Senior Member

My mistake. The easiest way I can see, to do this is to create a computed column that multiplies your axis #2 field by -1, plot this field on your second axis and then do what I said above and reverse the positive and negative values in the labels. Let me know you BIRT version if you need an example.

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.
Re: a question about y-axis [message #958476 is a reply to message #958443] Thu, 25 October 2012 22:14 Go to previous messageGo to next message
Candace Chen is currently offline Candace Chen
Messages: 5
Registered: October 2012
Junior Member
My version 2.3.2.r232 and can you gvie me example ??
Re: a question about y-axis [message #958527 is a reply to message #955763] Thu, 25 October 2012 23:14 Go to previous messageGo to next message
Michael Williams is currently offline Michael Williams
Messages: 1560
Registered: July 2009
Senior Member

Take a look at this report. I used a scripted dataSet to recreate data similar to yours, so instead of creating a computed column in the dataSet, I made one in the chart by going to the select data tab and selecting the data bindings button and adding a binding. You can see it there. I then used this value for the second series. Finally, I reversed the values, in the second yaxis, in the chart's script. Hope this helps.



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.
Re: a question about y-axis [message #958737 is a reply to message #958527] Fri, 26 October 2012 03:18 Go to previous messageGo to next message
Candace Chen is currently offline Candace Chen
Messages: 5
Registered: October 2012
Junior Member
Thanks you help me~
Re: a question about y-axis [message #961074 is a reply to message #958737] Sat, 27 October 2012 22:01 Go to previous message
Michael Williams is currently offline Michael Williams
Messages: 1560
Registered: July 2009
Senior Member

Not a problem! Glad to help!

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:Recreate excel xy graph
Next Topic:Images with Birt
Goto Forum:
  


Current Time: Wed Aug 20 06:54:44 EDT 2014

Powered by FUDForum. Page generated in 0.01871 seconds