Group bar graph
Hello
Is there a simple method to display data on bar graph where various Y-values for given X are staying like neighbors
but not like one Y above another Y (I've seen on http://forums.ni.com/ni/board/message?board.id=170&message.id=315293&query.id=2383347#M315293) ?
I made a lot of manipulation on set up on a legend (Common plots, etc) without success.
The only idea I have is to artificially offset X for all Y-values like this (X11,Y1), (X12, Y2) etc... and then plot it.
I'm sure there is a easier way to get my expectation.
I enclose a simple view how I want to get.
Best regards
Konrad
Attachments:
GroupBarGraph.jpg 21 KB
srikrishnaNF
What you mean bar plot width or where to find it ?
I have LB 8.5.1, there is only Line Width for given plot and bar style ?
I can modyfie bars only in simple way as I showed below in the file, but this is not what i expect.
It is easy and first bar graph in Exel.
KNRD
Attachments:
bar graph.JPG 40 KB
Similar Messages
-
Grouped stacked bar graph ?
Hey,
does anyone know how to make a grouped stacked bar graph in ADF ?
Single stacked bar works, but I want multiplestack bar grouped together...
for an example see : http://www.highcharts.com/demo/column-stacked-and-grouped
thanks for any help,
DMy JDev version is Studio Edition Version 11.1.2.3.0 ( Build JDEVADF_11.1.2.3.0_GENERIC_120914.0223.6276.1 ).
I have looked into the component and I only found a a grouped bar graph and a stacked bar graph . But I want them combined : group values vertically in one bar and combining several of these bars together in a group.
See the link I mentioned in my original message.
Dieter -
Hi,
In our project we need to implement grouping of stacked bar graph, but with dvt graphs we are not able to achieve this.
We want similar graph in below link but using dvt graphs:
http://www.highcharts.com/demo/column-stacked-and-grouped
Please help me with grouping of stacked bar graphs.
we are using JDeveloper 11.1.2.3.0 for development.
Thanks,
Jasbeer
Edited by: user13645211 on Jan 8, 2013 11:07 AMHi lo,
I think all you need to do is implement the code found below. What you need is instead of using the random numbers (like in my example), you would just give it the values for you bar graphs. You can then build an array where you append the values for the second color above the first color by using the add function. If you then go into the plot legend (left click and go into bar plots), you can change the presentation of the data on the graph. You will also have to change the common plots display in the legend as well (left-click and go into common plots). I hope this helps!
Message Edited by CarlaU on 04-10-2008 09:13 AM
National Instruments
Applications Engineer
Attachments:
BarStackedGraph.PNG 5 KB
StackedGraph.vi 13 KB -
Single Line and Stacked Bar Graph Representation
Data to be plotted on graph is as follows
Year and Month Study Planned Subject Study-Site ID # # Enrolled
2001 / 03 AMXN 9374 50 US-001 1
2001 / 04 AMXN 9374 50 FR-101 1
2001 / 04 AMXN 9374 50 SP-301 1
2001 / 04 AMXN 9374 50 US-001 2
2001 / 05 AMXN 9374 50 FR-101 1
2001 / 05 AMXN 9374 50 US-001 1
2001 / 06 AMXN 9374 50 FR-101 2
2001 / 06 AMXN 9374 50 SP-301 2
2001 / 06 AMXN 9374 50 US-001 1
I want to display the above data in line stacked bar graph format where the
#Enrolled will be in Stacked Bar by Study -Site ( Y axis)
Planned Subject should represent a single line at 50 ( Y axis)
Group by Year and Month ( X- Axis)
Study excluded ( Study will be selected from dashboard prompt)
I'm getting the stacked view of Study Site ID correctly but I want Single Line for Planned Subject .
Currently I'm getting multiple line .
Eg for 2001/03 I'm getting line at 50 in yellow colour
for 2001/04 I'm getting a line at 150 in different color since it has 3 Study-Site ID's But the desired output is Single Line at 50
As per 11g doc this is not possible because there is some upgradation in the nature of the graph
" Stacked line-bar graphs in which 2 or more measures are shown as lines on the same axis and are not stacked in 10g are stacked in 11g."
Refer - http://docs.oracle.com/cd/E21764_01/bi.1111/e16452/apndx_ui_chngs.htm
Is there any workaround for it ?Did you found any workaround for it ? I am too looking for same scenerio.
-
Hi all ,
i need help as my requirement is like i have three values (material,value1,value2) now i want to display data with the help of Group bar chart like for material1 value1 and value2 should be in BAR then again for material 2 value1 and value2 in BAR......
right now i am assining value1 and value 2 to Value column of display template but i am gettin a graph like material1 value1(BAR) material2 value1(BAR) ..... material1 value2(BAR) material2 value2(BAR)...........which value i should set so i should get graph what i mentioned above .
thanks in advance
regards,
PraveenHi,
Give the material in the label columns...( check with the requirement as the Legend show only the Material )
Check this also.(May solve your problem)
Change the type to Bar chart and give the value1 and value 2 in the value columns..
Hope this may help you...
Regards,
Kishore -
OBIEE 11g - Line-Bar Graph problem
Hi,
I am trying to build a Line-Bar graph where the line represents target. My data is as follows:
Dim1 Dim2 Fact Target
A Z 10 2
A Y 5 2
B X 6 3
B W 7 3
Please note that, the target is same across same Dim1. Like A has same target, B has same target.
Now if I create a stack chart with stack based on Dim2 (Dim2 is in the Vary by Colour), then I get mutiple line for target with the same value for each Dim1.
I am not sure if I could explain it clearly.
I want to show one line for the target since its same for Dim1. How can I do that?
Please help.
My chart config is as follows:
Group By (Dim1)
Vary Coulor by (Dim2)
Bars (Fact)
Lines (Target)Not yet, and I've been too busy with some SEV 1 issues to goof around with it. I also need to open a ticket about default pivot table formatting - i.e. removing the background colors under the non-data areas, and they also seem to have some sort of gradient fill at the bottom. I'll let you know if I hear anything.
Thx,
Scott -
Stacked + adjacent bar graph
Can Discoverer do something like this:
http://i18.tinypic.com/6fi179s.png
where stacked bars are "grouped" adjacent to one another?
Thanks,
JohnWe recently logged an Enhancement Request for the same with Oracle: Bug 15928667 : ENH DISPLAY DATA LABELS IN STACKED BAR CHART WITHIN THE BAR GRAPH ITSELF
There is no way out-of-box to do this as of right now.
Please assign points if helpful/correct. -
WebI 3D bar graph doesnu00B4t look 3D in excel
In Webi I created a vertical grouped bar chart and then I chose the Display option-> 3d look. The graph looks cool in WebI, it looks 3D as I expected, but when I export it to excel it doesn´t show 3D, it looks like if I didn't choose the 3D look option.
Is this an Excel issue or a WebI issue?
What can I do to make the graph look 3D when I export my report to Excel?right click the graph into excel, and select 3D-rotation
and change the X angel.
it go in 3D but maybe it doesnt appear as 3D, so you may need to increase the X angel to looks more 3D
good luck
Amr -
Solution for Messed (Error) Bar Graph of iPod Session in iTunes
I have encounter the error of iPod Session Bar Graph in iTunes like this:
http://img160.imageshack.us/img160/4527/capacitybarha6.png
and I find out the solution that can fix this problem!
Go to DEVICES > Your iPod > Music > Right click a group of file, and then [Get Info] > Options > Tick the box of [Gapless Album] and choose [Yes], wait for awhile for iTunes processing, and the Bar Graph restore to ordinary status!Sounds like it has a drive collision with another device, would you happen to have an external drive or are you on a network, or do you have a printer with memory slots?
http://docs.info.apple.com/article.html?artnum=93499 -
Bar graph :customize style class.
hi all,
i m using dvt:barGraph. for different groups of graph i want apply my own color, which is not there in current styles available.i also want to control width and height of the
bars group graph.
can anyone tell me how to do this.how to apply css to this ???
thanks,
dhiraj
Edited by: dhiraj shingavi on Dec 21, 2010 10:30 PManyone has any idea.....m really stucked here..:(:(.
-
hi all,
sorry if my question is not clear, try my best to describe.
i currently creating a bar graph applet, where this applet take different "group" of data / value, e.g. (68, 268,2680, 28 and 8). and here the maximum value is 2680, other group may NOT so. so for being the bar graph display, i have an applet that has a "fixed" maximum width of 700, i need my bar graph to have only 10 columns and also i need to minus out 10 from each column for other purposes, so i take (700 / 10) - 10 = 60, but here come the real problem, if i take 268 * 60 = 16080, that is incorrect! That is i know that i had to divide the 700 with 1000, because (700 / 1000) - (10 / 1000) = 0.69, then 268 * 0.69 = 184.92, that seem OK! but, but it still ran out of the expected result, the bar width will be much more shorter than expected (only those higher data value), why? my code will be as follow:
if (highestWidth >= 1001)
maxDetector = 10000;
else if (highestWidth >= 101)
maxDetector = 1000;
else if (highestWidth >= 11)
maxDetector = 100;
else
maxDetector = 10;
maxSingleWidth = (axisPanel.getWidth() / maxDetector) - (10 / (maxDetector / 10));so, at for loop:
for (i=0; i <= 9; i++){
barPanel.setBounds(x, y, (dataValue * maxSingleWidth), height);
any help will be very very much appreciated!!!import java.awt.*;
import java.awt.event.*;
import java.awt.font.*;
import java.awt.geom.*;
import java.text.NumberFormat;
import javax.swing.*;
public class BarGraph
public BarGraph()
JFrame f = new JFrame();
f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
f.getContentPane().add(new BarGraphPanel());
f.setSize(400,400);
f.setLocation(200,200);
f.setVisible(true);
public static void main(String[] args)
new BarGraph();
class BarGraphPanel extends JPanel
int[] data;
int maxValue;
Font font;
NumberFormat nf;
final int PAD = 40;
public BarGraphPanel()
data = new int[] { 75, 12, 23, 44, 98, 32, 53, 6 };
font = new Font("lucida sans demibold", Font.PLAIN, 15); // j2se 1.3+
nf = NumberFormat.getNumberInstance();
nf.setMaximumFractionDigits(1);
protected void paintComponent(Graphics g)
super.paintComponent(g);
Graphics2D g2 = (Graphics2D)g;
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
double w = getWidth();
double h = getHeight();
// ordinate
g2.draw(new Line2D.Double(PAD, PAD, PAD, h - PAD));
// ordinate labels
String[] labels = getLabels();
float labelScale = (float)(h - 2*PAD)/(labels.length - 1);
g2.setFont(font);
FontRenderContext frc = g2.getFontRenderContext();
for(int j = 0; j < labels.length; j++)
float width = (float)font.getStringBounds(labels[j], frc).getWidth();
float height = font.getLineMetrics(labels[j], frc).getAscent();
float x = (PAD - width)/2;
float y = (float)(PAD + j*labelScale + height/2);
g2.drawString(labels[j], x, y);
// abcissa
g2.draw(new Line2D.Double(PAD, h - PAD, w - PAD, h - PAD));
// plot data
g2.setPaint(Color.red);
double xInc = (w - 2*PAD) / data.length;
double yScale = getValueScale(h);
double x1, y1, x2, y2;
for(int j = 0; j < data.length; j++)
x1 = PAD + j * xInc;
y1 = h - PAD;
x2 = x1 + xInc;
y2 = y1 - data[j] * yScale;
g2.draw(new Line2D.Double(x1, y1, x1, y2)); // left vertical
g2.draw(new Line2D.Double(x1, y2, x2, y2)); // top of bar
g2.draw(new Line2D.Double(x2, y2, x2, y1)); // right vertical
private double getValueScale(double h)
int max = getMaxValue();
return (h - 2*PAD) / max;
private int getMaxValue()
int max = Integer.MIN_VALUE;
for(int j = 0; j < data.length; j++)
if(data[j] > max)
max = data[j];
return max;
private String[] getLabels()
int max = getMaxValue();
double inc = max/3d;
double next = max;
String[] s = new String[4];
for(int j = 0; j < 4; j++)
s[j] = nf.format(next - j * inc);
return s;
} -
How to create drilldown bar graph using clicklistener
Hi,
I have a view object that sums some data and tags each sum accordingly - eg sum salary grouped by department name.
I display this using a horizontal bar graph.
I want to now be able to click on a bar and then have the details displayed in a table. I am led to believe from chapter 24 of the manual it is possible to do using no java coding (ie not having to create a bean etc).
You can use the row selection listener of a graph (which serves as a master view) to enable clicks on a bar, slice, or other graph data element to update the data in another ADF component (which serves as a detail view). For example, a click on a bar that represents sales for a given product in a graph might cause the display of the detailed sales data related to the product in a pivot table.
The following requirements must be met to achieve this master-detail processing declaratively:
1. You must use the same tree data control to provide data for both views as follows:
1. Bind the graph as a row set to one level in the data control.
HOW ?
2. Bind the other ADF view (such as a table or pivot table) to a lower level in the tree data control.
I don't have a nested iterator - is it saying to use a master-detail scenario like dept/emp ?
2.
Set a value for the clickListener attribute of the graph tag in the Behavior page of the Property Inspector and use the processClick method that is already part of the graph binding.
For example, if the value attribute of the graph tag is value="#{bindings.myGraph.graphModel}", then the clickListener attribute should be clickListener="#{bindings.myGraph.graphModel.processClick}".
3. Ensure that the partialTriggers attribute on the parent tag for the detail component is set correctly. It should be set to the ID of the graph component.
You do not have to write Java code for handling clicks on data elements in the graph. The processClick event on the graph binding recognizes click events on data component in a graph and performs the necessary processing.
Are they suggesting all you need to do is ensure you have proper master-detail tables set up and it will automatically work ?
cheers
Edited by: Dom Klein on May 27, 2009 8:06 PMHi Frank,
thanks for replying. I opened a TAR about this as I cannot produce a drilldown table. I created a VO with my summary - eg
select decode(manager_id, 100, 'fred',
123, 'bill', 120, 'kate', 121, 'julia', 147, 'ken', 108, 'james', 148, 'liz',
149, 'phil', 205, 'jack', 102, 'eric', 'dominic') manager_name, sum(salary) as salaries
from employees
GROUP BY
decode(manager_id, 100, 'fred',
123, 'bill', 120, 'kate', 121, 'julia', 147, 'ken', 108, 'james', 148, 'liz',
149, 'phil', 205, 'jack', 102, 'eric', 'dominic')
Then I created a detail view object (from HR.employees) and added a calculated column :
SELECT Employees.EMPLOYEE_ID,
Employees.FIRST_NAME,
Employees.LAST_NAME,
Employees.EMAIL,
Employees.PHONE_NUMBER,
Employees.HIRE_DATE,
Employees.JOB_ID,
Employees.SALARY,
Employees.COMMISSION_PCT,
Employees.MANAGER_ID,
Employees.DEPARTMENT_ID,
decode(manager_id, 100, 'fred',
123, 'bill', 120, 'kate', 121, 'julia', 147, 'ken', 108, 'james', 148, 'liz',
149, 'phil', 205, 'jack', 102, 'eric', 'dominic') AS manager_name
FROM EMPLOYEES Employees
I create a new viewlink which links on manager_name. When I run the bc4j appmodule I can see the correct master-detail relationship. IF I drag a master-detail table onto the page it works fine.
Now if I create a graph using the master and then create a table using the detail I can't get it to use this relationship even after setting the processClick() and the id for the graph set on the partial trigger of the table. Any ideas ?
cheers -
Inserting a subreport in bar graph
Hi,
I had a bar graph on my main report, which shows data for each country date wise.
I need to create/show a subreport onclick of any of the bar(Country) on the bar graph
so that in the subreport,I should be showing the details of that country in the subreport.
Could anyone help how to embed a subreport in a bra graph.
Thanks.If you have a report with bar chart for each country you have the sales summary in the chart. Now place this in the report header and in the report insert a group on the country and place the fields in detail section. Now in the preview mode if you double click on the particular country bar it goes to the details of that country by default.
Hope this helps!
Raghavendra -
The attached vi is similar to what I am using, and it produces an Excel bar chart. I would really like to create the same chart, only vertically instead of horizontly. I have tried all kinds of things that don't work. Is there a way to do this that does work. I want a result similar to rotating the produced chart 90 degrees CCW.
Thank you!
Attachments:
Chart Test.vi 20 KByou want to use a xy-graph.
you can right click the plot legend to make a bar graph vertical.
Harold Timmis
[email protected]
Orlando,Fl
*Kudos always welcome
Attachments:
bargraph2.jpg 91 KB -
BO 4.0 webi: Conditional formatting on a bar graph
Hi,
Is it possible to fiormat a Bar graph conditionally in BO 4.0(SAP BO BI: web intelligence)..
I want to create a bar graph that displays bar in Green color if the value of bar is greater than target set and Red if it is less than target, which is not doable with BO xi3.1 version.
Please let me know if this can be doable with latest version of BO 4.0 webi.
Thanks in advance..Hi Bharath,
One workaround in 3.1 I have found is to use a stacked bar chart and then create two variables out of the measure you want to be green if over a certain amount and make the formula:
=[Measure Object] Where([Measure Object] >= 10,000)
and the 2nd variable formula for red:
=[Measure Object] Where ([Measure Object] <10,000)
Then place these two measure variables on top of each other where the measure values go. Then go into the color palette and make a custom palette with the first two colors green and red see if that gives you what you are looking for.
Thanks
Maybe you are looking for
-
Are there any fixes for iPad 2 with OS 8.1.1.
Are there any fixes for the iPad 2 IOS 8.1.1? I've had problems with Safari and other Apps crashing or locking up, and with extremely slow touch response. These problems have been occurring since the last update. At times the iPad becomes unusable
-
Who do i contact to help sort out my Icloud accont
i think someone has changed my details in icloud. i try to change my password but the emial does turn up to any of the accounts i know.
-
Authorizations for Query loading
Hi, We provided the authorization for EP screen and backend is BW while opening an screen we are getting an error " no authorizations for Loading a query" please can anyone will help me for this.. which authorization is require for laoding up query..
-
Hello Good Morning All, At the time of installatioin SAP Outlook Add-on then i got error C:\Users\Admin~1.SAP\AppData\Local\Temp\1\_isDDAB\SAP Business One 2007 - Microsoft Outlook Integration.msi but when i check this file in the mention path then i
-
Communicating applet with Servlets
Dear Friends, I need to communicate Applet & Servlet. Servlet should take the data from an wesite & it write the data to a file . the applet should read the file . these action should take automatically ( i.e updation )