Skip to main content



      Home
Home » Archived » BIRT » a question about y-axis
a question about y-axis [message #955763] Tue, 23 October 2012 22:16 Go to next message
Eclipse UserFriend
<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 719 times)
  • Attachment: after.jpg
    (Size: 27.43KB, Downloaded 664 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
Eclipse UserFriend
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.
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
Eclipse UserFriend
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 752 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
Eclipse UserFriend
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.
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
Eclipse UserFriend
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
Eclipse UserFriend
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.

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
Eclipse UserFriend
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
Eclipse UserFriend
Not a problem! Glad to help!
Previous Topic:Recreate excel xy graph
Next Topic:Images with Birt
Goto Forum:
  


Current Time: Wed Jul 23 15:49:20 EDT 2025

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

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

Back to the top