How to plot Dual Y-axis in BI Publisher chart
Is it possible to plot dual axis in BI publisher chart?
If I want to plot
x-axis => Month
y-axis(left) => Sales(in USD)
y-axis(right) => Quantity
how can I do in BIPublisher. Scale of Sales will not be suitable to plot Quantity.
Please suggest.
Thanks & Regards.
for example : see seriesItems. and assignedTo
<Graph seriesEffect="SE_AUTO_GRADIENT" graphType= "BAR_VERT_CLUST2Y">
<Y1Axis axisMinAutoScaled="false" axisMinValue="0" axisMaxAutoScaled="true" majorTickStepAutomatic="true"/>
<Y2Axis axisMinAutoScaled="false" axisMinValue="0" axisMaxAutoScaled="true" majorTickStepAutomatic="true"/>
<LegendArea visible="true" position="LAP_BOTTOM"/>
<PlotArea fillColor="#0000FF"/>
<SeriesItems>
<Series id="0" color="#B0C4DE" borderColor="#000000" markerType="MT_BAR" assignedToY2="false"/>
<Series id="1" color="#0000C0" borderColor="#000000" markerType="MT_BAR" assignedToY2="false"/>
<Series id="2" color="#B0C4DE" markerType="MT_MARKER" markerShape="MS_NONE" assignedToY2="true" lineWidth="0"/>
<Series id="3" color="#0000C0" markerType="MT_MARKER" markerShape="MS_NONE" assignedToY2="true" lineWidth="0" />
</SeriesItems>
<LocalGridData colCount="{count(xdoxslt:group(.//G_1, 'MONTHANDYEAR'))}" rowCount="4">
<RowLabels>
<Label>Baseline (bar)</Label>
<Label>Actuals (bar)</Label>
<Label>Baseline cumulative (line)</Label>
<Label>Actual cumulative (line)</Label>
</RowLabels>
<ColLabels>
<xsl:for-each-group select=".//G_1" group-by="MONTHANDYEAR">
<Label>
<xsl:value-of select="current-group()/MONTHANDYEAR"/>
</Label>
</xsl:for-each-group>
</ColLabels>
<DataValues>
<RowData>
<xsl:for-each-group select=".//G_1" group-by="MONTHANDYEAR">
<Cell>
<xsl:value-of select="sum(current-group()/BUDGET_VALUE_DELTA[.!=''])"/>
</Cell>
</xsl:for-each-group>
</RowData>
<RowData>
<xsl:for-each-group select=".//G_1" group-by="MONTHANDYEAR">
<Cell>
<xsl:value-of select="sum(current-group()/REVENUE_AMOUNT[.!=''])"/>
</Cell>
</xsl:for-each-group>
</RowData>
<RowData>
<xsl:for-each-group select=".//G_1" group-by="MONTHANDYEAR">
<Cell>
<xsl:value-of select="sum(current-group()/CUMULATED_SBP2[.!=''])"/>
</Cell>
</xsl:for-each-group>
</RowData>
<RowData>
<xsl:for-each-group select=".//G_1" group-by="MONTHANDYEAR">
<Cell>
<xsl:value-of select="sum(current-group()/ACTUAL_CUMULATED[.!=''])"/>
</Cell>
</xsl:for-each-group>
</RowData>
</DataValues>
</LocalGridData>
</Graph>
Similar Messages
-
How to add two X Axis in the Column chart?Need Help
Hi,
I have a requirement to add two X axis in the SSRS column chart.Can someone please help how to add two X axis. I tried the secondary axis for horizontal axis but current x axis is shifting to other side, second X axis is not coming.
Regards
JonHi Jon,
According to your description, you want to add secondary X axis for one series in a column chart, right?
The secondary axis is useful when comparing two value sets with two distinct data ranges that share a common category. In Reporting Services, it’s not supported to create two X axis for one series. We can create secondary X axis when there are two series
in a column chart. As we tested in our local environment, we can add secondary X axis for specific series. Please refer to the screenshots below:
So I would like to know what’s your exact needs about creating two X axis for one series. If possible please share some detail information about your data and expected looking of the chart.
Reference: Plot Data on a Secondary Axis (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu -
Dual Y axis tab on the Chart Options dialog box
Post Author: training2go
CA Forum: Charts and Graphs
Hello,
I see this tab (on the version of Crystal in Visual Studio 2005), but I can't access it, so I'm wondering what type of chart it applies to. I've created each type of chart that's available, but this tab is always grayed out, so I'm guessing that I'm missing something. Any advise would be greatly appreciated. Thank you.You're right, it has been that way for a long time. I've never bothered reporting it as a bug since it's simple enough to deal with, but reporting it would be a reasonable thing to do.
-
URGENT. Need to make plots with semilog-axis....HOW?
URGENT. Is there any free classes/packages that are useful in plotting data?
My plots should have semilog-axis, so that y-axis is logarithmig (intensity) and x-axis linear (time). There is no need for regressing or something like that, only points in the chart. Semilog-axis -feature is essential.
I found a website: www.vni.com/products/imsl/jmsl_transition.html
and it sounds promising, but I found no way to download the package!!!!
I should also generate gif/jpeg/... image from that plot, but I think I can handle that...
Thanks,
krera.But it doesn't include semilog-axis.... (I think)JFreeChart does have a logarithmic axis feature. In version 0.8.1 only the y-axis can use a logarithmic scale.
In the CVS version of JFreeChart (on SourceForge) there is now a corresponding feature for the x-axis too. This was contributed by one of the many developers that have submitted code to the project.
Take a look at the displayTimeSeries2Chart() method in the JFreeChartDemo.java source file for an example
of how to replace a standard axis with a logarithmic axis.
Regards,
Dave Gilbert
JFreeChart Project Leader -
URGENT!!! How to plot x-axis and y-axis in a graphic?
Good nigth!
I have to do a work in what I've to plot a Spline given some values enter by the user.
I just know how to plot the Spline, but now I have to plot it with the x-axis and y-axis, and the associated values.
I'm in a big trouble! I'm in a hurry.
I will be thankful if anyone can give me a code that works.
I need this to finish a work that I have to deliver in a few weeks.
Please, help me!!!
Katia./**you can start simple and enhance as you progress* /
Point[] pnts=new Point[100];
read(pnts.x);//find suitable input reader!
read(pnts[i].y);
and loop until all points are entered
now you can use the array of points to draw lines from
i=0 to i=1
i=1 to i=2 -
ADF mobile: how to create graph with dual Y axis?
Hi,
Jdev 11.1.2.3.0 + mobile extension.
I try to figure out how to create a dvtm:comboGraph with dual Y axis but without success.
All series are rendered on the Y1 axis. Y2 axis even does not appear in the graph.
here my code:
<dvtm:comboChart var="row" value="#{bindings.lmrgGraph1.collectionModel}"
id="cc1" timeAxisType="enabled">
<amx:facet name="dataStamp">
<chartDataItem group="#{row.timeStamp}" value="#{row.acetat}"
series="#{lmrgGraphBundle.ACETAT}">
<!--dvtm:referenceObject color="ff0000" displayInLegend="on"
lineValue="#{bindings.graphTresholdAcetat.inputValue}"
lineWidth="2"/-->
</chartDataItem>
<chartDataItem group="#{row.timeStamp}" value="#{row.plannedMachines}"
series="#{lmrgGraphBundle.BMPLAN}"/>
<chartDataItem group="#{row.timeStamp}" value="#{row.actualMachines}"
series="#{lmrgGraphBundle.BMACTUAL}"/>
</amx:facet>
<dvtm:legend position="end" id="l1">
<dvtm:legendSection id="ls1" title="Legend"/>
</dvtm:legend>
<dvtm:yAxis axisMaxValue="#{bindings.maxYAxisValueAcetat.inputValue}"
title="#{lmrgGraphBundle.MENGE}">
<dvtm:majorTick/>
</dvtm:yAxis>
<!--dvtm:y2Axis majorIncrement="1.0"
title="#{lmrgGraphBundle.BETRIEBSMITTEL}"
axisMaxValue="#{bindings.maxYAxisValueMachines.inputValue}"-->
<dvtm:y2Axis majorIncrement="1.0"
title="#{lmrgGraphBundle.BETRIEBSMITTEL}"
axisMaxValue="10">
<dvtm:majorTick/>
</dvtm:y2Axis>
<amx:facet name="seriesStamp">
<dvtm:seriesStyle assignedToY2="false" color="0052ff" lineWidth="2"
rendered="#{(row.series eq lmrgGraphBundle.ACETAT)}"
series="#{row.series}"/>
<dvtm:seriesStyle assignedToY2="true" color="e7e700" lineWidth="10"
rendered="#{(row.series eq lmrgGraphBundle.BMPLAN)}"
type="bar" series="#{row.series}"/>
<dvtm:seriesStyle assignedToY2="true" color="94f700" lineWidth="10"
rendered="#{(row.series eq lmrgGraphBundle.BMACTUAL)}"
type="bar" series="#{row.series}"/>
</amx:facet>
</dvtm:comboChart>kr
PeterHi Jan,
meanwhile I have managed to display the second Y axix corret.
Here my code:
<dvtm:comboChart var="row"
value="#{bindings.lmrgGraph.collectionModel}"
id="cc1" animationOnDisplay="alphaFade"
hideAndShowBehavior="withRescale"
rolloverBehavior="dim" inlineStyle="height:50%;">
<amx:facet name="dataStamp">
<dvtm:chartDataItem group="#{row.timeStamp}"
value="#{row.acetat}"
series="#{bindings.lmrgGraph.hints.acetat.label}"/>
<dvtm:chartDataItem group="#{row.timeStamp}"
value="#{row.plannedMachines}"
series="#{bindings.lmrgGraph.hints.plannedMachines.label}"/>
<dvtm:chartDataItem group="#{row.timeStamp}"
value="#{row.actualMachines}"
series="#{bindings.lmrgGraph.hints.actualMachines.label}"/>
</amx:facet>
<amx:facet name="seriesStamp">
<dvtm:seriesStyle series="#{bindings.lmrgGraph.hints.acetat.label}"
color="0052ff" type="line"/>
<dvtm:seriesStyle assignedToY2="true" color="e7e700"
type="line"
series="#{bindings.lmrgGraph.hints.plannedMachines.label}"/>
<dvtm:seriesStyle assignedToY2="true" color="94f700"
type="line"
series="#{bindings.lmrgGraph.hints.actualMachines.label}"/>
</amx:facet>
<dvtm:xAxis/>
</dvtm:comboChart>
/code]
There are still some issues if x-axis is timestamp enables but I have already created an SR for this.
regards
Peter -
Hi,
I need to create a dual y-axis chart.
Y-Axis of the left should shows current and historical sales price of a item
Y-Axis of the right should shows current and historical sales unit of a item
"Line Bar Combo" Graph is showing one Y-Axis as bar, but I want both Y-Axis to be line.
How do I achive this ?
Any help is much appreciated.
Best wishes.Hi,
As of now, OBIEE doesnt have the option dual Y-Axis in line chart. We also have lot of similar charts and have raised an SR. I believe it might come in future release.
Thanks!
Regards,
Venkat -
I try to plot data like this picture attached . is there anyone who know how to plot three axis on same graph . And point of Three peak value is marked as point.
Help me. is it possible in labview? See JPG file
Attachments:
SDC11183.JPG 2664 KBDuplicate
Just stick to one thread and be patient - someone will be able to help, but the vast majority of people here are unpaid volunteers.
-CC
"If anyone needs me, I'll be in the Angry Dome!" -
How to plot waterfall graph in vb6 from offline data
How to plot waterfall graph in vb6 from offline data?The data load from SQL Server Database.Thanks.
asrol,
If you look at the Plot Styles example in the folder I mentioned in the previous post there is a section of code there that you might want to refer to in order to recreate your data.
'=============================================================================
' Plot Curve Button Handler
'=============================================================================
Private Sub PlotCurve_Click()
' Create curve data
Dim x(40)
Dim y(40)
Dim z(40)
For i = 0 To 40
x(i) = Sin(i / 3#)
y(i) = Cos(i / 3#)
z(i) = i
Next i
In this example they create 3 arrays to represent the three dimensions of the array. For your case if you were to plug your data into two of the array (axes) that would give you the data for the channels, then you can simply input a constant for the third array it would produce a single line of your data as shown in your example GIF. You can then repeat this process for each set of data, with a new constant value for that third axis, and it should manually create a graph that will look something like you desire.
John B.
Applications Engineer
National Instruments -
How do I change time axis labels?
I have a few data plots that show some parameter on the y-axis versus time on the x-axis. The data spans several months (sometimes years). Currently my x-axis shows date labels for the left and right side of the plot and one value inbetween (happens to be 12-31-09). How can I set the axis format to show a label for each month or each major grid interval? Anything would be an improvement over just one date label.
ThanksTry right-clicking directly on the axis label and select your desired style. You must click right on the label text or you will not get the correct pop-up menu.
Using LabVIEW: 7.1.1, 8.5.1 & 2013 -
Plot Secondary Y-Axis in Excel
I have two series of data and am trying to plot them to a primary Y-Axis and a secondary Y-Axis in Excel using ActiveX. Right now I have a file in Excel that I am using to test my code that has the values 1 through 20 in the first three columns and is saved as test.xlsx in the filepath C:\Templates\test.xlsx. I am able to open this file and plot the data in an XY scatter chart and name the primary x and y axes, but cannot figure out how to plot one of the data series against the secondary y-axis.
I created a macro in Excel and viewed the code it created to make a secondary y-axis. This is the code:
Sub Macro1()
' Macro1 Macro
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection(2).Select
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection(2).AxisGroup = 2
ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection(2).Select
End Sub
When I try to do this with ActiveX, I can select SeriesCollection(2), but when I choose AxisGroup, it is only a read function and I cannot write a 2 to it.
Is there another way to plot one of these data series against a secondary y-axis.
Attachments:
test.vi 31 KBThe attached image was the way that I would have thought I was supposed to create the secondary axis by writing a 2 or xlSecondary to the AxisGroup, but it does not work because AxisGroup is Read Only and I cannot write to it.
http://msdn.microsoft.com/en-us/library/aa141701%28office.10%29.aspx
If I create a secondary axis using a macro, I can act upon that axis. However, I am not able to create the secondary axis without a macro, which is what I would really like to do.
Ryan
Attachments:
ActiveX.jpg 9 KB -
How to Plot number and string in one row (data logger counter) ?
hi all i made data log quantity using Digital Counter via modbus to monitoring quantity and reject that has and Name Operator, Machine and Part Number.
i have problem about plot the number & string in one row, as shown on the picture below :
how to move that string on one row ? i attach my vi.
Thanks~
Attachments:
MODBUS LIB Counter.vi 39 KBDuplicate and answered - http://forums.ni.com/t5/LabVIEW/How-to-Plot-number-and-string-in-one-row-data-logger-counter-via/m-p...
-
how to use dual monitor display in windows 7 using MSTSC command ....?????
Hi Anurag,
The main issue is how to use the dual monitor in the Remote Desktop Session in Windows 7 ,right ?
please refer to the following links:
Using Multiple Monitors in Remote Desktop Session
http://blogs.msdn.com/b/rds/archive/2009/07/01/using-multiple-monitors-in-remote-desktop-session.aspx
Best regards -
WebI Combination Chart / Dual Y-Axis
Hi there,
is there still no Dual Y-Axis chart component in WebIntelligence (XI 3.0)?
What options and workaround are there to create dual Y-Axis charts in WebI?
I thought of implementing Xcelsius-Flashs with Dual Y-Axis, but it's not very satisfying to me, that WebI can't show this chart-type by default.
Best Regards
UlrichUnder the set of Bar Chart Templates, you will find a chart type call "Vertical/Horizontal Bar and Line" chart. You can drag measures to the left(Y) and right(Z) axis as you like. I see this in XIR2 and am pretty sure XI3.0 should have this as well. Let me know if you see it.
~Jimmy -
How to display axis labels on both x and y-axis of a column chart
hi,
i have an urgent requirement of having axis labels on both x and y axis
In x-axis i got it by sorting order also but in y-axis i'm unable to do
i need in y-axis ,my column values are L1,L2,L3,----L10these shuold display in y-axis in sorting order and 0 in axis should remain as it is ..........how to take the interval ....? as of now i'm using Auto
my y-axis values shud look like 0,L1,L2,L3,L4,----L10can anyone get perfect solution
thanx in advance
luckyHi Lucky,
Per my understanding that you want to display the values(Column1) like "L1,L2,L3....L10" which comes from the "Series group" in the Y-Axis label and keep the row group in "Category group" to
display in the x-axis and Numric column(1,2,3,4) in the "Value", right?
Gernerally the lable display in the y-axis is automatically based on the value of the Numric column in the "Value" and it default is numbric labels.
I have tested on my local environment and in your scenario, i suggest to hide the axis lable of the y-axis and create an tablix to only show the one column contains the values (L1,L2,L3,L3) to display in the place of the hidden y-axis label.
Detais information about to design an new y-axis label ae below for your reference:
Create an tablix to display only the row group of the "Column1" ( for the
Column1 may have duplicate values, you can create parent row group for this column and hide the detail column by setting the "Column Visibility").
Right click the y-axis to select the "Vertical Axis Properties" and select the "Labels" on the left pane to check the "Hide Axis labels"
Select the Chart Area and in the properties set value of left=0 under the CustomPosition:
Set the border style=None for both the Chart and Column1's row group
Drag the tablix at the position near the hidden y-axis and set the size of both the chart and the tablix to make the value in the tablix row group(Column1) to be align with the y-axis label:
Right click the "Chart legend" to delete or hide the legend
If you still have any problem, please feel free to ask.
Regards,
Vicky Liu
Vicky Liu
TechNet Community Support
Maybe you are looking for
-
I have a 2008 Macbook. I want to install a newer (used) hard drive into this one. I think all I need is the special screwdriver to remove it, then install it. Where can I get that screw driver?
-
Before V7, this code worked and did as requested every time the page was run. Now, it does not work and no error is reported. Google Chrome and Internet Explorer are able to produce th correct result. <script type="text/javascript"> window.resizeTo(3
-
Group Policy being lost after 2 -3 local logins
I have Netware 6 with Zen 3.2 and I have a GP that is deployed for setting the machines to a SUS server. Both Windows 2k and XP work fine when on the network, but what I've found is that if you take a laptop home and reboot it a couple of times the p
-
Return more than one value in a function
Hi All, I want to return values from table. 4 values will be returned from the table. Did something like this....will work for a single row. CREATE OR REPLACE FUNCTION test_func RETURN varchar2 IS temp1 varchar2(1); temp2 varchar2(1); temp3 varchar2(
-
Selection screen validation - one field based on another field
Hi all, i'm getting Month in Select option and Year in Parameter. When i execute the report, it should check whether one is entered without the other one. If so, it should throw error message. How to do this in selection screen ? this is what the co