Resource Gantt Chart with Multiple Series (Apex 4.1.1)

Hi,
I am building a resource gantt and I want to show different types of entry in different colours.
My series query is:
select null,
time_record_id,
username,
null,
to_timestamp(to_char(event_date + (start_time/24),'YYYY-MM-DD HH24:MI'),'YYYY-MM-DD HH24:MI') start_date,
to_timestamp(to_char(event_date + (end_time /24),'YYYY-MM-DD HH24:MI'),'YYYY-MM-DD HH24:MI') end_date
from
oly_time_record
where
work_code = 'OFFICE'
order by 5, 3;which works well to show me the times when a user is going to be in the OFFICE.
I now want to add additional bars to the chart that shows me the times that a user is going to be 'WORKFROMHOME'.
The 'OFFICE' time should show Green bars and the 'WORKFROMHOME' should show Red Bars.
This is quite easy on normal charts, where you can add extra series but the Resource Gantt does not seem to allow more than one series.
Does anyone have any ideas about how I can get what I need?
Thanks,
Martin

Hi Martin,
there are a lot of examples of gantt charts in this forum.
Take a look here:
http://apex.oracle.com/pls/apex/f?p=36648:60
Markus

Similar Messages

  • Line Chart with Multiple Series

    Post Author: JayZee
    CA Forum: Charts and Graphs
    HI
    I am trying to create a line chart with multiple series for trend analysis on CR XI but not having much luck, I thought it would be so simple to do!
    My data is provided summarized on the server and is returned as 12 rows:
    Month       Year1        Year2      Year3      Year4     Year5January      100           80          75           90          120February      85           25           40           25          80etc for the rest of the months
    My problem is that I can only get the chart to accept the values to display as a summary and not just as the data pulled back from the server.  I have read an article on the support site for Crystal 6.0  but it doesn't seem to translate well into XI.
    If necessary I could redesign the table to bring back un-summarized data but that is quite a big job.
    Any help greatly appreciated.
    Jay

    Post Author: Tim Wise
    CA Forum: Charts and Graphs
    In the chart expert, put Month in the 'On change of' box and put each year in the 'Show values' box. This puts the month on the x-axis and plots each year as a line.
    Is that what you want?
    I did this in CR 2008 using your data in an Excel sheet.

  • Steps to create Resource gantt chart with hourly ranges

    Does anyone have an example of how to customize the default built APEX/Anychart resource gantt charts to handle a 12 hour range showing resources? I have tried going through a sample provided by anychart tech support, but the xml file seems to have different set of entries.
    What I have is a set of rows for resources in a shop over a 12 hr shift that I need to show. I have a standard resource gannt working, but I need to customize some of the xml settings to see the date/time ranges..
    Any help would be a blessing!!
    Thank you,
    Tony Miller
    Webster, TX

    I could post it up on Oracle's hosted site, but I am NOT seeing much help where ever it is located.. I also believe in helping up here because I can and It helps me....
    Thank you,
    Tony Miller
    Webster, TX
    On the road of life...There are 'windshields', and there are 'bugs'
    (splat!)
    "Squeegees Wanted"
    If this question is answered, please mark the thread as closed and assign points where earned..

  • Defining a scatter chart with multiple series

    I am trying to create a scatter chart with two series.  I am using CR8.5 and CR2008.
    I am having difficulty with my data being presented correctly when I attempt to define the scatter chart.  The data is temperature and weather use/sqft for two different years.
    Year Period Temp Energy Use/sqft      Year Period Temp Energy Use/sqft
    2012 1/2012  52  3.7172               2013 1/2013  52  3.1712
    2012 2/2012  62  3.7015               2013 2/2013  57  3.1449
    2012 3/2012  70  3.7937               2013 3/2013  63  3.2039
    2012 4/2012  76  3.9882               2013 4/2013  71  3.4551
    2012 5/2012  82  4.2213               2013 5/2013  81  3.9903
    2012 6/2012  87  4.4875               2013 6/2013  85  4.3650
    2012 7/2012  90  4.4727               2013 7/2013  87  4.2072
    2012 8/2012  86  4.6154               2013 8/2013  87  4.2560
    I would expect to see something similar to the attached images of an excel files scatter chart.  When I defined the scatter chart in Crystal Report, I need to define a field for 'On change of', and 2 'Values to show'.
    I understand that this would not show the expected scatter chart but I went this direction as the series is to be the year.
    On change of:
    - Year
    Show values:
    - Temp
    - Energy Use/Sqft
    Problem is the sum of both is being shown. I am trying to keep the series together by year and showing each record as retrieved from the database.
    Thank you,
    Jim

    You can try using this charting tool for generating scatter charts:
    http://htmldb.oracle.com/pls/otn/f?p=31517:58
    Denes Kubicek

  • Stacked Bar Chart with Multiple Series Sort Question

    Hi,
    Apex version 4.1.1
    I have a stacked bar chart with three separate series, one showing customer effort, another showing project effort and the third showing other effort, summarized by calendar week. The x-axis of the chart is the calendar "week of" date, and the y-axis has a bar for each of the three series. Not every type of effort occurs every week.
    When AnyChart renders the chart, the order of entries on the x-axis seems to be dependent both on which series are present in a given week as well as the "week of" date. Weeks with all three series sort in order by calendar date, followed by weeks where just the 2nd & 3rd series are present, followed by weeks where just the 3rd series is present. See this [url http://tinypic.com/r/b9zdt/6] picture of the chart  noting the "week of" dates. Note that the months go Sep-Oct-Nov-Aug-Oct.
    Is there a way to force AnyChart to sort the x-axis in chronological order regardless of whether there is data for all three series for a given week? I have looked through the AnyChart XML reference but cannot find a way to do this.
    Incidentally, I can solve the sorting problem by combining all three series into a single query:
    select
      null as link,
      week_of as label,
      sum(customer_effort) as "Customer Effort",
      sum(project_effort) as "Project Effort",
      sum(other_effort) as "Training, Admin and Other Effort"
    from ...But if I do this, I cannot figure out how to have each bar on a given week link to a different detail page, e.g., if I click on a bar representing customer effort I want to link to one page, but if I click on a bar representing project effort, I want to link to a different page. I have had a look at the [url http://apex.oracle.com/pls/apex/f?p=36648:59:1570983160946101::NO:::] chart examples  posted on apex.oracle.com, but cannot figure out how to apply to multiple series in a single query.
    Thanks,
    Mike

    Thanks, Jeff. I did try this but for whatever reason it doesn't make a difference. I think it is because if there's no data for a given series for a certain week, there is no entry in the data set that is sent to AnyChart.
    I was able to get around the issue by "filling in" the missing weeks from each data series. To generate the list of "Week Of" dates for a given date range, I used this code:
    select
         trunc (each_day) as week_of,
         0 as effort
    from (
         select
              (to_date(:p920_start_date,:app_date_format) + 2 - to_char(to_date(:p920_start_date,:app_date_format),'D') - 1) + level each_day
         from dual
         connect by level <= to_date(:p920_end_date,:app_date_format) - to_date(:p920_start_date,:app_date_format) + 1
    where
         to_char (each_day, 'D') = '2'This creates an effort entry of 0 for each week within the date range; I use the Monday date of a week as the "Week Of" date. I then union this with my actual data and summarize by week and viola, I get the weeks in order. This also has the benefit of showing a week for which there are no entries in any of the three series.
    Thanks for taking a look at this.
    Mike

  • AreaChart : Customizing HorizontalAxis of a chart with Multiple Series

    Hi there,
    My area chart has 5 series which has same x_value while different y values and a value which i want to show as label.
    all series have dataProvider with following object
    {x: x_value, y:y_value, l:label_value} 
    series xField is using "x" which is also showing values from x at x-xis (horizontal) axis.
    My problem is
    I want to use same xField=x but i want to show "l" as label values.
    How can i do that?
    I tried using a LinearRenderer on horizontal axis and provided a custom label function, but i only get "x" value and NOT "l" to show label.
    Thanks

    I wasn't able to do something like what you describe, but I was able to do this:
    I defined column A of the table as a Header Row, selected the cells in the table, and chose this chart type (2D 2 Axis):
    Then I clicked the chart and in the pane at the right checked 'Axis Name' in the Axis tab and added the axis names.
    Maybe this can give you an idea of how you can illustrate the relationships that you want to show.
    SG

  • Chart with multiple series (SQL?)

    Hello everyone,
    I have an sql question relating to flash charts in APEX 3.
    I have a table "TREND" that has data like this :-
    WEEK LOCN COST
    ===== ==== =====
    45........A......10
    46........A......12
    47........A......15
    45........B......18
    46........B......16
    47........B......11
    45........C......13
    46........C......14
    47........C......10
    How do I create an sql statement that can compile multiple values for a chart at runtime. In other words I want a chart that can show three LOCN lines (A,B and C) over the WEEKs (x axis) in the table.
    Using the standard chart source only gives one value on the chart ..........
    SELECT NULL link, LOCN label, COST value FROM TREND
    I need something like this ..........
    SELECT link, label, value1, value2, value3 FROM TREND
    But I don't know how to transpose my data into that format, can anyone help ?
    I need my data to look like this I think :-
    WEEK A B C
    ===== == == ==
    45....10.18.13
    46....12.16.14
    47....15.11.10
    Thanks,
    Jack.

    Hi Jack,
    you have 2 possibilities.
    1) You can create 3 distinct series sql statements (with the "Add Series" button) where you restrict the query to LOCN. Disadvantage: The table is scanned 3 times.
    2) You can create just one series where the distinct series values are mapped to columns. eg:
    SELECT NULL AS LINK
         , WEEK AS LABEL
         , SUM(DECODE(LOCN, 'A', COST, 0)) AS A
         , SUM(DECODE(LOCN, 'B', COST, 0)) AS B
         , SUM(DECODE(LOCN, 'C', COST, 0)) AS C    
      FROM TREND
    GROUP BY WEEKAdvantage: Table is just scanned once.
    Patrick
    My APEX Blog: http://inside-apex.blogspot.com
    The ApexLib Framework: http://apexlib.sourceforge.net
    The APEX Builder Plugin: http://sourceforge.net/projects/apexplugin/

  • Candlestick chart problem with multiple series

    Hello,
    I added one mx:CandlestickSeries object and couple additional
    mx:LineSeries objects to the chart. All series are represented but
    still I have one problem. More series I add - less candles are
    becoming of CandlestickSeries data. It seems that there should be
    any scaling option for all series in the chart or something like
    this, but I cannot find it. I'm still new in Flex Can anyone halp
    me with this?
    Thanx in advance
    marukas

    I've added screenshots to get better view of the problem.
    Here is chart with addtional series:
    Chart
    with multiple series
    And here nothing is changed except that additional line
    series were removed:
    Chart
    with only one CandlestickSeries
    Is it possible to get the same candles as in 2nd view with
    addiotnal series added?

  • Gantt Charts with APEX

    Hello
    Has anybody managed to integrate Gantt Charts with APEX and got them working. I'm required to provide some similar reports.
    I understand Gantt charts are available in AnyCharts 5 but I need the XML to convert or at least a How To Do document.
    Any any other ideas would be appreciated.
    Cheers
    Ade

    Hi Ade,
    We have built an Anychart Integration Kit for APEX, if you take a look at -
    http://anychart.apex-evangelists.com
    and specifically -
    http://anychart.apex-evangelists.com/pls/apex/f?p=454:14:0:
    You'll see that anything is possible ;)
    We've concentrated on the core Anychart Functionality in the Integration Kit and will be releasing more powerful versions shortly.
    Hope this helps,
    John.
    Blog: http://jes.blogs.shellprompt.net
    Work: http://www.apex-evangelists.com
    Author of Pro Application Express: http://tinyurl.com/3gu7cd
    REWARDS: Please remember to mark helpful or correct posts on the forum, not just for my answers but for everyone!

  • Flash line chart with multiple lines

    Here a newbie with apex...
    Created a flash line chart with as source the following sql statement:
    select null link, year, sum(total_cost) from cost
    group by year
    a chart has been created with a single line. i wanted every year on an own line.
    The way i could do this is with multiple series like:
    select null link, year, sum(total_cost) from cost
    where year =2008
    select null link, year, sum(total_cost) from cost
    where year =2009
    But this not a good solition, cause now i've to add every year a new serie
    hope to get some help from here... txn in advanced.

    tnx for your reply...
    I will explain myself more by a picture of the wanted result, see below:
    [Click here for the example image|http://img44.imageshack.us/img44/3444/grapha.jpg]
    In your reply you wright you think i can create the graph with pl/sql process. After seeing my example you still think that's needed?
    Hope you or some else can help... tnx in advanced.
    greetings

  • Setting Custom XML = Yes in resource gantt chart removes start & end dates

    I'm having a strange issue with a Resource Gantt chart in Apex 4.0.2.
    I built the chart using the Wizard and changed nothing from the defaults. Everything looks/acts fine on the chart when Use Custom XML = No. But I wanted to change a couple things like cell alignment and width, so I set this to Yes and modified the column attributes in the XML code. After doing so, when running the report, the values for Start Date and End Date are not showing. This is happening in both the datagrid and the tooltips, but the timeline is still showing the right information (ie a bar from start to end), so I know it still knows what the correct start and end dates are.
    Thinking I accidentally messed something up, I deleted the chart and recreated it (again, from the wizard). This time, I went back and only set Use Custom XML = Yes but did not change anything within the XML code itself. To my surprise, the dates were still missing. If I set it back to No then they reappear.
    Has anyone seen this before and/or know a way to fix it?
    Thanks,
    ~ John

    Hej John,
    APEX itself is using a field substitution "&DATE_FORMAT." to insert the date format into the XML file. This field substituion is used in may location in the default XML. APEX standard action is to substitute it with the value specified in the Gantt Setting "Date Format". This substitution takes place many places in the default XML file.
    Enabling custum XLM also means disabling APEX XML handling, the substitution does not take place, the "&DATE_FORMAT." contains in this case a null value.
    The default XML file, which can be viewed in apex developer mode, looks like:
    Start Date: {%ActualStart}{dateTimeFormat:&DATE_FORMAT.}
    The runtime XML, which can be viewed in debug mode, contains something like:
    Start Date: {2011.07.21 00:00:00}{dateTimeFormat:}
    ...a null value is not a valid AnaGantt date format.
    Two solutions:
    a) insert a correct AnyGannt date formatter in the custom XML like
    Start Date: {%ActualStart}{dateTimeFormat%YYYY.%MM.%dd %HH:%mm:%SS}
    or
    b) create a field DATE_FORMAT on page containg the chart and intialize it with the AnyGantt date formatter like %YYYY.%MM.%dd %HH:%mm:%SS".
    When running the page the substitution will take place usually.
    Regards,
    Benny

  • "Scatter" Chart with Multiple Values per Date

    APEX Gurus,
    I need to plot a chart with multiple y-axis values along the x-axis.
    Here's an example:
    X-Axis (Date) Y-Axis (Number)
    1-JAN-07 1
    1-JAN-07 2
    1-JAN-07 3
    2-JAN-07 1
    2-JAN-07 2
    3-JAN-07 1
    Right now, APEX displays the X-axis (Date) as separate values on the x-axis. But I want all three 1-JAN-07 values to line up vertically under x-axis. I am currently using a line chart for this. And it displays a "dot" for each value (depending on my max rows value).
    Any insight would be much appreciated! And thanks in advance!
    Susan

    You can try using this charting tool for generating scatter charts:
    http://htmldb.oracle.com/pls/otn/f?p=31517:58
    Denes Kubicek

  • Is it currently possible to create a doughnut chart with multiple concentric circles in SSRS?

    Is there currently any way to create a 'doughnut' chart with multiple concentric circles in an SSRS report (any version), without using 3rd party tools?
    Something like this, perhaps?
    (For that matter is it possible to create this using JavaScript?  It's my understanding that this image was originally created in a web app using JavaScript.  So far I've not been able to pin down the details.  I've found hints that JavaScript
    can be used in SSRS reports but so far no clear working examples.)

    Hi B.Chernick,
    According to your description, you want to create a create a doughnut chart with multiple concentric circles in your report. Right?
    In Reporting Services, we only have doughnut chart with one concentric circle. All the category group is in that concentric circle. Though we can embed javascript injection in expression, it only give the css style to values or report
    items which can change the looking. It can't change the structure of the report items itself. So your requirement can't be achieved current.
    For your requirement, we suggest you provide Microsoft a feature request at
    https://connect.microsoft.com/SQLServer
    so that we may try to expand the product features based on your needs.
    If you have any question, please feel free to ask.
    Best Regards,
    Simon Hou

  • How to build a gantt chart with BI Publisher

    Hi everybody, I need to create a gantt chart with BI Publisher. I had a look to the document "Getting Gantty" from the blog:
    http://blogs.oracle.com/xmlpublisher/2008/01/getting_gantty.html
    but I don't understand in which way:
    1. build the data template in order to replicate the XML code in the article
    2. build and link the yellow bar which dynamically increases its length according to the meeting duration
    Anybody already tried to implement something similar ? I didn't still found a real example about how to do it......
    I need a help, please
    Thanks in Advance
    Alex

    Yes that is the only option which we can stop a running report in BI Publisher
    I suspect you'll need to ask your DBA to kill the session.
    However, if you have DBA privileges yourself, you can do this by a few methods, some of which are described here:
    http://www.oracle-base.com/articles/misc/KillingOracleSessions.php
    Mark if helps,
    Thanks,

  • Creating SVG Chart with multiple lines

    Hi All,
    I want to create a chart with multiple lines.
    Ex: I have one emp table with empno, sal and deptno columns.
    I want to print deptno in x axis and no of employees on y axis.
    I want to print one line for employees with sal > 15000 and one more line for employee with sal =< 15000
    So one line will show no of employees with sal more than 15000 for each dept. Similar case for the other line and these 2 lines should be in different colors.
    For one line the query will go as
    select link, deptno, count(empno)
    from emp where sal > 15000 group by null, deptno
    Is this possible to draw this chart?
    Thanks,
    Manoj

    I wasn't able to do something like what you describe, but I was able to do this:
    I defined column A of the table as a Header Row, selected the cells in the table, and chose this chart type (2D 2 Axis):
    Then I clicked the chart and in the pane at the right checked 'Axis Name' in the Axis tab and added the axis names.
    Maybe this can give you an idea of how you can illustrate the relationships that you want to show.
    SG

Maybe you are looking for