LineChart with two X-axis

Hello!
How can I implement the LineChart component to have two X-axis like in the screenshot attached?
Note: The Y axis is the same for both line charts, not inverted or anything.
Thank you!

here is a code where it shows 2 y axis just alter this to x axis and do the needful
<?xml version="1.0"?>
<!-- charts/MultipleAxes.mxml -->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
  <mx:Script><![CDATA[
     import mx.collections.ArrayCollection;
     [Bindable]
      public var SMITH:ArrayCollection = new ArrayCollection([
        {date:"22-Aug-05", close:41.87},
        {date:"23-Aug-05", close:45.74},
        {date:"24-Aug-05", close:42.77},
        {date:"25-Aug-05", close:48.06},
     [Bindable]
      public var DECKER:ArrayCollection = new ArrayCollection([
        {date:"22-Aug-05", close:157.59},
        {date:"23-Aug-05", close:160.3},
        {date:"24-Aug-05", close:150.71},
        {date:"25-Aug-05", close:156.88},
  ]]></mx:Script> 
  <mx:Panel title="Column Chart With Multiple Axes">
     <mx:ColumnChart id="myChart" showDataTips="true">
        <mx:horizontalAxis>
           <mx:CategoryAxis id="h1" categoryField="date"/>
        </mx:horizontalAxis> 
        <mx:horizontalAxisRenderers>
            <mx:AxisRenderer placement="bottom" axis="{h1}"/>
        </mx:horizontalAxisRenderers> 
        <mx:verticalAxisRenderers>
            <mx:AxisRenderer placement="left" axis="{v1}"/>
            <mx:AxisRenderer placement="left" axis="{v2}"/>
        </mx:verticalAxisRenderers> 
        <mx:series>
           <mx:ColumnSeries id="cs1"
                horizontalAxis="{h1}"
                dataProvider="{SMITH}"
                yField="close"
                displayName="SMITH"
            >
                <mx:verticalAxis>
                   <mx:LinearAxis id="v1" minimum="40" maximum="50"/>
                </mx:verticalAxis>          
           </mx:ColumnSeries>          
           <mx:LineSeries id="cs2"
                horizontalAxis="{h1}"
                dataProvider="{DECKER}"
                yField="close"
                displayName="DECKER"
            >
                <mx:verticalAxis>
                    <mx:LinearAxis id="v2" minimum="150" maximum="170"/>          
                </mx:verticalAxis>
           </mx:LineSeries>
        </mx:series>
     </mx:ColumnChart>
     <mx:Legend dataProvider="{myChart}"/>
  </mx:Panel>
</mx:Application>

Similar Messages

  • Plotting a Chart with two Y- Axis

    Hi Team,
    I need to draw an combined Coulmn line chart with 2 Y-Axsis. I have defined all the category Axsis ,Value Axsis 1&2 and also the Region color.I am able to get the chart ,But the problem is that the bars are getting repeated as in screen shot -please help

    Hi Poornima,
    Use .

  • Apex Chart with multiple y-axis

    Hi,
    I am using the build-in flash Apex chart which I understand to be a subset of the Anychart.
    I have the following problem, I have two series, which I am displaying in a 3D Bar Chart on a horizontal view with two Y-Axis. This works well, the problem is that each Y -Axis has a different scale. I am not setting the min or max value range for either of the y-axis as I do not know what this value range may be at the time of rendering the chart to the application user.
    So as it turns out, the left y-axis has a value range from zero to 100 and the right y-axis has a value range from zero to 50 and the application users are finding this difficult and confusing as they are only looking at the bars represented in the chart and assuming that as the two bars, i.e. one form each series look similar in size, they have the same value and this can not be further from the true, as one y-axis is showing a value range twice as big as the other y-axis.
    So my question is how do you customise the chart so that the value range on both y-axis is the same. i.e., the largest of the two?
    Application Express 4.0.2.00.07
    Thank you

    You can't get axis scale variables to work in the APEX declaritive GUI because it's not designed for that. You will have to switch to custom XML.
    Set everything you want -- that you can set -- because once you switch to XML, if you switch back I think you lose all those custom settings. Then when you set Custom to "Yes", drag the window widget to enlarge the window so you can edit more easily.
    Find the y_xis section of the XML.
            <axes>
              <y_axis >
                <scale   mode="Normal"    />
                <title>
                  <text>Directory Size (Gigabytes)</text>
                  <font family="Tahoma" size="16" color="0x000000" />
                </title>
                <labels enabled="true" position="Outside">
                  <font family="Tahoma" size="10" color="0x000000" />
                  <format><![CDATA[{%Value}{numDecimals:1,decimalSeparator:.,thousandsSeparator:\,}]]></format>
                </labels>
                <major_grid enabled="True" interlaced="false">
                    <line color="Black" />
                  </major_grid>
    <minor_grid enabled="True">
                  </minor_grid>
              </y_axis>You want to change the scale line between <y_axis>   </y_axis> to
    <scale mode="Normal"  maximum="100" minimum="0" />Or maybe it's just <scale maximum="100" minimum="0" />Except instead of constants, you want variables. I'm not sure you can use bind variable (:P7_YMAX, :P7_YMIN) you may have to use (#YMAX#, #YMIN#) variables.
    I would make a new page and experiment with some VERY simple data -- maybe constants in a SELECT -- SELECT ..., 1, 2, 3 from dual ...... until you get what works.
    And, again. This assumes you decide on some computation to compute the values of (:P7_YMAX, :P7_YMIN) or (#YMAX#, #YMIN#) you want it to use.
    Howard

  • Waveform chart with 2 Y axis

    Hi, I have labview 8.5 and I would like to know if is possible to have one waveform chart with two Y axis, I have two signal from a force load cell and two signal from a LVDT, so I would like to graph in real time what is happening in the process having in one axis the forces and in the other axis distance, how can I do it?
    The problem is the forces are lower than the distance, so if I graph all in one is going to be a big mess or can I just play with each scale of each plot and put everything in one Y axis?

    Wolfson wrote:
    Hi, I have labview 8.5 and I would like to know if is possible to have one waveform chart with two Y axis, I have two signal from a force load cell and two signal from a LVDT, so I would like to graph in real time what is happening in the process having in one axis the forces and in the other axis distance, how can I do it?
    The problem is the forces are lower than the distance, so if I graph all in one is going to be a big mess or can I just play with each scale of each plot and put everything in one Y axis?
    1) Right click on the Y-axis and choose "duplicate scale". This will give you another Y-Axis.
    2) Optionally right-click the new Y-axis and select "Swap sides" to move the new Y-axis to the other side of the graph.
    3) If not already visable right-click chart and choose Visalbe >>> Plot legend
    4) Right click on a plot and choose the Y-axis it should be associated with.
    I hope that helps,
    Ben
    Ben Rayner
    I am currently active on.. MainStream Preppers
    Rayner's Ridge is under construction

  • 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

  • LineChart with a two color LineSeries how to?

    Hello
    Currently I am building a Flex Chart that shows the Stock Price of a Stock. Now my customer asked if it was possible to have a single LineChart with one horizontal Line that shows the closing price of the previous day and a two color Line that shows the stock price of the current day.
    He would like the Line to be green when it is above the closing price Line and red when it is below the closing price Line.
    Can someone tell me how to do this?
    All help is appreciated!

    Hello
    And how can I do this by extending the LineChart?

  • File upload with the SOAP Axis Framework

    Hi,
    my scenario is as follows:
    ERP --> PI --> System A (3rd party application)
    ERP sends data (IDoc) to the PI and is mapped there to a xml structure expected by A.
    IDoc --> PI --> target xml structure
    On A runs a Web service (Axis Framework) with a method uploadFile that expects one parameter (client of A) and the file for the upload has to come as attachment (call.addAttachment).
    I imported already the wsdl and can see the message uploadFile in the IR. The Axis Framework is also available already in the SOAP adapter.
    So I have
    IDoc --> PI --> target xml structure
    but want to call
    PI --> uploadFile(client) \[with the target xml structure as attachment\]
    How can I map the parameter to uploadFile and get the mapped xml structure as attachment?
    Thanks and regards
    Patrick

    Hi,
    thanks for your answer. The PayloadSwapBean could be a solution for the problem and I will try to use it.
    Here is another (simplified) version of my scenario:
    I have one source interface with three data fields
    SD1
    SD2
    SD3
    This should get mapped to a target interface with two data fields
    TD1
    TD2
    So if a source message arrives at PI a Message Mapping is called and the message gets mapped to the target structure.
    The result of this mapping should get the attachment of a Web service call.
    In a sample client for this Web service it looks like:
          Service service = new Service();
          Call call = (Call) service.createCall();
          call.setOperationName(new QName(... "uploadFile"));
          call.addAttachmentPart(...);
    The target interface of the Web service is the message uploadFile in an imported wsdl file. This interface has one data field
    WSD1
    and is independent of the other data fields.
    For filling WSD1 another mapping is necessary (or maybe not?).
    Regards
    Patrick

  • 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
    Jon

    Hi 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

  • How can i control graph with two inputs?

    Hi,
        i would like to ask you about the graph with two inputs
    Normally, if i just give one input, they generate the graph with this input(y) vs time(x).
    But now i would like to get the graph with my two inputs in x axis and y axis .
    i want to control both of two axis. How could i do for it ?
    i attached the file that i try to use "Build XY graph" to control both x and y axis with random number .
    It can run but i don't know how come the graph show nothing. .
    Actually , it have to show something like wavefrom continuously. am i right?
    Could you tell me a way to solve it ? 
    >>>
    what i want to get is ..
    in Graph,
    for x axis , ditance (always increases)
    for y axis , vibration (vary)
    >>>
    Thank you so much for your time . I am looking forward your kindly reply.
    With Respect,
                            Su
    Attachments:
    using Build XY graph.vi ‏59 KB

    Hi NI9233,
    Mind me to interrupt, I am just helping Mike to explain what he meant to you, refer to the graph:
    Picture 1:
    Double click on Build XY Graph, uncheck the clear data on each call
    Picture 2 and 3:
    Change your formula node into +1 Basic Function in Functions Pallette.
    Hope that helps!
    PS: I am sorry for the size of the image, seems I made a mistakes when I saved the picture.
    Sincerely,
    Krisna Wisnu
    Message Edited by Krisna Wisnu on 11-19-2008 08:19 PM
    Sincerely,
    Krisna Wisnu
    Attachments:
    Clear Graph on Each Call.PNG ‏46 KB
    +1.PNG ‏30 KB
    +1_2.PNG ‏21 KB

  • How to use JMS with tomcat and Axis

    Hello
    I'm new in ii, so i'm still a little bit lost. I have been implementing web services with tomcat and Axis. However, these services are synchronous and I would like that some services were asynchronous.
    I've been reading about the topic and I've found that JMS is a good solution for it. I have already downloaded JMS in my computer but now I don't know what else to do. I've been trying to run the SimpleQueueSender.java example but I get the error:
    JNDI API lookup failed: javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    But I have attached all .jar from F:\Sun\MessageQueue\lib
    In addition to this, for my first webservices I used the Java2WSDL, WSDL2Java and AdminClient (axis tool) to create my web services bindings, stubs and skeletons and to deploy the web service on the server. Do I have to use them now with JMS? or now the deployment must be performed in a different way?
    Thank you in advanced,

    The error means that you have to specify the type and location of your jndi store. You could create a jndi.properties file and put two properties in it:
    java.naming.provider.url=file\\\:////var/jndi
    java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
    for a file based jndi store. Then you have to make sure your jndi.properties file is in your CLASSPATH. Then you have to use something like imqadmin to create your jndi store and store in it your administrative objects like Queues and QueueConnectionFactories.

  • Plot a scatter two-y axis using VBA?

    I am working for a company on the oil and gas field. We are collecting data for pressure and load in every job we do. I am in charge on making a code to plot these sets of data using VBA in Excel. Does anyone know how to write a code for plotting in a
    different sheet a two-y axis (pressure and load) vs time graph using VBA in Excel? 

    Hi,
    This is the forum to discuss questions and feedback for Microsoft Excel, this issue is more relate to Excel DEV, please post the question to the MSDN forum for Excel
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in
    Office programs.

  • Creating a chart with a tertiary axis

    Hello all,
    I was wondering if it is possible to create a graph with a tertiary axis, along the lines of this:
    http://peltiertech.com/Excel/Charts/TertiaryAxis.html
    I have such a graph that I created in Excel, but when I import it into Numbers, it says that those types of charts are not supported. Is there any other way to create such a graph in Numbers?
    Message was edited by: Kyle DePasquale

    We may mimic the feature with two superposed 'normal' charts.
    Yvan KOENIG (VALLAURIS, France) lundi 15 février 2010 08:59:46

  • How to enter invoice with two different tax codes in one line?

    Dear friends,
    I have this PO for which I enter the invoice.
    I recieve later a subsequent debit for this PO from the transporter. This subsequent invoice has got extra debits, one with 21% VAT and one with 19% VAT, which means two items with two different tax codes.
    I want to enter this subsequent debit for each item of the PO, and I want to enter both debits in every item of the PO.
    How can I enter in one row in MIRO a debit with two different tax codes.
    Thank you.

    I want in the same line item to enter two tax codes.
    Do you Know if there is any way to do this?
    It is a subsequent debit and it has two items with two different tax codes. I want to enter the subsequent debit for a PO with many items and enter the value of the whole subsequent invoice. So there is the need to enter one line item with two tax codes.
    How can this be done?
    Thank you?

  • I need to upgrade memory slots on my Mac mid 2010 up to 4 GB module which is currently 2GB with two different 1GB memory  slots.Is it compatible and would like to know about the cost?

    I need to upgrade memory slots on my Mac mid 2010 up to 4 GB module which is currently 2GB with two different 1GB memory  slots.Is it compatible and would like to know about the cost?

    this sub forum is about running windows on macs maybe you should try
    https://discussions.apple.com/community/notebooks/macbook

  • I have a serious (and bizarre!) issue with my novation impulse (Although i've tried it with two other keyboards and i still have the same problem) and its compatibility with mainstage 3

    i have a serious (and bizarre!) issue with my novation impulse (Although i've tried it with two other keyboards and i still have the same problem) and its compatibility with mainstage 3.
    the problem is best explained on the following one - page thread: 
    https://discussions.apple.com/thread/3951518?start=0&tstart=0
    (Clearly i'm not alone in this problem, although i think i figured out what's going wrong a little more than he did...read on!)
    his solution, to put mainstage in jump mode, is very unsatisfactory to me, as it bounces all of a sudden to drastically different settings.
    basically, my analysis is that my controller is NOT receiving MIDI date from mainstage.  in other words, mainstage knows what my controller is doing, but my controller doens't know what mainstage is doing.
     let's say i turn the knob all the way to the right ... 127...and the virtual fader goes to the right like it's supposed to. 
    now...next...let's say i change to a different patch, where that same VIRTUAL fader is not at the max clockwise position..maybe it's only at 1pm.  now when i turn the physical knob to the RIGHT, the midi data is still at 127 on the controller!  it didn't "reset" to sync up with the new level (say 80 or so) setting on the new patch.  so i can't increase that new setting of 80 by continuing to turn the knob to the right.  i have to turn it all the way to zero,...and then continue PAST zero until the controller thinks that IT is at 0...at that point the controller and mainstage are in agreement, and things work fine....so bascially, the keyboard thinks the level is at max...but mainstage thinks the level is at 1pm.
    i am using Logic 9, and i have a macbook pro 2.9 Ghz I7 with 8 gigs of memory and OS X 10.8.4

    Hi Josh,
    Thanks for taking the time to contact us here a Novation for technical support. Lets continue to correspond via email so we can get your issue resolved.
    Thanks.
    Mike Towns

Maybe you are looking for

  • When I close my safari app my iphone 5 screan has a glitch

    When I run a app or my safari for short or even extended periods of time when I go to close it my screen glitches almost like I'm taking a screen shot. This occurs right after app closes  but no picture is being saved worried that os might crash has

  • Insert a cloumns in a cross tab

        Hi Every one, I have a requirement, I build a cross tab and after every 3 periods I need to insert a empty column, please help me to insert a empty column in a cross tab. My cross tab looks like as below image, I need report like as shown below..

  • Website with list of phones that are isync compatible?

    My mum is upgrading her mobile phone but wants to ensure she only upgrades to a handset that is compatible with isync, does anyone know of a website or something that lists phones that are compatible? She currently has a Nokia 6233 and it can't isync

  • Intialize Service is giving error in windows 8

    Hi, I have created endeca app in windows 8. but during initializijg the service fetting below error Microsoft Windows [Version 6.2.9200] (c) 2012 Microsoft Corporation. All rights reserved. C:\Users\Anushka>cd C:\Endeca\apps\CRS\control C:\Endeca\app

  • IWeb 1.1 comments and language

    After the 1.1 update, which supports comments for the first time, I tried out this new feature today. My iWeb site is totally in Dutch, and up to now this has worked fine: all navigational items and titles are in Dutch, as it ought to be. However, af