Graph with 2 y axes and x axis (x , y1 , y2)

Hello,
I have a requirement to show a graph in a alv grid(using oops) report. The graph will have two y-axis that will represent two different scales.(For examle axis Y1 will have Volume & axis Y2 will show price). Can we make such a graph in ALV? Please point out how we can go about to do the same.<b> Any sample code will be appreciated.</b> We are using a customised toolbar and the standard tool bar is disabled.
| ...........................|Y2(Value in $)
Y1(Volume)...........
X-axis(Date)
Points will be rewarded.
Note - We will be using Line graphs in this case.

What happens in your sequence structure is that the second  fame overwrites the data from the first case.
You should create your two data-sets, and build an array of those, feed this into a for loop and then per data set, select the proper:
-plot (ActPlot)
-Y-scale (Plot.ScaleIdx)
-Y-scale to edit (ActYscl)
Then set the max and min, be aware that the second Y-scale should be created before running this code.
Another option would be to just auto-scale the Y-scales.
Ton
Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas
LabVIEW, programming like it should be!

Similar Messages

  • XY graph with N axes and translate it into a picture

    Hello - The VI has two windows diagrams (lower, narrow) is possible to unite them in one picture? - The VI (top left window graphics) have a common axis, but its hard to see the first graph "PLOT0" because he has little value compared with the values ​​of graphics "PLOT1", to avoid this problem, adding even more axis "X and Y '(top right graph window), now both graphs are visible, but they overlap each other, how to spread these graphs relative to each other. (In the diagram where one axis is obtained by adding a factor to make a Slider and Slider1), and the graph with 2 separate axes do not get how to be? - Is it possible to programmatically make up the axes of the "Duplicate Scale"? Thank you.
    Attachments:
    Ex.vi ‏21 KB

    now both graphs are visible, but they overlap each other, how to spread these graphs relative to each other. 
    You can move the secondary axes to the other side of the graph by right clicking on it and selecting "Swap Sides."
    Is it possible to programmatically make up the axes of the "Duplicate Scale"?
    I don't understand this question. Do you want to programmatically set the Max and Min of the axis? Please clarify the question.
    Nathan S.
    Applications Engineer
    National Instruments

  • 3D bar graph with time stamp on X-axis

    Hi all....I try to plot date data (first column in array)  to x axis in 3D bar graph follow by example in this link
    http://forums.ni.com/t5/LabVIEW/3D-bar-graph-issues-using-2D-Y-Z-plane-and-timestamp/td-p/1923027
    But I still do not succeed.
     I'll be glad if you had any suggestions that could help.
    Thank you
    HiN
    Attachments:
    xy_bar_graph Version 0.vi ‏21 KB

    Hi Jubchay,
    Here is an example of displaying the given timestamp. Only the 3D vision has the customized marker.
    The 3D Bar is not suitable to display a lot of bars, which make the marker overlapped. So I only input the subset of 15.
    Attachments:
    xy_bar_graph Version 1.vi ‏23 KB

  • Scatterplot with 1 point and negative axis fails

    I'm attaching a simple reproducible case below.
    If you run in IE it will crash after running out of memory.
    If running in the Flash player outside of IE, it times out
    and gives this exception:
    Error: Error #1502: A script has executed for longer than the
    default timeout period of 15 seconds.
    at mx.core::UITextField/validateNow()
    at mx.core::UITextField/set htmlText()
    at mx.charts::AxisRenderer/::processAxisLabels()
    at mx.charts::AxisRenderer/::measureLabels()
    at mx.charts::AxisRenderer/::calcRotationAndSpacing()
    at mx.charts::AxisRenderer/adjustGutters()
    at
    mx.charts.chartClasses::CartesianChart/::updateAxisLayout()
    at
    mx.charts.chartClasses::CartesianChart/mx.charts.chartClasses:CartesianChart::updateDispl ayList()
    at mx.core::UIComponent/validateDisplayList()
    at mx.managers::LayoutManager/::validateDisplayList()
    at mx.managers::LayoutManager/::doPhasedInstantiation()
    at Function/
    http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/::callLaterDispatcher2()
    at mx.core::UIComponent/::callLaterDispatcher()
    In my example the x axis goes from -34,000,000 to zero and
    the y axis has a similar range.
    There is only one point.
    <!--<?xml version="1.0" encoding="utf-8"?>
    <mx:Application
    xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" pageTitle="Experiments in Flex Charting"
    width="100%" height="100%" >
    <mx:Script> <![CDATA[
    import mx.formatters.NumberFormatter;
    import mx.collections.*;
    import mx.charts.*
    [Bindable]
    private var expenses:ArrayCollection = new ArrayCollection([
    {Month: "Jan", Profit: -34000000, Expenses: -74000000},
    ]]>
    </mx:Script>
    <mx:HBox height="100%" width="100%">
    <mx:BubbleChart id="scatter2" paddingLeft="5"
    height="100%" width="100%"
    paddingRight="5" dataProvider="{expenses}"
    showDataTips="true">
    <mx:horizontalAxis>
    <mx:LinearAxis baseAtZero="false" title="Profit" />
    </mx:horizontalAxis>
    <mx:verticalAxis>
    <mx:LinearAxis baseAtZero="false" title="Expenses"/>
    </mx:verticalAxis>
    <mx:series>
    <mx:Array>
    <mx:PlotSeries xField="Expenses" yField="Profit"
    name="Expenses/Profit" />
    </mx:Array>
    </mx:series>
    </mx:BubbleChart>
    </mx:HBox>
    </mx:Application> -->

    its good that you jsut got it, apple products have a 90 complimentary support window for initial setup issues and things like that for new products and software that you buy from them.
    i would recommend calling them at 1 800 275 2273 or 1 800 APL CARE with teh serial number for teh AppleTV for support to get that working correctly.
    It is possible that the router may be to blame here ( im not dumpign all the blame on it, just offering a suggestion) you may wanna unplug everything from the router, wait a couple minutes and then try again. if that doesnt resolve the issue its possible you may need to hard reset your router and setup your network again.
    I had a similar issue with connecting multiple ipads, PCs, and macs to a Netear router and some would connect for a while then lose access after a few minutes. i upgraded to an airport extreme and that cleared up all my connectivity issues.

  • [BUG?] inlineStyle="height:100%;" doesn't work for dvt:graph with firefox

    Hi,
    Using TP4 with Firefox 2.
    Have dvt:graph with dynamicResize="DYNAMIC_SIZE" and following inlineStyle:
    inlineStyle="width:100%;height:200px;" --> This works as expected and width of graph is resized when I resize the browser window.
    inlineStyle="width:100%;height:100%;" --> At runtime the browser window is empty.
    inlineStyle="width:200px;height:100%;" --> At runtime the browser window is empty.
    Here the full code:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
              xmlns:h="http://java.sun.com/jsf/html"
              xmlns:f="http://java.sun.com/jsf/core"
              xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:dvt="http://xmlns.oracle.com/dss/adf/faces">
      <jsp:directive.page contentType="text/html;charset=windows-1252"/>
      <f:view>
        <af:document binding="#{backing_graph.document1}" id="document1">
          <af:messages binding="#{backing_graph.messages1}" id="messages1"/>
          <af:form binding="#{backing_graph.form1}" id="form1">
            <dvt:graph id="graph1" value="#{bindings.PhoTestView11.graphModel}"
                       binding="#{backing_graph.graph1}"
                       clickListener="#{backing_graph.processClick}"
                       dynamicResize="DYNAMIC_SIZE"
                       inlineStyle="width:200px;height:100%;"/>
          </af:form>
        </af:document>
      </f:view>
      <!--oracle-jdev-comment:auto-binding-backing-bean-name:backing_graph-->
    </jsp:root>regards
    Peter

    Hello Frank,
    It's an FF (tested with 2.0.0.16 and 3.0.1) specific problem. With IE7 it works as expected.
    regards
    Peter

  • How to draw a graph with fixed Y-axis and varying X-axis....Is it Possible?

    i am trying to draw a Line 2d graph with a dataset which contains four values like(x,y)(x1,y1)...(x4,y4)
    So when i plot the points i couldn't get the (x,y) values since they are very low when compared to other values...
    So,is there any way to scale down the graph to the max value of (x,y)
    I am using JFreeChart..

    I can draw graph with given dataset.But theScaling
    of the graph is high when a single value ishigh.So
    is there any solution to scale down the graph to a
    particular value.This sounds very much like you are using JFreeChart.
    If so, you might be better off asking in the
    JFreeChart forum
    http://www.jfree.org/phpBB2/viewforum.php?f=3 ...
    I read this as not using JFreeChart! If using JFreeChart than one can just set the range of values to be plotted!

  • Reading from a .txt and displaying in XY graph with time stamp

    Hi,
    I am a newbie to LAbView. I need to read from a text file having two columns, one carrying the temp value and other the time stamp. I need to plot this in XY graph on a real time basis. Please help as how can I do this..
    I am attaching my files for your reference.
    Thanks in advance
    Ratnesh

    Shidla wrote:
    So what is the question about... I have to use XY graph in my program. It is used in Loop while cycle. It shows the statistic of a variable. I am using cursors in this graph to check the actual value of a variable in different period of time. But there are 7 variables and it is extremely hard for user to check each value independently. So I tried to make them moving on the X axis (TIME) together using the property node (cursors reading the position (only X axis, Y axis status lock to plot) of the major cursor and follow it... Everything looks great? But it did not work when I am trying to move the major cursor manually on graph... It works only when I am using the cursor movement buttons... But they work very slowly when there is a lot of data in graph.
    I want to find out is it possible to make seven coursers mouthing together By the X axe and be Locked each at its plot by Y axe manually (Using mouse moving on a graph). Is it possible? If it is than how to do it?
    Hello Shidla,
    The attached VI should help give you an idea of how to create a VI that allows all cursors to move together. The main idea is to keep track of the current location of all cursors and move all of them when you see a change in one's position.
    Good luck with your development.
    -Matt F
    Keep up to date on the latest PXI news at twitter.com/pxi
    Attachments:
    cursors.vi ‏164 KB

  • 4-quadrant plot (graph with axes passing through centre)

    Hi guys,
    Been away for a while, but now I'm back in to the swing of Labview again! I'm trying to create a system which presents data in an x-y graph, but I want the graph to have the x- and y-axis passing through the centre, rather than meeting at a corner.
    I read this thread, but I couldn't figure out how to customise the graph the way Jake H suggested. I also saw this thread, but the solution proposed doesn't really do what I want. If there's any confusion over what I need to achieve, the hurriedly-drawn sketch (attached) should clarify things.
    Thanks in advance!
    LabVIEW 2013, Windows 7
    He who asks the question is a fool for five minutes; he who does not ask the question remains a fool forever.
    Attachments:
    graph_axes.jpg ‏30 KB

    Hi Rob, thank you for your attention. Unfortunately, this solution isn't helping, for two reasons:
    1) Even with autoscaling off, and the graph set with the low numbers on each axis to a negative number, the axes do not move to the centre.
    2) I will need to autoscale the x-axis, as the upper and lower limits (while usually equal) will vary depending on the data being plotted.
    Is there something else I can try? Many thanks.
    LabVIEW 2013, Windows 7
    He who asks the question is a fool for five minutes; he who does not ask the question remains a fool forever.
    Attachments:
    test graph.jpg ‏27 KB

  • CRYSTAL REPORT GRAPH WITH DATE AND TIME

    Post Author: Dino Dentone
    CA Forum: Charts and Graphs
    Dear forum,
    I am developing a Visual Studio .net 2005 Windows Form,i have a sql table with 2 field:1) DATA (date and time)2) Temperatura (numeric)I have to make a line graph with numeric data axes.I have insert two parameters' to customize the filtering, so i can have a graph of the temperature between to date and time.If i choose two date's and time (parameters) like 20/04/2008 00:00:00 trought 20/05/2008 00:00:00 i have no problemBut if a choose a range minor of 1 day (some hours like from 15/05/2008 00:00:00 trought 15/05/2008 08:00:00) i have no graph.It sound like it don't use the time values?Thank's for the Help.

    There is some debugging info on the website. I've had problems getting the text to work. It was generally that I installed either the wrong 'version' of ImageMagick (the recommended one works for me--I'm running Vista x64 and one time installed the x64 version and it didn't work). I also installed Ghostscript to get the font list to work correctly. At one time I installed the x64 version of Ghostscript and it didn't work with the plug-in, either.
    I installed two items:
    ImageMagick: ImageMagick-6.4.9-3-Q16-windows-dll.exe
    Ghostscript: gs863w32.exe
    I don't know if it is necessary but I also added the fonts from
    ghostscript-fonts-std-8.11.tar.gz to the c:\Program Files (x86)\gs\fonts directory. Some, none, perhaps all, may already be installed just by installing ghostscript--it has been so long that I don't remember exactly. I do know that the contents of the gs fonts directory contains all the files in the .gz, I just don't remember if I put them there separately or as part of the gs install :)
    You need to make sure the font size is large enough. I usually use about 2-4% of height and export a single photo to make sure I see the text correctly.
    Tim does respond to email when he can so if you can't get it to work you can always drop him a line.

  • How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?, How do I create a graph with two different y-axis variables with the same x-axis (therefor having two curves)?

    Hi Libby,
    Select all three columns of data. All three must be 'regular' columns, not Header columns, and the X values must be in the leftmost column.
    Click the Charts button and choose the Scatter chart.
    The resulting chart will initially show only the first and second columns of data, and the selection will have been reduced to show this.
    Click the gear icon at the top left of the selection and choose Share X Values.
    You should see a result similar to this:
    Notes:
    The values on my sample table contain a random element, so they have changed from thhe first image to the second.
    The chart is as created by Numbers, with two edits:
    Data points have been connected with curves, using the Chart nspector.
    The curves were selected and their stroke increased to 2pts, using the stroke formating button in the format bar.
    Regards,
    Barry

  • How to add a scroll bar within a view window ?I want to display x and y axis outside the scoll window and keep those axis static and move the graph within scroll area

    how to add a scroll bar within a view window ?I want to display x and y axis outside the scoll window and keep those axis static and move the graph within scroll area
    ananya

    Hey Ananya,
    I believe what you want to do is possible, but it will not be
    easy.  If you want to add a scroll bar that will scroll the graph
    back and forth but keep the axis set, you would want to add a
    horizontal or vertical scrollbar.  Then you would create an event
    handler for the scroll event.  You would have to manually plot
    different data within this scroll event.  Unfortunately, there is
    not really a built in way to do this with the Measurement Studio plot
    control.
    Thanks,
    Pat P.
    Software Engineer
    National Instruments

  • How do you switch the x and y axis in a line graph?

    I am fairly new with this program and I need to make a line graph for a science lab report. For the lab, we needed to use a certain amount of water, which was 20 ml, 40 ml, 60 ml, then 80 ml, and we needed to measure the mass of different substances if they had the given values of the volume, and compare their mass and volume in a line graph.
    Therefore, the graph that I need to create requires a constant 4 steps, which are always 20 ml, 40 ml, 60 ml, and 80 ml, for all of the four substances I used during the experiment. That needs to be on the y axis. I need to have the mass of the substances on the x axis, but no matter what I have tried I cannot seem to switch the x and y axis...how can I do that?

    Nevermind I figured it out

  • Is it possible to express two y axes on a xy graph with different scale

    Is it possible to express two y axes on a xy graph with different scale
    I need to program it... Please help me

    Hello.
    Yes, it is possible to have two different vertical scales on an xy graph. There is no way that I know of to add a scale programmatically, but once you have added it, you can configure the range of it programmatically, as well as assigning a plot to any particular scale. You do this by using an xy-graph property node, with the properties YScale.Minimum, YScale.Minimum, and Plot.YScaleIndex respectively.

  • Creating a simple graph with time and values?

    I think I'm probably just plain stupid that I can't seem to get this done, but I've been trying now for two hours and tryed the help section so some one please help!
    I have a table with quite a lot of columns.
    First column is the years, the other column are prices values for different regions.
    Why can't I pick two regions and plot them against the years????
    I can pick two regions and plot them, but then I don't get the years underneath.
    When I try to add the years, it also ends up as a value on the y-axis, while I want those as the x-axis.
    This can't be difficult... even in Excel it took me five minutes to get it, so why not here??????
    null

    A Scatter Graph takes an extra step (or two).
    Make Table with Header Row and create Columns for each data pair.
    Select data.
    Select Scatter Graph.
    Adjust X-Axis Ranges and Steps (Select Labels).
    Regards,

  • Creating a graph with 2 Axis

    Post Author: KatyLu
    CA Forum: Xcelsius and Live Office
    I am really struggling with how to create a graph with 2 Axises.  I have changed my Excel sheet around numerous ways and am unable to get it to work for me, does anyone have any insight on how I can make this work, I reaaaalllyyy need it for an upcoming presentation!!! Help!

    Post Author: KatyLu
    CA Forum: Xcelsius and Live Office
    Sorry if I confused...I am needing to create a graph with scales on both sides.  For example, revenue would be on the scale on the left and headcount needed to generate the revenue would be on the right scale.  Revenue scale would be between 1M and 6M, headcount scale would be in the hundreds, does this help describe what I am trying to do?  I used the Combination Chart in xcelsius and when I try to set the scale range for the x-axis minimum and maximum it is grayed out... Any help would be greatly appreciated.

Maybe you are looking for

  • Help with java.lang.ClassCastException in JSSE

    I need an urgent help. i am writing code in JSSE for getting Server certificater(through SSL) i wrote public class url public static void main(String[] args) try System.setProperty("java.protocol.handler.pkgs","com.sun.net.ssl.internal.www.protocol")

  • Write to local CSV (or txt) file on iPad -- access via iTunes

    I'm trying to figure out how to write to a local CSV (or TXT) text file on the iPad. I've got UIFileSharingEnabled working--iTunes sees the app as available for file sharing. However, via FileStreram, I can't find where to save the file to? I've trie

  • Why limited themes

    Why Nokia is limiting to not to change the colorful themes apart from default themes. Its creepy to use the default themes more the some days. That to most of these colors were not visible in sunlight.

  • Configuring the Files Panel

    Is there any way to configure or set the Files Panel to include tabs for Assets and Snippets on Dreamweaver 8 on a Mac, so it looks exactly the same as it does in the Dreamweaver 8 for PC version? I am able to dock the panels on top of one another, b

  • Systemd service at the end of boot (login prompt)

    hi guys.. i'm trying to start a script using systemd.. in my script the first thing i want to start is jack server on usb audio sound card.. the problem is that jack service is started before module is loaded so it gives error that sound card does ni