Y axis errors for apex 4.0 bar chart

I created a 2d stacking bar chart for the following query. The chart shows 1 1 2 2 3 on the y axis of the bar chart.
This strikes me as wrong. It appears Apex does not like doing charts for small values. :)
select null link, 1 time, 1 "sts1", 1 "sts2" from dual
union
select null link, 2 time, 0 "sts1", 2 "sts2" from dual
union
select null link, 3 time, 1 "sts1", 0 "sts2" from dual
If I change even one of the values to 5, then everything works fine.
Any thoughts appreciated.
Any thoughts such as "don't use labels" not appreciated so much.

I know this is a really old question but ...
I thought I'd provide a little insight since I had the same problem. If, as in the case described, the values are specified to have 0 decimal places, and the range of the data is, say, between 0 and a small number then the Y scale/range may be 1.0, 1.5, 2.0, 2.5, 3.0, ... But at 1 decimal place, these may display (truncated?/rounded) as 1, 1, 2, 2, 3, ...
The easy solution would be to specify 1 (or more) decimal places in the chart. However, the easy solution has other effects. My stacked bar chart was very dense with only enough room (enough width in the bar) to show a single digit for the Values. This became unreadable when the value 1 (one) was replaced by 1.2 and 2 by 2.3 as the displayed value was wider than the bar and they all ran together. So I unchecked to display Values. (Why couldn't the values display staggered like labels do so they they don't overlap?)
So even though, I had intended to display "values," I had to give that up when I specified additional decimals in the labels.
Howard

Similar Messages

  • SVG CHart error ORA-20001 with Stacked Bar Chart HTML DB 1.6.0.00.87

    Hi,
    during I put a How-To into execution (How To Create a Stacked Bar Chart) I'll get the following error code:
    SVG Chart error:ORA-20001:line_Chart error:ORA-20001:
    get_data error:ORA-20001:Parse error:ORA009
    (see http://www.oracle.com/technology/products/database/htmldb/howtos/index.html)
    This Situation occurs when i add a second series to the
    chart. The first series works fine. I've used the following SQL-Statement:
    select null l, sales_month, revenue from (select to_char(o.order_timestamp,'Mon YYYY') sales_month, sum(oi.quantity * oi.unit_price) revenue, to_date(to_char(o.order_timestamp,'Mon YYYY'),'Mon YYYY') sales_month_order from DEMO_PRODUCT_INFO p, DEMO_ORDER_ITEMS oi, DEMO_ORDERS o where o.order_timestamp <= (trunc(sysdate,'MON')-1)and o.order_timestamp > (trunc(sysdate-365,'MON'))and o.order_id = oi.order_id and oi.product_id = p.product_id and p.category = 'Audio' group by to_char(o.order_timestamp,'Mon YYYY') order by sales_month_order);
    Please help.
    Regards
    Detlev

    Well,
    I've just been struggling for a couple of hours with a cluster bar chart giving the same problem.
    The problem is definitely with "ORDER BY".
    I guess the graphing chart is taking the sql query as a string and then does some other manipulation on it which ends abnormally when you include the order by clause.
    I presume that if you embed the query in a
    SELECT * FROM (<actual query with order by>)
    it might mitigate the problem.
    Bye,
    Flavio

  • Different colors for same series in bar chart / "Deviation" Chart

    Hello,
    I calculate the absolute deviation for a certain characteristic - let's say 0CUSTOMER - with respect to an average value on a certain key figure - let's say "Sales".
    Let's say, the average "Sales" over 3 customers is 100 €.
    Customer 1 has "Sales" = 150 (-> deviation = +50)
    Customer 2 has "Sales" = 80  (-> deviation = -20)
    Customer 3 has "Sales" = 70  (-> deviation = -30)
    I'd like to show the positive and negative deviations (which build up one series) in a bar chart that is able to show the positive values in a different color than the negative values (green for positive; red for negative).
    I tried the bar chart of the WAD, but I have no idea, how I can have values of the same series be shown in two different colors depending on their value (e. g. positive vs. negative).
    Is there a way to smartly solve this problem?
    Thanks for any answer in advance.
    Best Regards,
    Philipp

    Hello Kai,
    I've already seen that value range functionality in the chart editor. But actually I'm doing my first steps concercnig the WAD and chart design - still quite unexperienced user
    I will give it a try with the value ranges... perhaps it helps me solving the problem. I will report on the outcome here.
    Thx,
    Philipp

  • How to Correctly Trap PL/SQL Errors for APEX

    This is probably a simple fix but, I have been at it for a while and can't seem to find the magic combination.
    I have a page process that calls back end PL/SQL. I have a page item that is populated by said PL/SQL procedure, P35_PROCESSING_MSG. As you know the Process allows me to specify a message for Success and another for Failure. My desire is that, if there is a back end failure, the error will display in the dialog area, using the built-in "Process Error Message" functionality. Instead, after execution, the page item still has its default value and the following, ugly, error displays in the tabular report region.
    report error:
    ORA-20001: Error fetching column value: ORA-01403: no data found
    ORA-06510: PL/SQL: unhandled user-defined exceptionI just don't get why it displays here instead of in the usual failure area. Moreover, I don't understand why the error is "*+unhandled+* user-defined exception" when, as you will see, I have handled it.
    I have a page process to perfom custom MRD for a tabular form. (I don't think this is really germane to the more generic issue but, I bring it up as an explanaintion for the following code sample). I am diliberately causing a DIVIDE BY ZERO error to test the error handling form the back end.
        PROCEDURE PROCESS_MARGIN_CALL_DELETES( as_StatusMsg OUT VARCHAR2 )  
        IS
            lb_InnerErrorOccured    BOOLEAN := FALSE;
            ln_DeleteTargetCnt      NUMBER := 0;
            ln_DeleteTargetRow      NUMBER := 0;
        BEGIN
            ln_DeleteTargetCnt := apex_application.g_f01.COUNT;       
            FOR ln_DeleteTargetIndx IN 1..ln_DeleteTargetCnt
            LOOP
                ln_DeleteTargetRow := apex_application.g_f01(ln_DeleteTargetIndx);
                BEGIN
                    If ( apex_application.g_f14.EXISTS(ln_DeleteTargetRow) ) Then
    select 1/0 into ln_DeleteTargetCnt from dual;
                        DELETE FROM RISKDM2.INTRADAY_ECS_RSKALYST_MRGCALL
                        WHERE RISK_MARGCALL_ID = apex_application.g_f14(ln_DeleteTargetRow);
                    End If;                     
                EXCEPTION
                   WHEN OTHERS THEN
                        as_StatusMsg := as_StatusMsg || SQLERRM;
                        lb_InnerErrorOccured := TRUE;
                END;
            END LOOP;
            If ( lb_InnerErrorOccured = TRUE ) Then
                RAISE INNER_EXCEPTION;    
            Else
                as_StatusMsg := 'Successfully Processed';                  
            End If;
        EXCEPTION
            WHEN INNER_EXCEPTION THEN       
                RAISE_APPLICATION_ERROR( -20001, as_StatusMsg );
            WHEN OTHERS THEN
                as_StatusMsg := as_StatusMsg || SQLERRM;
                RAISE_APPLICATION_ERROR( -20000, as_StatusMsg );
        END; The associated code in APEX is short and sweet:
    BEGIN
       MBRDATA.MEMBER_MGR.PROCESS_MARGIN_CALL_DELETES( :P35_PROCESSING_MSG );
    EXCEPTION
       WHEN OTHERS THEN
          RAISE_APPLICATION_ERROR( -20002, :P35_PROCESSING_MSG );
    END;What I am missing?
    -Joe

    Joe Upshaw wrote:
    This is probably a simple fix but, I have been at it for a while and can't seem to find the magic combination.
    I have a page process that calls back end PL/SQL. I have a page item that is populated by said PL/SQL procedure, P35_PROCESSING_MSG. As you know the Process allows me to specify a message for Success and another for Failure. My desire is that, if there is a back end failure, the error will display in the dialog area, using the built-in "Process Error Message" functionality. Instead, after execution, the page item still has its default value and the following, ugly, error displays in the tabular report region.
    report error:
    ORA-20001: Error fetching column value: ORA-01403: no data found
    ORA-06510: PL/SQL: unhandled user-defined exceptionI just don't get why it displays here instead of in the usual failure area. Moreover, I don't understand why the error is "*+unhandled+* user-defined exception" when, as you will see, I have handled it.<Jedi>These are not the errors you are looking for.</Jedi>
    Anything included under a "report error" during page rendering is not displaying errors associated with a page process, but with the rendering of that report region, in this case clearly:
    ORA-20001: Error fetching column value: ORA-01403: no data foundThe ORA-06510 user-defined exception error relates to this (ORA-20001 being a user-defined error), but it is coming from the APEX framework rather than your code. Often these prove to be untraceable, unrecoverable problems caused by corruption of report metadata, only "fixable" by dropping and recreating the region.
    This may or may not be related to the setting of the page item "by said PL/SQL procedure", but the exceptions reported in the region are not being raised by the procedure.
    What does the debug trace show to be going on?
    Edited by: fac586 on 15-Aug-2012 08:35
    Added "...reported in the region..." for clarity

  • Format SVG bar chart labels

    I am currently using APEX 2.2.1.
    Here is the SQL for my SVG vertical bar chart.
    select * from(select null link, hourstart label,(select count(*)
    FROM toctasks.toc_tasker
    where (tas_create_dt between
    to_date(:P17_STARTDATE||' 06:00','DD-MON-RR HH24:MI')
    and
    to_date(:P17_ENDDATE||' 05:59','DD-MON-RR HH24:MI'))
    and
    (trim(substr(to_char(tas_create_dt,'DD-MON-RR HH24:MI'),10,6)) >= hourstart
    and trim(substr(to_char(tas_create_dt,'DD-MON-RR HH24:MI'),10,6)) <= hourend )
    and instr(:P17_INCLUDE_LOGONLY,tas_status) > 0) value from testtocday
    order by hrseq)
    The X axis labels are the hours of the day (hourstart), starting at 0600 and ending at 0500.
    I would like to do any one of the following:
    1. Bold and red the hour label when it is equal to 0600, 1400 and 2200.
    2. Change the color of the bar when the hour label is equal to 0600, 1400 and 2200.
    3. put some sort of vertical marker in the chart when the hour label is equal to 1400 and 2200.
    Any of this possible?
    Thanks,
    Bob

    hi patrick--
    i'm not seeing this limit in my tests. i tried both vertical and horizontal bar charts and was able to display labels like ename||ename||ename||ename||ename w/o issues. if you're still hitting it, could you please describe where/how your hitting that 15 character limit?
    thanks,
    raj

  • Stacked Bar Chart - Hiding legends with 0 values

    I'm using Crystal Reports 2008, building a report that will eventaully be called from an ASP.NET page.
    I've built a stacked bar chart that is displaying values per month of the number of various vehicle types.  The X values are the months, the Y values are the number of each vehicle type and the stacked series are each different vehicle type.  However, depending on the months that the user asks for, there may be some vehicle types that do not have any data, thus the number is 0.  Is there a way for the report to see that there is 0 data for this vehicle type and thus not include it in the legend of the various vehicle types?
    First time poster, so hopefully I explained everything well enough.  I searched the forums for anything matching Stacked Bar Chart and did not find anything.  I don't know how to find/query SAPNotes.
    Thanks.

    Thanks for the response, but I'm not familar with Alters?  Could you describe a bit more?  I didn't see anything in the documentation about it.

  • Horizontal stacked bar chart supported?

    Hi,
    we have the requirement for a horizontal stacked bar chart. Is this supported in 12.x?
    Just to make shure bevore extending our own Chart Applets.
    Thanks,
    Matthias

    Matthias,
    There are only "Horizontal Bar" and "Horizontal Group Bar" options if you want a horizontal bar chart. The "Stacked Bar" is vertical.
    Regards,
    Kevin

  • Break for Horizontal Axis Labels in OBIEE 11g Bar Chart

    Hi all,
    I have a vertical bar chart created in OBIEE 11g. The horizontal axis (x-axis) is a compound of Scenario, Year, and Month. The chart width is already long enough so it cannot be made any longer.
    The chart looks like this (the label of horizontal axis is staggered):
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    Actual Feb 2012____________Actual Apr 2012
    ___________Actual Mar 2012_____________Actual May 2012
    How can I force the labels for the horizontal axis to be broken into 2 lines (or even 3 lines), so that it will look like this:
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    ___Actual________Actual________Actual________Actual
    __Feb 2012_____Mar 2012_____Apr 2012______May 2012
    Any advice? Thanks a lot!

    Hi Stewart,
    I could not try this yet, but how about 'Enabling the Contains HTML Markup' for the columns for Heading and including a '</br>' tag at the end of the name.
    Ex: Column - >Properties -> column Format -> Column Heading -> Enable Contains HTML Markup -> Column Heading's suffix =less than symbol /br greater than symbol (Oracle forums is even break the line too!! ;) So included the text)
    Hope this helps.
    Thank you,
    Dhar
    Edited by: Dhar on 15-May-2012 20:11
    Edited by: Dhar on 15-May-2012 20:12

  • ELOCATION_MERCATOR.WORLD_MAP errors for pie/bar graph theme below zoom 5

    Hi,
    I am trying to create a map using ADF DVT map component in my jspx page. I am using 'elocation_mercator.world_map'. I am creating a pie graph theme over the base world map. For some reason whenever I zoom below 5, i get following javascript error
    [MVThemeBasedFOIControl.foiLoaded] MAPVIEWER-05523: Cannot process response from MapViewer server. (<?xml version="1.0" encoding="UTF-8" ?> <oms_error> MAPVIEWER-06009: Error processing an FOI request.
    Root cause:FOIServlet:null</oms_error>)
    The Pie graphs displays fine at or above zoom level 5. I tried the same thing using my local map viewer instance which has mvdemo.demo_map as the base map. The pie graph displays fine at all zoom levels using my local map. Can anybody tell me what may be the problem when I use the elocator world_map. I can't even look at the logs as it's a hosted service.

    Here are the steps to reproduce the problem
    1) Create a jspx page.
    2) From the component palette on the right hand side, select ADF Data Visualizations and then click on Map in the Geographical Map section. This will open an ADF Map configuration window.
    3) Create a new Map Configuration by providing an id and a URL connection. If you have not created a URL Connection to elocation service, create a new connection to "http://elocation.oracle.com/mapviewer" and select that connection.
    4) You will see data source as ELOCATION_MERCATOR and Base map as WORLD_MAP selected. Enter startingY="38.648911" startingX="-98.349609" , select mapZoom="5" and Click on OK.
    5) Now create an entity object and a view object based on the STATES table in the MVDEMO database and add it to an application module.
    6) Refresh the application module data control. You should a new StatesView1 data control.
    7) Drop it on the map and select Bar graph theme. This will open a Bar Graph theme configuration window for the Map.
    8) In the Name select MAP_STATES_ABBRV. In the location column select STATE_ABRV.
    9) In the Data Location Select Location as StateAbrv and Location Label as State.
    10) Enter Series Attribute as Totpop and Label as Total Population. Enter series attribute as Female and Label as Female Population. Click OK.
    11) Now Run this page.
    12) The page runs fine displaying the Bar chart. Now zoom out. You will get error
    '[MVThemeBasedFOIControl.foiLoaded] MAPVIEWER-05523: Cannot process response from MapViewer server. (<?xml version="1.0" encoding="UTF-8" ?> <oms_error> MAPVIEWER-06009: Error processing an FOI request.
    Root cause:FOIServlet:null</oms_error>)'
    When you say that we should use elocation for map tiles not for FOI rendering, does that mean that I should not use the themes provided by elocation. When I enter the base URL to a mapviewer instance in my map client, the base map and the themes are displayed from the database used by the mapviewer instance. So, how can I use my own mapviewer for FOI rendering? Can you please explain a little more. Thanks.

  • Y axis max ignored for horizontal stacked bar chart (SVG)

    G'day,
    I'm using the standard SVG horizontal stacked bar chart (multi-series). I have set the Y axis maximum value but it is ignored - bars are plotted to their maximum height.
    I've had no such problem with vertical stacked bar charts.
    We're running v2.2.0.00.32.
    Is this a known bug?
    Regards,
    Chris.

    I don't understand why you are soying it is not possible.
    Actually I think it is and quite easily but maybe i missunderstand the question.
    But anyway, here is what I would do:
    In the spreadsheet, you can calculate the percentage of each status per project:
         Completed     Pending     Partially completed     Not Started
    Project 1     78.10%     6.46%     10.51%     4.93%
    Project 2     51.01%     2.62%     39.21%     7.15%
    And then select these data for the stacked bar chart. Here you get the graph you are looking for.
    Oli

  • Apex Stacked bar chart X Axis

    Hi Guys,
    I'm currently using Apex 4.0.2.00.06 with anychart 5.1.3.
    I have added a chart to the page but it is not pulling back all the values on the x-axis.....i have attempted to increase the width of the chart and enable scrolling to no avail....any ideas?
    Cheers
    S

    Hi S,
    Check out what you have set for the Maximum Rows under Chart Series/Series Query.
    Jeff

  • Apex 3.2 SVG Chart - How to plot Stacked Bar With Negative Values ?

    Currently Apex 3.2 Flash Chart (AnyChart 3.x) does not support Stacked bars with negative values.
    I try with SVG Stacked bars with positive values only, chart ploting works fine. When I add a new series with negative values (i.e -1) and I get a blank Chart region with no error.
    Based on this statement from Apex's documentation:
    *"AxisLine Indicates zero on charts that have negative values."*
    I appreciate your help on how to translate this statement into action ?
    (i.e how to override .Axisline class in CSS section ?)
    Thank you very much for your time.

    User614143,
    try to add the minumm negative value (but positive) to the parameter for the axis.
    e.g. show value+3000 (assuming -3000 is the minimum value)
    If you don't have a limitation for the negative values, it doesn't work. (or try to calculate first the most negative value in a before header process)
    hope this helps.
    Leo

  • Multiple errors in Apex 3.1.1 help (EBS mod_plsql issue?)

    Hello everybody,
    I am having a couple of problems with the online help in Apex and I cannot figure out how to solve them.
    First problem:
    Whenever I open the help from the Application Builder I get an error "Forbidden You don't have permission to access /i/doc/bldr_hm.htm on this server", but if then I start browsing the help index, all the pages show without errors. Also if I try to access directly in my browser the page indicated in the error above, the page shows fine. I get the same behaviour also when I select the "2 Day Developer" guide in the select list, that is the first page accessed gives a Forbidden error, but all the pages I access after that are working fine.
    Second problem:
    Whenever I click on the Find link, Apex outputs the following error:
    ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing
    LPX-00104: Warning: element "HTML" is not declared in the DTD Error at line 2
    Error creating online help index.I browsed the forum for this kind of error, but I found it only mentioned together with Web Services. The error seems to show that an HTML document is fetched instead of an XML one and I think it may be connected to the first problem (who knows, maybe the indexing routine is getting a forbidden error instead of the expected XML file).
    In the Mod_PlSql logs I see error messages like
    10.200.95.2 - - [04/Jun/2008:14:19:26 +0200] "GET /i/doc/bldr_hm.htm HTTP/1.1" 403 227and also
    [Wed Jun  4 14:19:26 2008] [error] [client 10.200.95.2] client denied by server configuration: /tszo/comn/portal/tszo_erp01/iI am using Apex version 3.1.1 on a 9.2.0.8.0 database and as the HTTP server I am using an Oracle 9i Application server from an Oracle E-Business Suite 11.5.10.2 installation. The error happens both with 3.1 and 3.1.1 Apex versions.
    It may be very well a mod_plsql configuration issue, but I don't know what may be causing the problem and why it's happening only the first time I access the help page.
    Is there someone able to shed some light on this issue?
    Thanks a lot,
    Paolo

    Hello everybody,
    our great Apps DBA Ivo Zekhuis solved the issue, so I would like to report the solution for others that may encounter the same problem.
    He just added the following line to the DAD for apex in file $IAS_ORACLE_HOME/Apache/modplsql/cfg/wdbsvr.app
    cgi_env_list=SERVER_NAME=our.server.name,REQUEST_PROTOCOL=http,SERVER_PORT=8000,HOST=our.server.name:8000and it solved the problem. As a nice side effect, this change also solved another issue that we were having with flash charts not working.
    I want to remember that in our case Apex is installed in an E-Business Suite 11i environment, using the main application server as the Apex web server.
    Thanks again, Ivo!
    Paolo

  • Display error message in the status bar during PBO

    Hi All,
    I want to issue an error message on a program's selection-screen.
    The thing is when I issue an error message inside PBO, all the text in the selection-screen are gone and replaced with lines.
    So i displayed the error message in the status bar.
                      MESSAGE S074(Z4) DISPLAY LIKE 'E'.
    But the problem with this is that it will allow to continue data processing.
    What shall I do in order for my error message to behave as an error message and not as a status message?

    Hi,
    Write your message in PAI same as you have done MESSAGE S074(Z4) DISPLAY LIKE 'E'.
    after this use call screen 'your screen no'.
    it will not lock the field.

  • With the new seession in IE gives session error for new user

    Hi,
    In new opened IE if i tries to login with new user. It is switching b/w the files in the status bar(ie., Header1.jsp and ListServicecall.jsp simultaneously) and at end the session error result will arise.
    But for the second time if i login with the same username/password the page is displaying properly. please Can any one help out.
    Thanks,
    Satish R

    First time if the user logins to IE in the HP Service Desk(SD) page. Some of the pages will iteratively loops and give a session expires error. After that the user logins to the page with no error.
    If i create a new copy of the data from the existing folder and if i try to run then the result will be error for that folder also.
    ie., Assume folder 123 where, first time for every new login user the session expire error occurs. later they'll login without any problem.
    If i rename the folder 123 to xyz/create new copy and rename then, the same problem repeats. First time for the new user it will give session expire error and later he can login to the HPSD page with no error.
    Is it require cookies to be programmed in that program.
    Regards,
    Satish R

Maybe you are looking for