Dynamic Series creation for Plot Chart

Hi,
I am using a plot chart which takes data from an external XML file.
Based on certain fields in the data, I create 3 different plot series.
I use a Combo box to show different plot series based on the selected value from it.
I am placing another Combo box
How can do the below task:
I need to create some dynamic series based on some node elements in the series for which the chart is currently shown.
I create another Combo box to show the above generated plot series based on the selected value from it.

Hi,
I am using a plot chart which takes data from an external XML file.
Based on certain fields in the data, I create 3 different plot series.
I use a Combo box to show different plot series based on the selected value from it.
I am placing another Combo box
How can do the below task:
I need to create some dynamic series based on some node elements in the series for which the chart is currently shown.
I create another Combo box to show the above generated plot series based on the selected value from it.

Similar Messages

  • How to provide different plor series for plot chart

    How to provide different plot series for a Plot Chart.
    The IDs of the series are given in a ComboBox control

    Series are stored in an array. If there is only one series, then you can change it simply by "pushing" a series into a new array, and then assigning that series array to the chart. If you are replacing one series in the chart series array, then you have to figure out which to remove and put the new one in.
    This LiveDocs link may help:
    http://livedocs.adobe.com/flex/3/html/help.html?content=charts_intro_7.html
    If this post answers your question or helps, please mark it as such.

  • DataTip box to appear near the plot for Plot Chart

    Hi,
    I am using a Plot chart.
    I use three Plot series for the chart.
    I show the plots for one series at a time.
    When I show the Data tips for each plot, I am getting a long line connecting the plot & the DataTip (as shown in attachment).
    I would like the DataTip box to appear near the plot.
    How to accomplish this ?
    - Sen

    The bottom line is that it does not work reliably, Tim.
    I had occasion to scan old Kodachrome slides (2x2" in cardboard mount), and placed identifying markers with "Talk Bubbles."
    Open your picture file
    Access the  Custom Shape Tool (U). On the tool's option bar at the top next to "Shapes", click on the arrow and find the "Talk Bubbles" library. In that there are several shapes which you can drag into position. The shapes fill with the foreground color (see chips, lower left of work-space)
    Next, use the Type tool for the name.
    Note that you can position the shape and the name with the move tool, and resize with the corner handles of the bounding box -- the advantage of doing things in layers.

  • External XML data for plot chart

    Hi,
    Can you provide the XML equivalent & the corresponding changes to be done in the below plot chart code :
    <?xml version="1.0"?>
    <!-- charts/BasicPlot.mxml -->
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script><![CDATA[
         import mx.collections.ArrayCollection;
         [Bindable]
         public var expenses:ArrayCollection = new ArrayCollection([
            {Month:"January", Profit:2000, Expenses:1500, Amount:450},
            {Month:"February", Profit:1000, Expenses:200, Amount:600},
            {Month:"March", Profit:1500, Expenses:500, Amount:300},
            {Month:"April", Profit:500, Expenses:300, Amount:500},
            {Month:"May", Profit:1000, Expenses:450, Amount:250},
            {Month:"June", Profit:2000, Expenses:500, Amount:700}
      ]]></mx:Script>
      <mx:Panel title="Plot Chart">
         <mx:PlotChart id="myChart" dataProvider="{expenses}"
         showDataTips="true">
            <mx:series>
               <mx:PlotSeries
                    xField="Expenses"
                    yField="Profit"
                    displayName="Plot 1"
               />
               <mx:PlotSeries
                    xField="Amount"
                    yField="Expenses"
                    displayName="Plot 2"
               />
               <mx:PlotSeries
                    xField="Profit"
                    yField="Amount"
                    displayName="Plot 3"
               />
            </mx:series>
         </mx:PlotChart>
         <mx:Legend dataProvider="{myChart}"/>
      </mx:Panel>
    </mx:Application>

    This does what you want.
    If this post answers your question or helps, please mark it as such.
    <?xml version="1.0"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
      creationComplete="init();">
      <mx:Script>
        <![CDATA[
          import mx.collections.XMLListCollection;
          [Bindable] public var expenses:XMLListCollection;
          private function init():void{
            expenses = new XMLListCollection(XMLList(xml..dataItem));
          private var xml:XML =
            <data>
              <dataItem>
                <Month>January</Month>
                <Profit>2000</Profit>
                <Expenses>1500</Expenses>
                <Amount>450</Amount>
              </dataItem>
              <dataItem>
                <Month>February</Month>
                <Profit>1000</Profit>
                <Expenses>200</Expenses>
                <Amount>600</Amount>
              </dataItem>
              <dataItem>
                <Month>March</Month>
                <Profit>1500</Profit>
                <Expenses>500</Expenses>
                <Amount>300</Amount>
              </dataItem>
              <dataItem>
                <Month>April</Month>
                <Profit>500</Profit>
                <Expenses>300</Expenses>
                <Amount>500</Amount>
              </dataItem>
              <dataItem>
                <Month>May</Month>
                <Profit>1000</Profit>
                <Expenses>450</Expenses>
                <Amount>250</Amount>
              </dataItem>
              <dataItem>
                <Month>June</Month>
                <Profit>2000</Profit>
                <Expenses>500</Expenses>
                <Amount>700</Amount>
              </dataItem>
            </data>;
      ]]></mx:Script>
      <mx:Panel title="Plot Chart">
         <mx:PlotChart id="myChart" dataProvider="{expenses}"
         showDataTips="true">
            <mx:series>
               <mx:PlotSeries
                    xField="Expenses"
                    yField="Profit"
                    displayName="Plot 1"
               />
               <mx:PlotSeries
                    xField="Amount"
                    yField="Expenses"
                    displayName="Plot 2"
               />
               <mx:PlotSeries
                    xField="Profit"
                    yField="Amount"
                    displayName="Plot 3"
               />
            </mx:series>
         </mx:PlotChart>
         <mx:Legend dataProvider="{myChart}"/>
      </mx:Panel>
    </mx:Application>

  • Dynamically assign series names for SVG Chart

    I have created a line chart with 5 series in it. I would like the legend name for each series to be dynamically assigned (as a value from a field in the database). Is this possible?
    Ideally, i'd also like the number of series to be variable too. Is this possible?

    Hi,
    I am trying to use the code you gave me above (which normally works fine). But when I put it in the query below with 3 ' (3 quotes) it fails.
    Any ideas?
    Thanks
    Owen
    return
    'SELECT null link, month label, sumamt "'||:P4_FY||'"
    FROM
    SELECT
    month
    , CASE
    WHEN MONTH = '''JUN''' THEN 1
    WHEN MONTH = '''JUL''' THEN 2
    WHEN MONTH = '''AUG''' THEN 3
    WHEN MONTH = '''SEP''' THEN 4
    WHEN MONTH = '''OCT''' THEN 5
    WHEN MONTH = '''NOV''' THEN 6
    WHEN MONTH = '''DEC''' THEN 7
    WHEN MONTH = '''JAN''' THEN 8
    WHEN MONTH = '''FEB''' THEN 9
    WHEN MONTH = '''MAR''' THEN 10
    WHEN MONTH = '''APR''' THEN 11
    WHEN MONTH = '''MAY''' THEN 12
    END AS SORT_ORDER
    , sumamt
    FROM
    Select month
    , sum(DEAL_VALUE_SUM) sumamt
    from my_deals
    where country = :P8_COUNTRY
    and FY = :P8_FY
    group by month))
    ORDER BY SORT_ORDER';

  • Getting and setting dynamic y-field for flex chart

    I'm pulling data from a amfphp service for
    a series of charts. My client now wants the the chart's fields to be label and display data dynamically so they can change the service with out breaking the charts.
    For example  {Month:"January", Flex:39, Flash:71.8, Photoshop:23.7},
    They'd like to be able to change the software names and the charts would still work without having to go into the code and change the yfield property.
    A code sample would be great. Thanks in advance.

    You can declare a bindable string variable that you can use as title in your axis:
    [Bindable]
    private var labelForAxis:String="";
    <mx:verticalAxis>
                    <mx:LinearAxis baseAtZero="false" title="{labelForAxis}" />
                </mx:verticalAxis>  
    Every time you change the string variable you label will also change.

  • Semiweekly Time Series Creation for DP

    Hi,
    I want to create a semiweekly (twice a week) time series for DP.
    And this would be spread for 2 years (i.e. 1 year for the past and 1 year for the future).
    So a total of 208 entries need to be made for this time series.
    My understanding of the method is
    1)     Create a fiscal Year Variant.
    2)     Create a Storage Bucket profile based on fiscal Year Variant.
    3)     Create a Time Series Object based on Storage Bucket profile.
    4)     In the new Planning Area, provide the Time Series Object.
    Correct me if my understanding is wrong.
    Also can you provide the T-Code or Menu Path for the first three activities?
    Regards,
    Vikas

    The Menu Path for
    (1) Fiscal Year Variants
    SPRO>APO> Supply CHain PLanning> Demand Planning> Basic Settings>Maintain Fiscal Year Variants
    (2) Storage Bucket Profiles
    SPRO>APO> Supply CHain PLanning> Demand Planning> Basic Settings>Define STorage Bucket Profiles
    (3) I guess when you mean time series, you meant planning bucket profile
    SPRO>APO> Supply CHain PLanning> Demand Planning> Basic Settings>Define Planning Bucket Profiles
    (4) Define PLanning Area- /n/sapapo/msdp_admin
    You define a storage bucket profile
    (5) Define PLanning Book
    You define the planning bucket profile

  • AFAB dynamic variant creation for Posting period.

    HI,
    Business Requirement :
    Business want to run AFAB transaction code every month automatically with schedule job.
    system should pick present month period in posting period field.
    i checked in variant creation  against posting period there is no dynamic " D " in selection variable column.
    how can i fix this.

    Hi Jani,
    Check with abaper if TVARV table can Help you in this case, or create a z program from AFAB. And add date field to it, and schedule job based on that,
    I think TVARV table will be a better approach.
    Another point to consider here would be that dep should be run once business is ready to do so, and has its own hick ups in business if corrections are required to be made after executing AFAB by job
    Regards
    Pankaj B.

  • Java Core Program :: Dynamic Object Creation for Classe & Invoking the same

    Hi,
    I need to create a dynamic object for a class & invoke it.
    For eg: I have a table in my DB where all the names of my java classes are stored. I need to call name from the table of the DB and call that class dynamically in my java program.
    ResultSet_01 = executeQuery("select classname from class_table where class_descrip = 'Sales Invoice' ");
                   while(ResultSet_01.next())
                        String class_name = ResultSet_01.getDouble("classname");
                   }Now using the string in class_name that is fetched from ResultSet_01, I need to create an object for the class_name & invoke the class that is been created with the same name.
    Thank in advance.
    Regards,
    Haider Imani

    Well for a start since a class name is a String, not a number you'd better start by getting the name with getString() not getDouble().
    You need to work with fully qualified names, (FQNs) like "com.acme.myproject.MyDynamicClass", not just the bare MyDynamicClass.
    The next question is where the .class files for the dynamically loaded classes are stored. If they are part of your normal program code, on the class path, then you can use Class.forName to load the class and return a Class object. If they are in some special place you'll need to create a URLClassLoader and get the Class from that.
    Generally, when you load a class this way, it should implement some known interface, or extend some know abstract class. By placing objects of the dynamic class in a reference to that interface you can use the methods defined in the interface.
    The usual way of getting an instance of a dynamic class is to call newInstance() on the Class object.

  • Dynamic series in flash chart & color specified for each series

    Example of data:
    Date     Series 1     Series 2     Series 3     Series 4     Series 5     Series 6     Series 7     Series 8
    A     12     22     23     22     22     10     10     10
    B     10     9     55     8     8     20     20     20
    C     55     2     5     88     5     15     15     15
    In excel, I can get a stacked horizontal bar chart with the numbers of different series stacked and it is easy to specify the color for each series (it works with Dephi aslo).
    I use a PL/SQL to generate the dynamic series for the chart. And in my application, I need to show some serires with the same color (group of series, each has a specified color). One of the solution I am trying is to input a fixed color sequence and loop it many times in the custom color theme and then insert dummy series into the SQLS. But this could be a disaster while the number of group goes up.
    Anyone has better idea on this? Or is this a limiation of apex?
    Thanks.

    As I tried, apex can support 300 series at most. Dynamic series here is not a good solution still.

  • Plotting multiple series on an SVG Chart

    Hi,
    I am trying to plot multiple series on an SVG Chart. The moment I add a second series, I get the following error:
    "SVG Chart error: ORA-20001: line_chart error: ORA-20001: get_data error: ORA-20001: Parse error: ORA-0093".
    The graph fails to plot multiple series even for the same queries. The query I use is something like the following:
    select null "link", substr(name,7) "Label",value "Value"
    from <table>
    where
    <conditions>
    and name in (<sub-query>)
    order by name desc
    I have previously used an SVG chart to plot multiple series and have never had such problems. Any help would be greatly appreciated.
    I tried deleting and recreating the chart - doesn't help.
    Thanks,
    Aswath

    If you want to order the data do it via an in-line view:
    SELECT *
    FROM (
    select null "link", substr(name,7) "Label",value "Value"
    from <table>
    where
    <conditions>
    and name in (<sub-query>)
    order by name desc
    )

  • Need EXPERT's suggestion for APEX CHART SERIES

    Hello Everyone,
    I have been trying to solve an issue with my apex line chart. The scenario is as follows:
    I have a table called revenue. revenues per year are saved in it. and revenues are generated from three sources which are also saved in the same table.
    I have made a line chart on it. works well.
    Now I have to show that if the value of one of the sources had fallen, how must have it affected the total. I made a number field that takes an estimated change value, and build my sql query with it. it works but the problem is that it changes the non-affected source too. it must change the value of the affected source only and hence the total value.
    I hope I make sense and anybody can suggest something.
    bold or I will put it this way, how can I write a select statement for a chart series so that one of the rows value does not change and the other two change. ... ?
    Edited by: Samooray92 on May 30, 2013 2:41 PM

    Samooray,
    Let's work with this question since there is more detail here than in the other one. {thread:id=2543702}
    First it's always help to know:
    Full APEX version
    Full DB/version/edition/host OS
    Web server architecture (EPG, OHS or APEX listener/host OS)
    Browser(s) and version(s) used
    And sometimes this information as well.
    Theme
    Template(s)
    Region/item type(s)
    When a question goes unanswered for a while, there is no need to reply to it or to start a new question. You can edit the original question and just add "Bump" at the bottom and save the changes. This will bump it back to the top of the question list. And by that time, you might think of additional information you can add to the question.
    Say, why would a question go unanswered? Well, easy questions and frequently asked questions with well-known answers can be answered right away. Your question seems more complicated and I don't think we have all the information we need to understand exactly what the question is.
    You are doing a "series" chart. What kind of series chart: bar, column, line? What is each series? For example, components of revenue might be 1) sales, 2) licensing revenue and 3) other. Then you might have one series for sales, a second for licensing revenue and a third for other.
    Could you mock up a trivial example on apex.oracle.com http://apex.oracle.com/pls/apex/f?p=4700:1:0::::: ?
    Regards,
    Howard

  • Drill Down for Multiple Series in a Line Chart

    Hello,
    I seem to have a problem with the drill-down functionality in a line chart that has multiple series.
    I have a line chart that displays the readings of a patient over a period of 1 month. For each day, there is the glucose level reading, blood pressure reading, etc... So, each reading is a different series in my line chart graph.
    The basic requirement is: With a mouse over event on the chart, I am willing to display all the data that belongs to that day. The data will be displayed at the bottom of the screen in a small panel. It is very simple to do it when the line chart has only 1 series:
    i) Enable drill down.
    ii) Choose 'Row' as insertion type.
    iii) Fill out the destination field.
    iv) Make sure your labels (at the bottom of the screen) get the data from the destination cell.
    When there is more than one series, it becomes very difficult. XCelsius will not let me use the same destination cells for different series. So, I will have to use other destination cells. In that case, I will not know on which day is the user on. Is there any way to achieve this functionality?
    Let me know if you need further information.

    This is certainly possible, but there's a bit of a trick to it (and really hard to explain without screenshots!). There's two halves to it:
    1. Write the date that has been selected to a cell (for each series).
    2. Write the name of the series that was clicked to some cell (this is the property 'Series Name Destination').
    So let's say your three series are Glucose, Blood Pressure and Temp. Have those series names in B1,C1,D1 (with your dates down in column A). Insert a row below the series names (2:2), and then set up your insertion type for the chart as 'row'. The source data (for all three series) should be your list of dates in column a. The insertion cells for the three series will be, in order, B2,C2,D2. Now, depending on which point is clicked in the chart, the selected day will be inserted into one of those three cells. Completely useless unless you know which series was clicked.
    So you need to insert the name of the series that was clicked ('Series Name Destination') into the spreadsheet, let's say in F1. The rest is just Excel formulas. The logic is, you can now tell what series was clicked, and go and look up the date that was inserted for that series, then go and look up the row that corresponds to that date. So to get the date that was just clicked, your formula (in F2) would be =HLOOKUP(F1,B1:D2,2,0).
    Then a VLOOKUP will get the results from that row of data. For example, if I inserted another row at row 3 (to show my 'result' values) the formula in B3 would be =VLOOKUP($F$2,$A$4:$D$13,2,0).
    I hope that makes sense.

  • Showing data series for two charts on one

    Hi
    I need to represent 2 sets of data on one chart. The first is a linebar chart and the second is a scatter chart. This can be done in Excel by adding multiple named data series.
    Is this possible with crystal report 2008.
    Thanks

    I'm a bit late to discussion, but this is I think the most relevant post I could find.
    I have the same problem - displaying multiple data series on the same chart (line chart or scatter by date).  My problem is complicated by the fact that number of series also depend on the data point.
    Essentially I need to plot readout of test in a monitored room where different number of sites maybe tested depending on the room.  So one room might have three data readouts (three sites), and another five (five sites), and when charting by room, one chart will have three series, and another five.  So even considering using overlapping transparent charts, there are issues of conditionally enabling/disabling the whole chart, of determining maximum number of charts (and room might have dozens of test sites) and also displaying appropriate legend(s).
    There must be a better way!
    TIA,
    Andrey.

  • Transparency for plots in graphs and charts

    In addition or extention  to this idea
    http://forums.ni.com/t5/LabVIEW-Idea-Exchange/Graphs-and-Charts-with-semi-transparent-fill-option/idi-p/1530960
    I would like to have a transparency control/property in the colour selection for plots in graphs and charts.
     

    Bill, why not directly giving you a solution -there is alot of work going on in adding charting and graph support for future release of Jdeveloper....of course, that does not stop you using some graphing and charting features now but the new added features make the charting side of things much more drag and drop.
    Regards
    Grant

Maybe you are looking for

  • Hard drive crash- cannot load burned cd's from ipod onto desktop

    I recently had a HD crash. replaced HD, downloaded Itunes. synced with Ipod, but only the "purchased music" was loaded onto the new desktop hd. I have hundreds of songs and audio books which I have burned from cd"s to itunes,  How do I get Itunes to

  • Please Help! I cant use CC lens?

    Why doesnt CC lens appear in my presets? It did in cs4 and cs5, but not in cs5.5, please help if you can! I have already tried to install cycore fx by myself, no luck

  • Mailboxes keep emptying and refreshing

    I am having a problem where my mailboxes keep coming up empty and then taking a long time to refresh (giving me the number of "incoming" messages that equals the entire content of my mailboxes).  This happens for my icloud-based email (.mac) as well

  • Calling VB Executable using HOST to Slow....

    Hello Friends, I have one form containg one program unit, Program unit has one cursor,which contains Employee Id and Email Id, Based on Employee ID Report is generated in HTML Format.Next I am Calling VB Executable using HOST which Sends generated re

  • Urgent,pls help! java.lang.NullPointerException

    Dear all,   I'm doing a web dynpro app for creating the physical inventory doc for WM ( warehse mgmt ).. I haf a input field,storage type which is the be key in by the user. When i testing my application,if i type in any 3 digits number tat doesn't b