Discussions
Categories
Choose a Product
THRUST SERVICES
CORE APPS
CE PRODUCTS
...
Quick Links
POPULAR
HELPFUL TIPS
Groups
My Links
FOR SIGNED IN MEMBERS:
Back to website
Home
Designing Analytics Reports
A bar chart with 2 group names as x-axis values ?
Migrateduser
I've a bar chart based on a table with 2 groups.<br />
<br />
<span style='color: #006400'>I have a db query with that 2 column data<br />
<span style='font-family: Courier New'><br />
Theme | InTime<br />
<br />
Theme A | Yes<br />
Theme A | Yes<br />
Theme B | Yes<br />
Theme B | No<br />
Theme A | Yes</span><br />
...</span><br />
<br />
<span style='color: #0000FF'>I have a birt report table with 2 groups (Theme and InTime) and a count aggregation on Yes and No<br />
<span style='font-family: Courier New'><br />
Theme A<br />
<ul class='bbc'><li> Yes 10</li><li> No 15</li></ul>
Theme B<br />
<ul class='bbc'><li> Yes 20</li><li> No 35</li></ul>
Theme C<br />
<ul class='bbc'><li> Yes 12</li><li> No 40</li></ul>
Theme D<br />
<ul class='bbc'><li> Yes 06</li><li> No 33</li></ul>
</span></span><br />
<br />
I have a bar chart that shows me the Yes and No counts for each theme.<br />
<br />
It looks like that <br />
The names of the 2nd (aggregated) groups are under the bars.<br />
<br />
<span style='color: #A0522D'><span style='font-family: Courier New'><br />
10 | 15 | 20 | 35 | 12 | 40 | 06 | 33 <br />
<br />
Yes | No | Yes | No | Yes | No | Yes | No <br />
</span></span><br />
<br />
But I need a bar chart like that. <br />
The name of both groups under the bars.<br />
<br />
<span style='color: #556B2F'><span style='font-family: Courier New'><br />
10 | 15 | 20 | 35 | 12 | 40 | 06 | 33 <br />
<br />
Yes | No | Yes | No | Yes | No | Yes | No <br />
Theme A | Theme B | Theme C | Theme D <br />
</span></span><br />
<br />
or even better only the 2nd groups<br />
<br />
<span style='color: #006400'><span style='font-family: Courier New'><br />
10 | 15 | 20 | 35 | 12 | 40 | 06 | 33 <br />
<br />
Theme A | Theme B | Theme C | Theme D <br />
</span></span><br />
<br />
For to see which bar is Yes and wich is No I want to color them in green(Yes) and red(No)<br />
<br />
<br />
In Crystal Report I've achieved that.<br />
There I can define for the data "On Change of : 1.) Theme & 2.) InTime"<br />
<br />
Now I'm using Birt 2.6.2<br />
<br />
How can I get a bar chart like the 2nd and 3rd example?<br />
<br />
<br />
best regards
Find more posts tagged with
Comments
There are no comments yet