SVG Linecharts with Multiple Series

I've been trying to get multiple lines/series on a linechart. I have a query which works okay to get the first series. A slightly different query (or the same query, even) makes it barf and give me an error. I'm using HTMLDB 1.6
What's especially irritating is that there's next to no documentation for this thing. The manual and the how-tos give a couple small examples for various types of charts. It's never revealed anywhere what kind of query it's looking for in every type of chart, and the vague error messages and the neat-nonexistant documentation don't help in the slightest. Does anybody here really use this thing for actual development?
Sorry. Frustration aside, is there anybody who has managed to get this to work? I've been trying to get it to work for a few days now, as has a co-worker, and I'm getting nowhere. I might go and try it on my HTMLDB 2.0 demo account and see if maybe this kind of thing is fixed or at least better explained.
Message was edited by:
DanGrover

Dan,
I used line charts to show trends in report usage in an application I support. Basically the line chart can have multiple series (lines) on it. Each series has a unique query. All series queries are of the form:
SELECT link, label, value FROM table
- 'link' is an URL used for drill down. This could be another page in your application with a details report. When the user clicks on the line for the series, HTML DB takes a branch to this link.
- 'label' is the value for the x-axis. In my case this was a month of the year.
- 'value' is a numeric value to be plotted on the y-axis.
For example if you had a STOCK_QUOTES table the series query to track how Oracle's stock is doing would be:
SELECT NULL link, closing_date label, price value
FROM stocks
WHERE symbol = 'ORCL'
If you wanted to track other software companies stock on the same chart, just add another series changing the literal 'ORCL' to some other value.
Note: if you have more than 15 rows in your series query, make sure you increase the 'Maximum Rows' for the series to an appropriate value.
I hope this helps,
Mike

Similar Messages

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

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

  • 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

  • 3D columns graph with multiple series

    I need to obtain a graph like below.
    I want to insert other series into Y axis. It's possible?
    thank you.
    Daniele.b75

    Hi,
    Yes, there is no build-in chart template that you want. We can only use the Gradient fill to close your request. But, it can't display the multiple series in cumulates chart.
    In my view,
    custom a chart via VBA is also a good workaround. I'm not familiar with VBA, if you have further question, I recommend you post the question to the MSDN forum for Excel
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=exceldev&filter=alltypes&sort=lastpostdesc
    Hope it's helpful.
    Regards,
    George Zhao
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Flash chart performance issue with multiple series

    Hi,
    We have a problem with the performace of a line graph which has multiple series.
    I have set up an example application here:
    http://apex.oracle.com/pls/apex/f?p=37504:1
    The application contains two charts. The 'Mulltiple Series' chart has twelve series behind it and allows the user to include mutiple series data. The other chart has just one series.
    The single series chart takes only a couple of seconds to render, however the mutiple series chart takes around 10 seconds even when no additional series have been selected. Using Firebug I have observed that the apex_util.flash procedure is taking around 8 seconds to generate the XML, and it includes null data values for the series that aren't selected.
    My question is how can I make each series conditional, such that no data is included in the XML if the series returns no rows?
    Thanks,
    Andrew

    Hi Andrew
    Have you considered modifying your chart to use a series with the "Query source type" of "Function returning SQL Query"
    Have a look at
    Re: Flash chart - multiple series - no display when some series empty
    My response on that thread may help. I'd be interested to know if this approach improves the performance.
    Kind regards
    Simon Gadd

  • Bar Graph with multiple series

    I am trying to created some graphs in 10g reports. I want a graph that has 2 bars per group. On the layout tab I have column A and Column B on the bars line and Column C on the groups line. When I run the report Columns A and B show up as 1 bar on the graph. Where do you specify the values for series 1 and series 2?

    Hi,
    When you create a bar chart using a "group by" attribute, the resulting groups are displayed as stacked bars or as dual Y bars (shows the groups side by side).  The button in the chart's toolbar (with stacked bar chart icon) is used to change this presentation. You can display the data as it is, without aggregation, by using the line or scatter charts.  The line/scatter graphs should allow you to display multiple Y values (series), but there appears to be a bug that causes a single line to be displayed instead.  Multiple series bar charts and label renaming are not available in the current release.
    Thanks,
    Marat

  • XY Scatter with multiple series: how to?

    Post Author: Dac
    CA Forum: Charts and Graphs
    Hi all,
    I want to represent multiple series of points in a XY chart - seems like a common thing to do - but i did not succeded in CRXI & Scatter chart.
    I've tried with these in the Data settings:
    Show value(s): put the 2 fields for X and Y axis
    Then selected 'On change of' and here was put the GroupBy field.
    The problem is that these settings summarize the X and Y values for all identical values from 'On change of' field. So i got just 1 point per seria...
    Then I saw somebody used an additional field for the 'On change of' - an unique field for every record (a formula RecordCount field) - so the grouping is done per record, then comes the CR warning that the data is not suitable for this type of chart, force and select Continue and the resutl is still not ok: it plots nothing or just 1 point. Though that user got the expected results.
    I've searched this site, googled - and found nothing that works.
    I still have hope this can be done - seems like a common thing for charting...
    Thank you

    Post Author: Dac
    CA Forum: Charts and Graphs
    thank you so much for the response and help!
    i've done the settings you said - it really makes sense what you saind in the message -  but still nothing is drawn on the chart.
    see the screen shot of all the settings and table data
    also there comes that warning CR message which i disregard and continue - but still does not work fine...
    any other suggestions? I still have hope for a solution

  • 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

  • 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

  • Problem with Multiple Series - CFCHART

    Using CF9, trying to create a simple chart with two series.  Problem is that when there are no values, CFCHART draws a line but with values of "0".
    The first series is a set of monthly values (12 values) one for each month in 2011. The second series are also monthly values, but for 2012 YTD (Jan thru May 2012).  Range for all values is between 90 and 100, so I have it set to "scale" so you can see if year-over-year is better or worse. 
    Am trying to plot Series 1 (2011) on one line, and Series 2 on a second line.  This allows comparison of year-over-year results.  Have two QofQ, one that contains the twelve 2011 values, and one that contains the five 2012 monthly values.  X-Axis values are numbers (1-12 for 2011, and 1-5 for 2012).  However, I re-format the results using "CreateDate", so CFCHART can recognize a date, and format/display only the "months" on the chart (i.e., JAN, FEB, MAR....... DEC).   This is working, since bottom of chart shows JAN thru DEC.
    The chart displays 2011 correctly with 12 points and a line.  But for 2012, it displays the 5 points (Jan-May) with their values, then displays Jun-Dec 2012 with values of ZERO.  So on the May 2012 plot, you have this big line that runs from 90% in May, down to 0% in Jun, then 0% for the rest of 2012.  I only want it to plot the 2012 line thru May.
    If you remove the 2011 series from the CFCHART, it displays correctly, and only displays the 5 months in 2012 (Jan-May).   And if you remove the 2012 series, it displays correctly, with all 12 months in 2011.
    I just need it to display exactly like that, when two CFCHARTSERIES are used.   Even if you <CFOUTPUT> the 2012 query, you get 5 items, Jan-May.  So not sure why it want to chart 12 items for 2012, with all ZEROs for June - Dec 2012.
    Appreciate any help/advise on how to get year-over-year lines, with 12 data points for 2011 and 5 for 2012. 
    Gary

    Thanks, I found the solution doing a Google search, which led me to this Adobe forum link:
    http://forums.adobe.com/message/3304324#3304324
    which is same one you mentioned.  I was so relieved it wasn't a problem with my code, I kept testing for errors, couldn't find any.
    We are in the process of upgrading from CF7 to CF9.  We are developing on CF9, but still using CF7 in production, hopefully for only a few more weeks until we get our new CF/SQL Servers, running CF9.
    Until then, have to write two versions of the .CFM file, one that runs on CF7 servers, and one for the CF9 test servers.
    Thanks again for getting back, much appreciated.
    Gary

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

  • 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

  • Line Graph with Multiple Series not displayed(Install Missing Plugins)

    Hi All,
    I have created a Graph - Line Graph.
    I have created more then one Series.
    The graph is not being displayed, it asks to download missing plugins.
    Where as when I have a singe chart series the graph is displayed.
    What are the missing plugins, where can I find those.
    I am using Mozilla 5.0.
    Regards
    Arif Khadas

    Please Help!

  • 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

Maybe you are looking for