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] Wed, 24 October 2012 02:16 Go to next message
Candace Chen is currently offline Candace ChenFriend
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 276 times)
  • Attachment: after.jpg
    (Size: 27.43KB, Downloaded 268 times)
Re: a question about y-axis [message #958095 is a reply to message #955763] Thu, 25 October 2012 19:02 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
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

Developer Evangelist, Silanis
Re: a question about y-axis [message #958391 is a reply to message #955763] Fri, 26 October 2012 00:43 Go to previous messageGo to next message
Candace Chen is currently offline Candace ChenFriend
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 292 times)
Re: a question about y-axis [message #958443 is a reply to message #958391] Fri, 26 October 2012 01:39 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
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

Developer Evangelist, Silanis
Re: a question about y-axis [message #958476 is a reply to message #958443] Fri, 26 October 2012 02:14 Go to previous messageGo to next message
Candace Chen is currently offline Candace ChenFriend
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] Fri, 26 October 2012 03:14 Go to previous messageGo to next message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
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

Developer Evangelist, Silanis
Re: a question about y-axis [message #958737 is a reply to message #958527] Fri, 26 October 2012 07:18 Go to previous messageGo to next message
Candace Chen is currently offline Candace ChenFriend
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] Sun, 28 October 2012 02:01 Go to previous message
Michael Williams is currently offline Michael WilliamsFriend
Messages: 1925
Registered: July 2009
Senior Member

Not a problem! Glad to help!

Michael

Developer Evangelist, Silanis
Previous Topic:Recreate excel xy graph
Next Topic:Images with Birt
Goto Forum:
  


Current Time: Thu Sep 03 04:30:59 GMT 2015

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

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