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

Similar Messages

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

  • 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

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

  • 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";

  • Charts question / limitation?

    I have been tasked with pulling together a chart that conveys results of a customer satisfaction survey that contains 6 questions.  Each question has a measurement score on each of 1 to 5.
    What I am trying to do is for each question, I want to stack the bars, and show all questions.
    The chart above is only an example. What I need the chart to look like is outlined below.
    Title  - Survey Results - I know how to change titles and labels.
    X - Axis - want each question to be a stacked bar, I know how to add the label value for each color and change the label.
    I can get as far as showing the correct scores for one set of survey results, but it appears that CR has a limit of two items for the top "On Change Of"
    items.  I am only needing to use the items that are numbered 1-3
    Can what I am attempting be done in CR 2011?
    Glen

    Hi Rudolf,
    What you could do is pass the array which you feed to the graph via the array subset function and control the index and length to limit the number of stacked displays.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Tricky Stacked Bar Chart Question

    This question is written as clearly as I could think to write it. It's a bit bewildering, but I'd really appreciate if you could take the time to think about how I can do this!
    I have data like so:
    Column 1: X-axis labels (People's names),
    Column 2: Units Type 1,
    Column 3: $Amount Type 1,
    Column 4: Units Type 2,
    Column 5: $Amount Type 2
    3 Rows each start with a person's name (the X-axis label), followed by their data corresponding to the above columns.
    I want to make a total of 6 stacked bars:
    Units Type 1 and $Amount Type 1, for each of the three people. Then,
    Stacked on top, Type 2 Units on Type 1 Units and Type 2 $Amount on Type 1 $Amount (for their respective people).
    Units are between 0 and 100 and $Amounts are between $0 and $1,000,000.
    Is it possible to set 2 y-axis scales on the same chart?
    How can I set which columns are stacked on what?
    If it's impossible, just say so. That will help too!
    Thanks again,
    Mike

    Here is a suggestion.
    It requires three superposed charts.
    Chart 2 and Chart 3 have a transparent background.
    Only Chart 2 display X axis values.
    Only chart 1 display Y axis values
    The Y axis values for Units are inserted by hand in a text block.
    Yvan KOENIG (from FRANCE vendredi 5 décembre 2008 10:53:07)

  • Charting question

    Post Author: elooto
    CA Forum: Charts and Graphs
    I've only just started using Crystal Reports and I have a question on charting.
    I want to chart sales data. The Crystal Reports Wizard allows me to chart total company sales and then drill down to division, region etc.
    The problem I have is that I don't want to chart absolute sales values, but YoY%. Unfortunately although I can see how you set up formulae in Crystal I cannot see how I can set up a drill down report on this!
    Any help on this would be greatly appreciated.

    Post Author: V361
    CA Forum: Charts and Graphs
    Could you provide an example, ie... what you are getting, what you would like to get, or some sample data, and the setup of your chart.

  • 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

  • Stacked Bar Chart Question

    Hi, I am creating a stacked bar chart, and I am encountering 3 issues I hope you can help me with:
    1)  The chart has positive and negative values.  I have zero based centerline checked, but I do not see 0 on the Y axis.
    2)  The applet width is 900 pixels.  The chart can have a variable number of bars.  When it has a small number of bars, they fill the entire chart.  Is there a way to set the width to a fixed amount?
    3)  Is there a way to set a logical interval amount?  Currently the numbering is not intuitive.
    Thanks
    p.s.  We are using 11.5.3
    Edited by: Richard Keegan on Jun 13, 2008 5:18 PM

    Depending upon your query structure, you can force a zero based centerline by setting the Y-axis ranges dynamically.  I am not working in 11.5.3 currently, but ran into a problem with line charts in 12.0.2.  The zero centerline flag did not work, so I dynamically generated the ranges and linked them in.
    You can probably do the same with a little extra BLS coding.
    Mike

  • FR Chart Question: How to display % next to numbers?

    Hi FRville residents,
    I am building a report that is mapped to the Actual/Budget column. In the Grid, I added % sign through FR formatting. When I map this column in my chart, and display the value, the chart shows values only. For example let say for Region 1, Actual/Budget is 50%. My chart is showing 50.
    Is there any way to add the % sign in front of the numbers in charts?
    Thanks,
    A

    Hello!
    I know how to set headers and subheaders for charts and I did it.
    I want to show values of "DATA FIELDS" in pie chart. And also want to hide text "Sum ORDERS.ORDER_AMOUNT" which has been created automatically.
    P.S. I'm working with CR4Eclipse 2.0
    regards, Lev

  • Line chart question

    I have AW 6. I want to make a color line graph (chart) of some temperature data. The Y axis will be the temperature and the X axis will be the date for a month. So it is a simple temperature vs. date line graph. There will be two sets of data placed on this graph - the maximum temperature for the day and the minimum temperature for that same day for each of the days of the month. Therefore two lines will appear on the chart - Max line and Min line. I have been doing this for years and somehow must have formatted to show the Max line in red and the Min line in blue which makes sense. The data for the graph have been taken from a table showing three columns in the order date, max temp, min temp. However, recently most weather data has been reversed showing the lowest (min) temp for the day first since this occurs in the early morning hours of the day so I have decided to go along with this new trend and now have my table in the order date, min temp, max temp. However, now that I have reversed the order, the min temp line appears in red and the max temp line appears in blue. How do I change the colors to the logical blue for min and red for max. I must be missing something very simple here and have checked all the chart options but must be a bit blind or something.

    levlvl wrote:
    How do I change the colors to the logical blue for min and red for max?
    Make sure you have displayed the legend for the chart, and that you have the Tools showing.
    Click on the coloured square for Max in the chart's legend, then click the Pen button in the Tools, then choose the pen colour from the Color palette in the Tools. Click the square for Min and again choose the new Min colour from the palette.
    To change the colour of the data points, double click the coloured square in the chart's legend, then click the coloured square beside "Symbol" in the Char Options (Series) dialogue that opens. That will open a Color palette from which you can choose the same colour as you've set for the line. Use the pop up menu "Edit series:" to switch to the Min series and repeat.
    Regards,
    Barry

  • Line chart question (lines are not connected)

    I have a simply report which basically counts the data by Month and Type. So I have 3 columns: Month, Type, Count (count column has a formula). Then I created a line chart. For some month, some type, there is no data. I noticed in those scenarios, the lines in the chart becomes disconnected. For example, let's say I have Jan, Feb, March, April. There is a type called "User Error". For this type, Jan has 10, Feb has 4, March has no data. April has 4. In the chart, I have month on x-axis. Count on Y-axis. Type is the data stream. So for this type, the line goes from Jan to Feb. It disappears for March and then reappears as a dot for April.
    The line looks like ugly. I would like to have a continuous line. So for March, the line should go to 0 on the Y-axis.
    Does anyone have a suggestion how to do this?

    Hi,
    I think you can solve this with a case statement in the count column:
    CASE
    WHEN "column formula" IS NULL
    THEN 0
    ELSE "column formula"
    END
    Hope this works for you.
    Regards, Tim

  • 2 Keynote chart questions

    I'm trying to build a series of 14 different data charts in Keynote. I'm having problems creating two...
    Chart 1 (Line-format): This is for "Average Time" spent on a helpdesk call. For the Y-axis, I can't figure out a way to input data in a Minute:Second format (the X-axis is the months of the year).
    For example:
    Jan - 5:32
    Feb - 6:38
    Mar - 2:43, etc.
    Chart 2 (Column-format): Ideally, I'd like to compare two different data types on a single chart. This for "Server Availability"... the X-axis are the months, with the left-side Y-axis being % of availability, and the right-side Y-axis featuring number of hours unavailable.
    For example:
    Jan: 99.77% availability/1.68 hours unavailable
    Feb: 99.62% availability/2.77 hours unavailable
    Mar: 99.70% availability/2.19 hours unavailable, etc.
    Thoughts?, Thanks!
    Dual 2 Ghz PowerPC G5   Mac OS X (10.4.8)  

    Welcome to the discussions, Unisphere.
    Keynote's charting abilities are relatively rudimentary, and I don't believe it can handle either of the two chart types you want. Your best bet is to do up the charts in another application and paste them in. A post on another thread mentioned the freeware application Plot, which will definitely do two Y-axes plots, and may be able to handle time-based plots as well -- this might be a simple solution.

  • Stock chart question

    Hi,
    I have created a stock chart with a bar chart of Open,High,Low,Close data.
    Can I add my buy sell signals data into it? e.g. I have data for past 60 days, I want to show when and at what price I bought and
    at what price I sold the data.
    My input is a text file seperated by commas of the format
    Date, Open, High, Low, Close, Buy price, Sell price
    I have one solution where I have the basic stock chart and I have overlapped a line chart with the Buy sell lines on top of it.
    The Buy-Sell line chart has a transparent background.
    But I was hoping that crystal reports will have a better solution.
    Regards,
    Sachin

    Alun,
    Thanks.
    Sorry for not writing earlier.
    This is a single text file so I do not need to join.
    The problem is more with the charting capability of crystal reports.
    The Stock chart does not seem to be flexible to add my buy and sell signals and I was wondering if
    it is because I am not aware of some additional feature of the charting tool.
    The stock chart as selected from the crystal reports GUI only allows for Open, High, Low, Close values to be the input to the chart, I was hoping that there might be some advanced features that will allow the Buy, sell dots on the same chart.
    Regards,
    Sachin
    Edited by: srkeam on Nov 30, 2011 6:40 PM

Maybe you are looking for

  • My iPod Touch attempts to reboot, but shuts-off, creating a repetitive process...?

    About a week ago, I was browsing on safari on my 4th generation ipod touch and all of a sudden, the screen froze for a couple of seconds and soon the screen went complete black (you can tell the ipod was still on) and then the apple sign comes up as

  • Recover data from failed hard drive?

    Hi, My hard drive failed recently and wouldn't boot up anymore. Since then, I replaced the drive and bought an IDE to USB adapter to try and recover some of the data on the drive. But when I plug in the adapter to my computer, a message comes up sayi

  • No music when i burn my slide show to dvd in idvd

    I selected the share to burn I slide show. This opened the idvd and transfered the info to it. I was able to burn a dvd, but the music did not transfer. I am not able to open and edit the drop box to add music. I dont know what to try. Thanks.

  • Safari PDF disable option?

    I'm using a fairly old mac (G4 466Mhz) and it takes waaaay too long to have pdf's open in the browser. Is there a way to disable this pdf viewing in Safari? I know about option clicking files to start downloading them instead, but you don't always ha

  • Planning book design for Demand planning

    Dear Experts, I am in the phase of design planning book for example 20 Finished products 20 Semi finished products 5   planners 100 customer Forecast is done on the basis of  product, customer , plant and storage location For the above scenario how m