Problems with SVG line charts based on PL/SQL returning SQL

Dear all - I wonder if anyone can tell me whether this problem is likely to be fixed at some point?
It relates to the fact that you can't get more than one series on a chart where the SQL is returned from PL/SQL.
It is a huge issue for us when trying to create complex, dynamic charts, which are simple enough in PL/SQL, but end up quite nightmarish in pure SQL.
Although we have implemented Maani SWF (Flash) charts as a workaround, users don't like them as there's no 'save as...' or copy+paste and they seem to print very badly indeed.
Here's part of a post from last May with more detail:
"If I take a really simple table like this:
CREATE TABLE "CHART_TEST"
( "X" DATE NOT NULL ENABLE,
"Y" NUMBER(5,0) NOT NULL ENABLE,
CONSTRAINT "CHART_TEST_PK" PRIMARY KEY ("X") ENABLE
and populate it with:
X Y
2006-01-01T00:00:00 1
2006-02-01T00:00:00 2
2006-03-01T00:00:00 3
2006-04-01T00:00:00 4
2006-05-01T00:00:00 5
2006-06-01T00:00:00 6
2006-07-01T00:00:00 7
2006-08-01T00:00:00 8
2006-09-01T00:00:00 9
2006-10-01T00:00:00 10
I can create a chart with a single series using syntax something like:
begin
return 'select null link, x label, y value
from chart_test';
end;
and this works fine. However, if I add a second series:
begin
return 'select null link, x label, (y + 1) value
from chart_test';
end;
then the whole of the chart region blanks out.
There's an example at:
http://htmldb.oracle.com/pls/otn/f?p=15491:1"
Many thanks,
John.

On some, but not all SVG line charts, I had trouble when some values are ZERO.
Putting a CASE WHEN var = 0 then 0.05 ELSE var END in the select statement
fixed those situations.
I had missing lines when the number of data points in a series exceeded the default number of 15, and I did not set in the series configuration to a number equal to or higher that the number of data points in that series.
And I had one instance, where a couple missing lines reappeared when I exited
the browser and app completely and restarted the app.
All these comments apply to ver 1.6x and 2.0x

Similar Messages

  • Problems with the line chart - dashboard

    I have a problem in the line chart in the dashboard SP4.
    Clicking on the legend of the graphic , the serie (line) disappears. Clicking again in the legend, the line appears but the markers don’t.
    Someone knows how to solve this problem?
    Follow the examples.
    Thanks.

    Hi Jane,
    This is definitely the tool problem.
    Might be you can try restarting xcelsius or your computer (sometimes it works, really !)
    Just out of curiosity, why do you want to clink on legends.

  • SVG line chart raises ORA-20001 witha valid SQL query

    Hi,
    I am on version 1.6 & 10g database. I developed an SVG line chart which was working fine, but I wanted to fill in some sparse data by using data densification. So I enhanced my query with a partitioned outer join as follows:
    select null l, month_start, issue_count
    from
    (with dates as
    (select add_months
    ( to_date( '01-jul-2004' ),
    column_value-1) dt
    from table( vtable(12) )),
    iss as
    (select trunc(start_date, 'MON') mon , count(*) cnt
    from issues
    group by trunc(start_date, 'MON'))
    select dates.dt month_start, NVL(iss.cnt, 0) issue_count
    from dates left outer join iss on (dt=mon)
    Now the chart throws an ORA-20001 get_data error. The query is valid as it runs in SQL*plus no problems. What is it choking on?
    Thanks,
    Steve

    Steve,
    I didn't mean for you to put in on the Studio, just install the app in your workspace on htmldb.oracle.com, use SQL Workshop there to compile your procedures, tell us the app ID, and that's it.
    The error message presentation needs some improvement, give us time. We're spending most of our energy on improving the capability of the product.
    Scott

  • "no data found" in SVG Line Chart

    Hello,
    I have a problem with a SVG Line Chart!
    I have multiple series in the Line Chart, which data is based on multiple select lists.
    When I leave one select list blank, so that one line has no data, the "no data found" statement appears in the Chart.
    But when I delete the "no data found" statement in the Series Attributes it would not be deleted. Nevertheless when I open the Series Attributes again the message is still there....
    Does anybody have an idea how I van delete the "No Data found Message"???
    Thanks,
    Tim

    Chris and Cristoph -
    I have found that many times errors like this are caused by SQL statements that don't really address the business need or the requirements for the chart. Let me use a simple example:
    SELECT d.dept_name  dept_name,
           sum(s.sales_total)  sales_total
    FROM orders o, depts d
    WHERE o.dept_id = d.dept_id
      AND o.time_frame = 'Q1'
    GROUP BY dept_nameSeems simple enough. But what if this statement is run early during the Q1 timeframe and one dept hasn't made any sales yet? Well, they won't show up in the output of this statement. From a business perspective, you will want that dept to show on the report with a zero total sales. You don't want them excluded from the report. So how do we fix this?
    There are several options.
    One dirty way of solving this is putting in a dummy record for each dept into the orders table with a 0 sales_total value for each time unit. YUK! That has wrong written all over it!
    We could use a different type of join. And then use NVL or a Case or IF statement to turn Null Values into 0.
    SELECT d.dept_name dept_name,
           sum(nvl(s.sales_total,0))  sales_total
    FROM  orders o RIGHT JOIN dept d ON d.dept_id = o.dept_id
    WHERE o.time_frame = 'Q1'
    GROUP BY dept_nameWe could also square our data sets and summarize with an inner select
    SELECT dept_name dept_name,
           sum(sales_total) sales_total
    FROM (
      SELECT d.dept_name ,
             sum(s.sales_total)  sales_total
      FROM orders o, dept d
      WHERE o.dept_id = d.dept_id
        AND o.time_frame = 'Q1'
      GROUP BY dept_name
      UNION ALL
      SELECT DISTINCT dept_name ,
             0 sales_total
      FROM dept
    GROUP BY dept_nameThe final result is that every dept has a value. That is the key. This is how the chart expects the data and this is probably how your business expects the data.
    Austin

  • SVG multiline chart based on PL/SQL function

    Dear all -
    Having trawled this forum and with a fair bit of experimentation I've concluded that:
    1. Generating an SVG line series using a PL/SQL function returning a SQL statement is perfectly possible;
    BUT
    2. It only works for a single series. Adding further series blanks out the SVG chart area and nothing at all is displayed.
    Can anyone tell me if this is right or am I missing a trick? The usual problems such as ordering, nulls etc. don't apply in this case.
    Thanks for your time.
    John.

    On some, but not all SVG line charts, I had trouble when some values are ZERO.
    Putting a CASE WHEN var = 0 then 0.05 ELSE var END in the select statement
    fixed those situations.
    I had missing lines when the number of data points in a series exceeded the default number of 15, and I did not set in the series configuration to a number equal to or higher that the number of data points in that series.
    And I had one instance, where a couple missing lines reappeared when I exited
    the browser and app completely and restarted the app.
    All these comments apply to ver 1.6x and 2.0x

  • Transforming XML data into SVG line charts

    Hi
    I am trying to transform revenue data from an XML file into an SVG line chart. The problem is that I am quite new to XPath and XSLT and whereas I can draw the grid for my chart I struggle drawing the lines using the data from the XML doc.
    The XML look something like the one below, and I would like to have one chart for each product and in each chart having the time on the x-axis and chart the revenue by regions.
    Any help on this is much appreciated.
    Thanks
    Peter
    <?xml version="1.0"?>
    <revenue>
    <caption>
    <heading>My title</heading>
    </caption>
    <date name="01/01/2003">
    <region name="Asia">
    <product_a>30</product_a>
    <product_b>12</product_b>
    <product_c>301</product_c>
    </region>
    </date>
    <date name="02/01/2003">
    <region name="Asia">
    <product_a>32</product_a>
    <product_b>12</product_b>
    <product_c>301</product_c>
    </region>
    <region name="America">
    <product_a>57</product_a>
    <product_b>31</product_b>
    <product_c>457</product_c>
    </region>
    </date>
    <date name="03/01/2003">
    <region name="Asia">
    <product_a>38</product_a>
    <product_b>12</product_b>Long postings are being truncated to ~1 kB at this time.

    Instead of using SVG charting can I suggest that you look into digital charts. This service creates charts on the fly and is very easy to integrate with web applications.
    Christopher
    www.billboard.net

  • Help - SVG Line Chart - ORA-20001 line_chart error Parse error ORA-00911

    Gurus,
    Need help.
    I am trying to plat multiple series in a SVG line chart but am repeatedly getting line_chart error eventhough SQL queries work perfectly in sql workshop/sqlplus etc. How do I get past this error.
    Sample queries I am using to plot line chart are
    select link, col1, value from (select null link, col1, col2 value from xy);
    select link, col1, value from (select null link, col1, col3 value from xy);
    xy is a table with three number columns col1, col2 & col3.
    Thanks in advance

    Try taking the semicolon ";" off the end of the SELECT statements.
    Mike

  • Transforming XML data into SVG line charts using XSLT

    Hi
    I am trying to transform revenue data from an XML file into an SVG line chart. The problem is that I am quite new to XPath and XSLT and whereas I can draw the grid for my chart I struggle drawing the lines using the data from the XML doc.
    The XML look something like the one below, and I would like to have one chart for each product and in each chart having the time on the x-axis and chart the revenue by regions.
    Any help on this is much appreciated.
    Thanks
    Peter
    <?xml version="1.0"?>
    <revenue>
    <caption>
    <heading>My title</heading>
    </caption>
    <date name="01/01/2003">
    <region name="Asia">
    <product_a>30</product_a>
    <product_b>12</product_b>
    <product_c>301</product_c>
    </region>
    </date>
    <date name="02/01/2003">
    <region name="Asia">
    <product_a>32</product_a>
    <product_b>12</product_b>
    <product_c>301</product_c>
    </region>
    <region name="America">
    <product_a>57</product_a>
    <product_b>31</product_b>
    <product_c>457</product_c>
    </region>
    </date>
    <date name="03/01/2003">
    <region name="Asia">
    <product_a>38</product_a>
    <product_b>12</product_b>
    <product_c>301</product_c>
    </region>
    <region name="America">
    <product_a>31</product_a>
    <product_b>9</product_b>
    <product_c>357</product_c>
    </region>
    </date>
    <date name="04/01/2003">
    <region name="Asia">
    <product_a>33</product_a>
    <product_b>12</product_b>
    <product_c>301</product_c>
    </region>
    <region name="America">
    <product_a>43</product_a>
    <product_b>16</product_b>
    <product_c>430</product_c>
    </region>
    </date>
    <date name="05/01/2003">
    <region name="Asia">
    <product_a>36</product_a>
    <product_b>12</product_b>
    <product_c>301</product_c>
    </region>
    <region name="America">
    <product_a>54</product_a>
    <product_b>1</product_b>
    <product_c>561</product_c>
    </region>
    </date>
    </revenue>

    You could try Jeni's XSLT utilities for SVG :
    http://www.jenitennison.com/xslt/utilities/svg-utils.html
    Specifically, the sample code provided, when a couple of SVG charts are being generated from XML data :
    http://www.jenitennison.com/xslt/utilities/svg-example.html
    Hope that helps.

  • Intermittent problem with the line

    I have an intermittent problem with my line which crackles or you miss parts of a conversation because voices spoken or listened to keep coming and going all the time or the phone cuts out altogether
    Telephone the help line which said that the line was OK at that moment as they did the other time I called keeps on happening on a daily basis every time we get a call.
    Next door neighbour and other neighbours around this close all linked to the same local bt or open reach cabinet all tell me they have the same problem.
    Neighbours called their own phone company who rent the line off of BT who got an open reach engineer out the next day and found that the local exchange or cabinet next to the house across the road from me all the phone line coverings have corroded away and that the wires are all damaged and corroding away or rotting away.
    So the local road (culdisack) has to be dug up and the exchange and wires have to be replaced from that junction box to the next junction box or exchange, what i want to know is when will this be done as all the neighbours and i have been reporting it to BT for ages but it was not till next door got their company to investigate was the problem found.
    How long till we have to wait for a repair and better lines back to a good service, Months, years. when?
    It would not be so bad but i have a lifeline connected to my phone so if i am in trouble it calls for help but with the fault with the line half the time it cannot get a single message or call out and before now i have been left on the floor for ages before someone came back home to get me off the floor as the box just said the phone line was disconected and could not get a dial tone or call out.
    Tim

    If you would like to contact one of the UK based BT Care Team who moderate this forum, they should be able to find out what is going on.
    They can be contacted using this link BT Care Team
    They normally respond by phone or e-mail, within three working days, however you should get an immediate confirmation, with a tracking number.
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • WRT160N - problem with on-line games and downloading

    Hi,
    Several months ago I bought a WRT160N router and I have a strange problem.
    When I play online games, such as QL, and someone else will start downloading from the Internet, from time to time about 10 sec I have 999 ping
    I turned on in the background ping to the router, and from time to time about 10 sec there are 2-3 ansewers with 1900-2000 ms.
    I tought that when I buy router with N-mode everything will work better, and there will be no problems with on-line gaming.
    Is there any way to fix this problem??

    I checked now and even no one is downloading there is the same problem.
    I checked on other router and it works fine.
    Next problem is when I browse youtube and play several films simultaneously, suddenly there are no responses from router, when I close them, and wait for a moment the responses are back.
    Whether anyone had similar problem??

  • X-Fi Notebook has a problem with headset/line-in

    0X-Fi Notebook has a problem with headset/line-in` First the basics:
    -HP Pavillion dv6000
    -Intel Core 2 Duo @ .83 GHz
    -Windows Vista Home and Student (SP) 32 bit
    -3 GB RAM
    Ok, now the problem:
    -Ever since I got my Sound Blaster X-Fi card for this past christmas, I've had a problem with using the headset/lin-in port on it. Its only now that it's gotten to be a big enough irritation for me to need to fix it. I went to play some BF2 and hook up my earphone/microphone combo. The problem is, that the default recording device "Line-in" doesn't detect any sound when I have it plugged in. Further more, when I change it to "SB X-Fi micropone" it does detect my voice, but its on some kind of feedback loop, because it then transmits whatever the mic picks up onto my speakers/headphones/whatever I have plugged into it as an output. Its almost like they have the "line-in" and "microphone" functions either switched or blended into one. I did a complete reinstall of the drivers and software, but no luck. Any suggestions would be much appreciated.
    Thanks guys

    Hi,
    What I mean is the microphone jack on your x-fi notebook. since you are saying you can hear yourself when you switch the recording source to microphone, I would assume that you have plugged in a microphone into your x-fi notebook. You should check if there is a microphone control on your volume mixer and whether it is unmuted if there is one. There are many sound card which allows for the microphone audio to be heard on the speaker output if the microphone source is unmuted.
    Message Edited by flipflop on 03-29-2009 09:03 [email protected]

  • Problems with horizontal lines on the iMac. Someone knows the solution?

    For several months my Imac has horizontal lines have been growing. Problems with horizontal lines on the iMac. Someone knows the solution?

    You have 14 days to return the computer w/no questions asked.  Plus you have 90 days of FREE phone tech support on top of your standard 1 year warranty unless you also purchased AppleCare which gives you an additional 2 years of coverage plus FREE phone support.
    Strongly suggest that you take FULL advantage of the above before it runs out.  Let Apple deal w/the problems.
    That being said, no new Mac comes w/Snow Leopard which your profile confirms you have.
    Mac OS X (10.6.8)

  • Interactive Report based on a function returning SQL query?

    Hi guys!
    I'm wondering if the IR based on a function returning SQL query will be available on the final release of APEX 4.0..I can't see this functionality in EA1 and EA2 and I think it should be there..dont you think?
    With regards,
    PsmakR

    Hi!
    You're absolutely sure you're talking about the Interactive Report region and not about the default SQL Report region ?
    With regards,
    PsmakR

  • Svg line chart  problem with latest patch?

    Hi team,
    I was checking out one page containing an SVG chart that I didn't modify in 2 weeks, according to the application builder, but it seems to hang after displaying the first line series of 4 total.
    It was working before the last patch was installed.
    It's page 65 of application 21670 in the online environment.
    Choose "automobile" from the first drop down list and click on the button, the chart appears but then it seems to be waiting for something to download.
    If you move the mouse over any textual part, you can see in the status line the following message:
    "xml processing instuction not at start of external entity: line 172, column 0".
    If you open up the SVG source by right clicking on the chart, you will see at the end of the file an error text message returned by oracle (ORA-06502), but what is particularly strange is the presence of an <?xml> processing instruction just in the middle of the source code listing.
    It looks like it is trying to append the second chart series by appending another svg source file.
    Could you check if I did anything wrong or if it is a problem of the patch?
    I have got other chart type running without problems.
    Thanks!
    Bye,
    Flavio

    Things are getting complicated.
    I found some cases where the chart is displayed correctly, which made me think of some unexpected values returned by the underlying queries.
    Since my chart is made up of 4 different series returning 12 points each, I assembled the queries with UNION ALL and checked out what was returned both in a failing case and a successful one but I can't figure out a valid explanation, the only thing I notice is that in the failing case there are some values higher than average, say 10 times bigger than the average value and for some reason the chart stops drawing points exactly after the peak value (1155.62, see below).
    Each series returns exactly 12 points, some nulls, but that's doesn't seem to be the problem.
    I wonder if the problem is with the "autoscale" algorithm, but I am lost at the moment...
    Here is a successful data sample:
    - APRIL -
    - APRIL 119.57125
    - APRIL -
    - APRIL -
    - AUGUST 160.5
    - AUGUST 157.53
    - AUGUST 157.53
    - AUGUST 119.57125
    - DECEMBER -
    - DECEMBER 119.57125
    - DECEMBER 113.67
    - DECEMBER 131.214
    - FEBRUARY 104
    - FEBRUARY 119.57125
    - FEBRUARY 126.418333333333333333333333333333333333
    - FEBRUARY 125
    - JANUARY 153
    - JANUARY 119.57125
    - JANUARY 134.845
    - JANUARY 145
    - JULY 154.56
    - JULY 119.57125
    - JULY 154.56
    - JULY 154.56
    - JUNE -
    - JUNE -
    - JUNE -
    - JUNE 119.57125
    - MARCH 43.5
    - MARCH 119.57125
    - MARCH 106.918333333333333333333333333333333333
    - MARCH 100.166666666666666666666666666666666667
    - MAY -
    - MAY 119.57125
    - MAY -
    - MAY -
    - NOVEMBER 118
    - NOVEMBER 131.214
    - NOVEMBER 125.3775
    - NOVEMBER 119.57125
    - OCTOBER 164
    - OCTOBER 119.57125
    - OCTOBER 134.5175
    - OCTOBER 134.5175
    - SEPTEMBER 59.01
    - SEPTEMBER 119.57125
    - SEPTEMBER 124.69
    - SEPTEMBER 124.69
    and now an offending one:
    - APRIL -
    - APRIL 287.743333333333333333333333333333333333
    - APRIL -
    - APRIL -
    - AUGUST 1155.62
    - AUGUST 655.09
    - AUGUST 655.09
    - AUGUST 287.743333333333333333333333333333333333
    - DECEMBER 135
    - DECEMBER 287.743333333333333333333333333333333333
    - DECEMBER 197.2525
    - DECEMBER 349.865
    - FEBRUARY 114
    - FEBRUARY 287.743333333333333333333333333333333333
    - FEBRUARY 315.947142857142857142857142857142857143
    - FEBRUARY 130
    - JANUARY 153
    - JANUARY 287.743333333333333333333333333333333333
    - JANUARY 321.741428571428571428571428571428571429
    - JANUARY 190
    - JULY 154.56
    - JULY 287.743333333333333333333333333333333333
    - JULY 154.56
    - JULY 154.56
    - JUNE -
    - JUNE -
    - JUNE -
    - JUNE 287.743333333333333333333333333333333333
    - MARCH 223.5
    - MARCH 287.743333333333333333333333333333333333
    - MARCH 182.787142857142857142857142857142857143
    - MARCH 156.375
    - MAY -
    - MAY 287.743333333333333333333333333333333333
    - MAY -
    - MAY -
    - NOVEMBER 118
    - NOVEMBER 392.838
    - NOVEMBER 452.4075
    - NOVEMBER 287.743333333333333333333333333333333333
    - OCTOBER 354
    - OCTOBER 287.743333333333333333333333333333333333
    - OCTOBER 461.5475
    - OCTOBER 461.5475
    - SEPTEMBER 182.01
    - SEPTEMBER 287.743333333333333333333333333333333333
    - SEPTEMBER 497.396666666666666666666666666666666667
    - SEPTEMBER 497.396666666666666666666666666666666667
    Weird, isn'it?
    Bye,
    Flavio

  • Copy Excel Chart into Illustrator: Problem with dotted lines

    Copying an excel chart (2010 and/or 2013, Windows 7 Ultimate) to Illustrator CS6 works okay if line chart lines are solid... but if they are dotted, then in Excel 2010, the dotted line becomes jumbled, and in Excel 2013, the dotted line converts to a solid line... is the only solution to this to save the exel chart as a pdf, or is there another workaround?
    Essentially, I am creating a chart in excel and adding a few notations and graphic elements in illustrator for professional publishing...
    any help would be appreciated... thanks

    This is a follow-up (somehow, my original question was logged under OOBIMICHAEL):
    I finally broke down and bought a MacBook Pro, installed CS6 and Office 2011... and voilà... dotted lines copy from excel to illustrator just perfectly... this is a bit like copying data from Visio to Word, etc... these programs render graphics in very different ways... other than the Mac solution, I also tried the Libre Suite (open source)... which also worked perfectly to copy excel data with dotted lines to illustrator... so, until MS and Adobe actually collaborate together to provide value to its customers, the alternative seems (1) open source, (2) buy a Mac...

Maybe you are looking for