Charting Question: "Group By?"

Hi all,
I came across a problem yesterday that, so far, I have been
unable to solve. I'm wondering if I need to write my own handler.
Here goes.
I have a data set that looks like this:[
{name="y2005", value="1.2", otherName="Texas"},
{name="y2005", value="3", otherName="Ohio"},
{name="y2005, value="2", otherName="Hawaii"},
{name="y2006", value="1.2", otherName="Texas"},
{name="y2006", value="3", otherName="Ohio"},
{name="y2006, value="2", otherName="Hawaii"},
{name="y2007", value="1.2", otherName="Texas"},
{name="y2007", value="3", otherName="Ohio"},
{name="y2007, value="2", otherName="Hawaii"}].
I want to set my score value to be the yField and I want a
unique series for each name value, however I want all of the values
to be grouped by the otherName value. So in this instance, I would
see in my chart a 3 series group for the axis value of Texas, a 3
series grouping for Ohio, and a 3 series group for Hawaii.
I've already tried to use the categoryName property on the
horizontal axis, but I'm getting multiple "otherName" labels on my
horizontal axis. For example using this set, i would get Hawaii, 3
times on the axis, texas 3 times, and ohio 3 times, but the data is
charted on the last instance of the names.
Most data platforms have some kind of "group by" field, does
this extend to the Charting components??

"shawn.yale" <[email protected]> wrote in message
news:ggjjv8$kt6$[email protected]..
> Hi all,
> I came across a problem yesterday that, so far, I have
been unable to
> solve.
> I'm wondering if I need to write my own handler. Here
goes.
>
> I have a data set that looks like this:[
> {name="y2005", value="1.2", otherName="Texas"},
> {name="y2005", value="3", otherName="Ohio"},
> {name="y2005, value="2", otherName="Hawaii"},
> {name="y2006", value="1.2", otherName="Texas"},
> {name="y2006", value="3", otherName="Ohio"},
> {name="y2006, value="2", otherName="Hawaii"},
> {name="y2007", value="1.2", otherName="Texas"},
> {name="y2007", value="3", otherName="Ohio"},
> {name="y2007, value="2", otherName="Hawaii"}].
>
> I want to set my score value to be the yField and I want
a unique series
> for
> each name value, however I want all of the values to be
grouped by the
> otherName value. So in this instance, I would see in my
chart a 3 series
> group
> for the axis value of Texas, a 3 series grouping for
Ohio, and a 3 series
> group
> for Hawaii.
>
> I've already tried to use the categoryName property on
the horizontal
> axis,
> but I'm getting multiple "otherName" labels on my
horizontal axis. For
> example
> using this set, i would get Hawaii, 3 times on the axis,
texas 3 times,
> and
> ohio 3 times, but the data is charted on the last
instance of the names.
>
> Most data platforms have some kind of "group by" field,
does this extend
> to
> the Charting components??
Flex has the GroupingCollection, which you _could_ use in
this situation,
but you could also try something kind of like this:
http://flexdiary.blogspot.com/2008/08/charting-example.html

Similar Messages

  • Stacked chart with groups

    Hi
    I don't know whether this kind of chart is possible but perhaps someone can help me.
    I want to create a stacked chart with groups e.g. 6 sersies divided into two stacked bars (there are 2 bars per label, each stacked of three values)
    Does anyone know how can I do it?
    Regards

    Yes, but I want to have two bars (each stacked) per label (e.g. Jul-06).
      |    |  
      |____|  
      |    |   ____
      |    |  |    |
      |    |  |____|
      |____|  |    |
      |    |  |    |
      |    |  |____|
      |    |  |    |
      |    |  |    |
    -------------------||------------------||----------
       Jun-13                  Jul-13

  • I am using pages designing a flow chart, question "I seem to have an issue with the arrows that you can add text to, it appears I can not move the point of the arrows up or down they only switch from left to right.

    I am using pages designing a flow chart, question "I seem to have an issue with the arrows that you can add text to, it appears I can not move the point of the arrows up or down they only switch from left to right.

    Last point...who archives? On my regular email page I now have the Archive icon to the left of my Delete icon which I would prefer was to the left, first in the line as this is the icon I use mostly. With Folders, my Sent and Trash lists, who needs to archive?
    I can help you only with the placement of the icon placement -- if you right-mouse click on the toolbar, then select Customize Toolbar, you can move an icon to where you want it to be.

  • Derivation procedure where question group has no enterable fields

    I have a question group that has only 2 fields -> one field is derived and the field other is a non-enterable field with a default value. The field I'm trying to derive is adding the scores from a repeating question group within the same DCM. The problem is that the question group with the derived field needs to be the primary reference (it will not generate otherwise); however, since there are no enterable fields within this question group it is not recognizing any data as being entered and therefore will never derive. Is there a way to get around this? I hope I've explained my situation clearly. Thanks!

    I have a question group that has only 2 fields -> one field is derived and the field other is a non-enterable field with a default value. The field I'm trying to derive is adding the scores from a repeating question group within the same DCM. The problem is that the question group with the derived field needs to be the primary reference (it will not generate otherwise); however, since there are no enterable fields within this question group it is not recognizing any data as being entered and therefore will never derive. Is there a way to get around this? I hope I've explained my situation clearly. Thanks!

  • 2D Line Chart question

    I have Apex 3.1 . I have created a 2D Line chart with for different series (so there are 4 lines on one chart). I also have a Legend on the left side next to the chart to label whatr each line is for. In my query for those lines I have the Name for the Legend as all CAPS but it shows up as first letter capital and the rest lower case. Is there a way to force it to all upper case?
    The second question I have is that underneath the legend I would like to have some type of text box were I can write a couple lines to help explain what is going on in the graph. Is there a way to do that?

    You basically have only a couple of options here:
    First, turn off the labels and possibly turn them into Hints. They wouldn't show on the chart, but when the user held over the data point, a tool tip would appear showing them the valuable.
    Second, adjust elements of the chart. What you are really looking at here is that your data set is causing this specific issue and not the charting engine or anything like that. You could try to manually change the axis max and min to get more spacing, or you could adjust the height of the chart to get more spacing, but this may not be a viable option. You could have one set of labels above the plotted line and another set of labels below the plotted line that way the values do not overlap with anything. However, from a conceptual standpoint, it will be difficult to determine in code which line should have values above and which should have values below. When your data set changes, you may end up with labels in the wrong place if you hard code where they are at.
    The current XML reference can be found at: http://www.anychart.com/products/anychart/docs/xmlReference/index.html however, that is for anychart 5. I'm looking for the link to the earlier versions...
    You can use this to create custom xml where you can adjust the position of the labels.
    Finally, you do not want expand the height of the chart between two points on the Y axis. That would change the structure of the chart and the visual properties of the chart and the shape of the data would be askew. You cannot do this for good reason. You can though use a logrithmic scale. In most cases though, this is not a practical solution. Data sets need to have very specific characteristics in order to be able to merit a logrithmic scale. Most queries require a simple linear scale.
    Austin

  • Chart question with, I'm sure, a simple answer (That I can't seem to figure out). Fixed 'time frame' on time axis.

    Hello all.
    I'm using charts to record data coming from vibration sensors on a bearing testing rig.
    The problem I have (or rather the users have) is that the chart seems to only show a minute or so 'window' of data and it moves along through the day that way.  Adding a scrollbar on the axis helps, but doesn't give a real 'picture' of a specified time range.
    We'd like to have the time range of the chart be about 12 hours.  Is there a simple way in properties that you can set the chart to show 'last X amount of time'?  Or at least something greater than a minute!
    Thanks for bearing with me.  There seemed to be several posts sorta similar to this, but none really addressing the exact issue.
    Still confused after 8 years.

    Hi Ralph,
    > I'm really, really confused.
    Don't feel alone, this was not obvious to me either.
    Here is an example in LV 8.5
    You can set the log interval and the number of hours to be displayed.
    steve
    Help the forum when you get help. Click the "Solution?" icon on the reply that answers your
    question. Give "Kudos" to replies that help.
    Attachments:
    chart time.vi ‏20 KB

  • Pie chart question

    HI,
    I am trying to create a Pie chart report for the first time. How does one go about creating such report? I have looked everywhere, but have found no documentation on Pie charts.
    Also, will the following query work in pie chart:
    select null,
    resolution_type label,
    count(resolution_type) value
    from ht_issues
    where category = 'Help Desk Issue'
    group by null, resolution_type
    order by resolution_type
    Thanks,
    Wally

    Hi Vitaly,
    Yes, my problem is the query reurns a zero in the valur coumn and therefore displays in the chart as 0%
    Thanks,
    Wally

  • CFCHART - Line Chart Questions - CF7

    Hi Folks -
    I have a few questions about CFCHART in CF 7 and I am hoping
    that maybe different users can answer them:
    The following questions relate to creating a line chart.
    1) Is there a way to control the gridlines yourself, and not
    use the values for the lines that CFCHART presents?
    1A) If you have to accept the values that CFCHART gives you,
    is there a way to control the actual rounding of the values? Right
    now I am getting 3 decimal places, and I would prefer whole
    numbers.
    2) Is there an issue with displaying negative values? I have
    a chart that ranges from -255 to 100,000 and has 10 grid lines. But
    the -255 does not display. I get 0, the rest of the lines, except
    for the 9th line.
    <cfchart chartheight="300" chartwidth="450" font="@Arial
    Unicode MS" scalefrom="-255" scaleto="100000"
    gridlines="10" xaxistitle="Month" yaxistitle="Total"
    format="png" labelformat="number">
    <cfchartseries type="line" serieslabel="Review">
    <cfchartdata item="Jan" value="2569">
    <cfchartdata item="Feb" value="65535">
    <cfchartdata item="March" value="-57">
    <cfchartdata item="April" value="75778">
    <cfchartdata item="May" value="89955">
    <cfchartdata item="June" value="39898">
    <cfchartdata item="July" value="0">
    <cfchartdata item="August" value="12560">
    <cfchartdata item="Sept" value="-255">
    <cfchartdata item="Oct" value="767">
    <cfchartdata item="Nov" value="6868">
    <cfchartdata item="Dec" value="37352">
    </cfchartseries>
    </cfchart>
    Any and all questions and answers are appreciated.
    Thanks,
    Doug

    You can specify scaleFrom and scaleTo by hardoced values or
    dynamic variables and number of gridlines. If you not specified
    first two attributes, then by default, the minimum is 0 or the
    lowest negative chart data value, and the maximum is the largest
    data value.
    To avoid decimals in your case empirically find good
    combination for your scale, for example from - 500 to 10 000 and
    number of gridlines = 12.

  • Chart question

    This is probably pretty simple, but I haven't been able to find anything in the documentation on it: I am trying to do a chart that has 2 labels in it. (APEX 3.0). For example, I want to summarize data by (I work for a University) Term, Gender with the value of a distinct headcount.
    I have tried using the syntax: Select null link,
    decode(acsssd_rterm,'10','Fall','20','Spring','30','Summer','Other') label,
    decode(acsssd_gender,'01','Female','Male') label,
    count(distinct acsssd_studssn) value
    from acsssd
    where acsssd_ryear=:P1_RYEAR
    and acsssd_rtype='F'
    group by acsssd_rterm, acsssd_gender
    which works to an extent, but I don't get the counts broken up by gender, just a heading "Gender" with one bar. (this is an SVG chart...perhaps I am trying the wrong type?)
    TIA for any suggestions, corrections, or pointers to documentation.

    Debra,
    You can only have one label per value per series. So in your case, you should probably have two series, one for each gender.
    It should be easy with a Flash chart in 3.0:
    Select null link,
    decode(acsssd_rterm,'10','Fall','20','Spring','30','Summer','Other') label,
    sum(decode(acsssd_gender,'01',1,0)) "Female",
    sum(decode(acsssd_gender,'01',0,1)) "Male"
    from acsssd
    where acsssd_ryear=:P1_RYEAR
    and acsssd_rtype='F'
    group by acsssd_rterm
    For an SVG chart, just enter one query for each gender as separate series.
    Marco

  • Simple Flex Chart question - Plot Chart labels

    I'm playing around with displaying data from WDA as charts in Flex 3.
    I'm able to bind my internal table, which has 3 fields, to the plot chart.
    The table looks like this
    ext_id      type string    " bound to prjname in Flex
    cost         type string    " bound to prjcost in Flex
    benefit     type string    " bound to prjbenefit in Flex
    These are all bound to my island's DataSource.
    I have bound these in Flex and the Cost and Benefits are showing up as points on my chart. However, I can't seem to get the Project Name to display on the plot points. All I see when I mouse over the point is EXT_ID, and the values for cost and benefits.
    The cost/benefit values are coming across correctly, just not the project name (ext_id) value. any ideas?
    here's the Flex code for the chart
         [Bindable]
         public var dataSource:ArrayCollection;
         [Bindable]
         public var prjcost:String;
         [Bindable]
         public var prjbenefit:String;
         [Bindable]
         public var prjname:String;.
        <mx:PlotChart id="plotchart1" dataProvider="{dataSource}" showDataTips="true">
           <mx:series>
                <mx:PlotSeries displayName="{prjname}" yField="{prjcost}" xField="{prjbenefit}" dataProvider="/>
            </mx:series>
        </mx:PlotChart>

    This is really a Flex question not an Islands specific one.  I don't think the displayName properity is what you want to use here.  This is the name for the entire series as it will be displayed in the legend. I think what you want is a dataTip.  You register a callback for the dataTip rendering and then fill the custom dataTip quick info.
    This is an example from a bar chart, but the theory is the same:
    <mx:BarChart id="barChart" dataTipFunction="dtFunc" xmlns:mx="http://www.adobe.com/2006/mxml" type="clustered" width="100%" showDataTips="true" height="100%">
         <mx:verticalAxis>
              <mx:CategoryAxis categoryField="{SalesOrd}" dataProvider="{dataSource}" />
         </mx:verticalAxis>
         <mx:series>
              <mx:BarSeries id="bsGross" xField="{grossAmt}" displayName="Gross Amount" dataProvider="{dataSource}" fill="{otdFill}" showDataEffect="{slideIn}"  />
              <mx:BarSeries id="bsNet" xField="{netAmt}" displayName="Net Amount" dataProvider="{dataSource}" fill="{rtyFill}" showDataEffect="{zoomIn}"  />          
         </mx:series>
    </mx:BarChart>
    private function dtFunc(hd:HitData):String {
                  switch(BarSeries(hd.element).id){
                       case "bsGross":
                             return "Sales Order #: " +  hd.item.SO_ID + "\n" + FlashIsland.formatNumber(hd.item.TTL_GROSS_AMOUNT) + " " + hd.item.CURRENCY_CODE;                        
                             break;
                       case "bsNet":
                             return "Sales Order #: " +  hd.item.SO_ID + "\n " + FlashIsland.formatNumber(hd.item.TTL_NET_AMOUNT) + " " + hd.item.CURRENCY_CODE;
                             break;                   
                  return "Amount";

  • Quality Module Question: Grouping Defect Codes by Work Center

    Is it possible to group Defect Codes by Work Center?

    Welcome to the forum.
    Please post this question in the below forum
    [Forum: ERP Operations - Quality Management (QM)|SAP ERP Operations - Quality Management (SAP QM);
    thanks
    G. Lakshmipathi

  • Newb question - group by sequence number range

    Hi - I'm a newb to pl/sql but am pretty familiar with t-sql and sql server.
    Here's my question:
    I have a database table with ~1.6M records, call it "a". a has two columns, id (a sequence) and status. status has three possible values: null, error and success.
    I want to write a query that will group the sequence numbers into sets of 100k and give the the count of nulls, errors and successes for that set. The output should be something like:
    set null error success
    1-100,000 x y z
    100,001-200,000 x y z
    200,001-300,000 x y z
    Can anyone point me in the right direction?

    I scaled it down with a factor 1000, and here is the idea:
    SQL> create table a
      2  as
      3   select level id
      4        , decode(mod(level,3),1,'error',2,'success',null) status
      5     from dual
      6  connect by level <= 1600
      7  /
    Tabel is aangemaakt.
    SQL> select trunc((id-1)/100)*100 + 1 lb
      2       , trunc((id-1)/100)*100 + 100 ub
      3       , count(decode(status,'error',1)) err
      4       , count(decode(status,'success',1)) success
      5       , count(decode(status,null,1)) "NULL"
      6    from a
      7   group by trunc((id-1)/100)
      8  /
            LB         UB        ERR    SUCCESS       NULL
             1        100         34         33         33
           101        200         33         34         33
           201        300         33         33         34
           301        400         34         33         33
           401        500         33         34         33
           501        600         33         33         34
           601        700         34         33         33
           701        800         33         34         33
           801        900         33         33         34
           901       1000         34         33         33
          1001       1100         33         34         33
          1101       1200         33         33         34
          1201       1300         34         33         33
          1301       1400         33         34         33
          1401       1500         33         33         34
          1501       1600         34         33         33
    16 rijen zijn geselecteerd.Regards,
    Rob.

  • Urgent: Solaris newbie question: group permissions etc

    Hi
    I have a question on what is the best practice of working with solaris users and permissions. I'm using Solaris 10 and have created several users each with their home directory in /export/home. Then i have installed the sun webserver under /export/home/sun/webserver and i want all users to be able to use this, execute or copy over to the webserver.. would this be a valid solution or good practice solution tht i crete a group give it the permissions to read/write/execute and all the users i want to give this privilege to will be under this group. but then whats the use of having root like how would root user be different from the rest now...
    thanks...

    If you just want them to be able to publish to the web, apache has a little built in script in the httpd.conf that will hook in a user directory. Read the /etc/apache/httpd.conf file for more info.
    Whether this is best practice I am not sure. What you suggest will work but I would avoid it.

  • Crystal Report Chart Question

    I have created a line chart based on a report that has a Sum $ amount field. I also have a running total field for a "count" of records (ttl by year)  Year is currently a group.  Because it is a running total I am unable to include it in the chart and it is not working.  Can anyone help me figure out how I can count the number of records, per year, on my report and create a chart based on this information?
    Thank you.
    Karen

    Karen,
    As you have already grouped on Year you can include the count of records at the group level in group footer section for that year .
    Go to Insert Summary select ID or Which field you want the count on select count from the calculate this summary option .Summary Location select the group which is year in your case.
    Click OK so you get the record count for the years. then plot the chart accordingly.
    Cheers
    Rahul

  • Graphs/charts question

    Is there a way to make the classic graph or chart completely one colour, i.e. remove any embossed effects? If possible i would like to have been able to remove or paint black the lines shown in my attached png.  I’ve tried painting them but cant get them to vanish!
    Many thanks
    Attachments:
    Untitled.png ‏24 KB

    Here is a good resource, look at the video on recoloring graphs:
    http://https://decibel.ni.com/content/groups/ui/blog/2010/04/29/creating-quality-uis-with-ni-labview...
    "There is a God shaped vacuum in the heart of every man which cannot be filled by any created thing, but only by God, the Creator, made known through Jesus." - Blaise Pascal

Maybe you are looking for

  • Second page not triggering in SAP script

    plz help me in this too The code below is for two pages. Problem is that...My second page is not triggering. In the layout for Fist page attributes. page: FIRST next page: SECOND for second page attributes. page:SECOND next page: SECOND REPORT ZNEW1

  • No Sound on Satellite A105-S4201

    I recently lost all sound on my Satillite A105-S4201.  In Device Manager, under Sound and Video Devices, there are numerous yellow flags (too numerous to name here).  I attempted to install the device driver (Realtek HD) from the Toshiba Recovery CD

  • How to share some calendars or a part of the information with people doesn't use i-cloud

    Hi, I work with 20 people on different projects that are using different systems. To communicate some information of some calendars I use the view DAY, copy the list and paste the information in a e-mail. But the chronology of the dates is not respec

  • How do i get an app to download to ipod

    how do i get this game app to download to my son's ipod

  • How to handle select multiple input in struts

    I have a component <select name="weekdays" multiple="multiple"> What type of fiels weekdays shoul be in action form and how can I access selected options in action claa