Line Chart From SQL in 10g

I need to have a Line Chart from SQL in Oracle 10g Grid Control for the below Scenario
I had total counts for Messages stuck in the Oracle queue table using one UDM alert
and i have total counts for messages stuck more than 15 min using another UDM alert.
Now i have to get a graph with these 2 valus in X axis with counts on Y axis.
Kindly help me.

You might want to check the following documentation to see if you can achieve what you need in a custom report.
Custom reports:
http://docs.oracle.com/cd/B16240_01/doc/em.102/e14586/information_publisher.htm#BGBFGDCI
Monitoring views:
http://docs.oracle.com/cd/B16240_01/doc/em.102/b40007/views.htm#BACDGFJC
Regards,
- Loc

Similar Messages

  • Chart from SQL Colour

    I am creating reports in information publisher and wish to include charts from SQL to summarise the data. As some of these reports will include job execution status and similar status fields it would be useful to show Failures in Red and Successes in Green like the "All Targets Status" region on the Enterprise Manager Grid Control home page.
    Is there any way I can influence the colour that items are plotted in Pie and other Charts? I am using release Oracle Enterprise Manager 10g Grid Control Release 10.2.0.1.0.
    Thanks in advance for any help you can offer.
    Regards,
    Matthew

    Hi Siegwin,
    Although the data section of your generated chart XML contains references to styles, such as CadetBlue2, yellow, etc, you haven't actually defined those styles within the <period_styles> tags of the XML. Therefore, the chart will apply the default blue colour to each timeline of the chart. You'll see that there's a default style called defaultStyle already generated for you in the XML i.e. <period_style name="defaultStyle"> What you need to do is create your own styles, mirroring the defaultStyle example, in order to apply other colours to your gantt chart. I've updated your XML to include a new yellow style, so you can see that one of the elements of the chart now picks up that colour.
    My sample chart, Resource Gantt with Custom Styles, should hopefully help to explain what you need to do in order to apply custom colours to your chart: http://apex.oracle.com/pls/apex/f?p=36648:60
    I hope this helps.
    Regards,
    Hilary

  • Create Dynamic Chart from sql / plsql

    Hi can anybody help with this problem. I need to know the process I can use to create a dynamic pie chart from plsql.
    i.e. the functionality is -> user selects a table, then selects a subset of columns and then generates a pie chart of these columns.
    I cannot find a way of generating the pie chart sql syntax on the fly. Can anybody do this?

    See: Re: SVG Charts - How to use dynamic tables in select statement

  • Plot a Chart from sql query

    Hi I am trying a plot a graph using the values from one of my table.
    I am filtering the data using timestamps.
    When I use direct SQL against the database it is retrieving all the data.
    However When I am using the same SQL query to plot a 2D line Graph it is not using all the values to plot the Chart.
    Any ideas.
    Thanks
    Balaji

    Hello,
    Have a look at the serie where you defined the sql statement.
    You probably have a max there of 15 records. You need to increase that value to for ex. 50.
    Regards,
    Dimitri
    http://dgielis.blogspot.com/
    http://www.apex-evangelists.com/

  • How to make use of a different data model for a line chart?

    I have a datamodel which is a sql query. I have a line chart on my template which is using some "Start Time" field as X-Axis. There is a chance that "Start Time" is null. In such cases the plotted point doesn't appear with x-coordinate. But I can't change the X_Axis field to some other not-null attribute due to business requirement.
    I am thinking to create another datamodel which filters all "Start Time"s which are nulls and use that datamodel for the line chart that has "Start Time" as X-axis. But I don't know how to do this as whenever I try to insert a line chart from BIPublisher menu in MS_Word, I am not prompted to select the datamodel.
    Can anybody tell me what I am trying is possible? If so how? If not, how do I have "Start Time" as X-axis without hassles?
    Thanks,
    -Vijay-

    Are you able to extract the data based on the new data model in an XML file? If so, in BI publisher desktop, are you able to load the XML data via Add-Ins ->Data -> Load XML Data?
    If you have been able to load the data successfully, then you need to Select Chart from the Insert Menu. When you do that, you should be able to see the Data layout on the left side of the chart dialog box. Then you should be able to drag and drop fields as necessary to create the chart. Are you having issues doing this part?
    You will not be prompted to select the data model. Hope I haven't misunderstood your question.
    Thanks!

  • JFreeChart Line Chart points

    Hi coders, I have implemented a line chart from the JFreeChart and have got it working nearly how i want. The only problem i have now is that there are 2series using a line and 1 series using points, i was wondering if anyone knew how i could change the colour of the individual series and also the type of point or line they may have.
    public ChartPanel allAlgorithm()
                   final XYDataset alldataset = createDatasetLine();
                 final JFreeChart lineGraph1 = createChart(alldataset);
                 panel6 = new ChartPanel(lineGraph1);
                   return panel6;
              * Creates a sample dataset.
              * @return a sample dataset.
             private XYDataset createDatasetLine() {
                 XYSeries series0 = new XYSeries("Straight Comaprison");
                  XYSeries series1 = new XYSeries("Minimum Edit Distance");
                 XYSeries series2 = new XYSeries("Longest Common Sequence");
                 int users = 1;
                 resultsArray = results.getResultSet();
                   //assign the results data to the ArrayList
                   int totalFile = resultsArray.length;;
                   //a for loop to returnt he usernames from the ArrayList and also to
                   //return the data from the 2D Array
                  for (int i = 0; i < resultsArray.length; i++){
                       String x = StraComp[0];
                   String y = MinEdit[i][0];
                   String z = Lcs[i][0];
                             //System.out.println("Total File Size"+totalFile);
                             if(x.equals("XXXX")){
                                  //do nothing
                             }else{
                                  //changes the value to a double
                                  double dbX = Double.parseDouble(x);
                                  double percetX = (totalFile/dbX) * 100;
                                  if(percetX >= 100){
                                       percetX = 100;
                                  series0.add(percetX, users);
                             if(y.equals("XXXX")){
                                  //do nothing
                             }else{
                                  //changes the value to a double
                                  double dbY = Double.parseDouble(y);
                                  double percetY = (totalFile/dbY) * 100;
                                  if(percetY >= 100){
                                  percetY = 100;
                                  series1.add(percetY, users);
                             if(z.equals("XXXX")){
                                  //do nothing
                             }else{
                                  //changes the value to a double
                                  double dbZ = Double.parseDouble(z);      
                                  double percetZ = (totalFile/dbZ) * 100;
                                  if(percetZ >= 100){
                                       percetZ = 100;
                                  series2.add(percetZ, users);
                             users++;
         XYSeriesCollection alldataset = new XYSeriesCollection();
         alldataset.addSeries(series0);
         alldataset.addSeries(series1);
         alldataset.addSeries(series2);
         return alldataset;
         * Creates a chart.
         * @param dataset the data for the chart.
         * @return a chart.
         private JFreeChart createChart(final XYDataset alldataset) {
         // create the chart...
         final JFreeChart chart = ChartFactory.createXYLineChart(
         "All Algorithms Together",     // chart title
         "Number of Lines", // x axis label
         "Users", // y axis label
         alldataset,      // data
         PlotOrientation.VERTICAL,
         true, // include legend
         true, // tooltips
         false // urls
         chart.setBackgroundPaint(Color.white);
         // get a reference to the plot for further customisation...
         final XYPlot plot = chart.getXYPlot();
         plot.setBackgroundPaint(Color.lightGray);
         plot.setDomainGridlinePaint(Color.white);
         plot.setRangeGridlinePaint(Color.white);
         final XYLineAndShapeRenderer renderer = new XYLineAndShapeRenderer();
         renderer.setSeriesLinesVisible(0, false);
         renderer.setSeriesShapesVisible(1, false);
         plot.setRenderer(renderer);
         // change the auto tick unit selection to integer units only...
         final NumberAxis rangeAxis = (NumberAxis) plot.getRangeAxis();
         rangeAxis.setStandardTickUnits(NumberAxis.createIntegerTickUnits());
         return chart;

    I would try posting to the JFreeChart forum. They would probably have the best knowledge and maybe someone there may have done it before.
    http://www.jfree.org/phpBB2/index.php
    Darren

  • 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

  • PL/SQL in a line chart

    Hello,
    I am learning to use APEX to build charts on our intranet. I'm getting errors when I try the PL/SQL code below on a line chart (btw I'm a noob in PL).
    The error description is after the code. Can someone please point out what's wrong with my code?
    Any help will be very much appreciated. Thanks.
    declare
    q varchar2(4000);
    g varchar2(4000);
    w varchar2(4000);
    c varchar2(4000);
    qte varchar2(1) := CHR(39);
    begin
    q:=' select null link , month, ';
    g:=' group by month ';
    q:= q ||' to_char(decode((sum(nvl(i_worked,0)) + sum(nvl(o_worked,0))),0,0,null,0,(sum(nvl(i_cont,0)) + sum(nvl(o_cont,0))) *100/ (sum(nvl(i_worked,0)) + sum(nvl(o_worked,0)))),'||qte||'999.00'||qte||')||' || qte||'%'||qte || ' as Cont_Rt ';
    q:= q ||' from axe_csa_daily_performance_mth ';
    w := ' ';
    if :P1_CENTER != 'All' then
    if instr(w,'where')=0 then
         w:= ' where CENTER = :P1_CENTER ';
    else w:=w||' and CENTER = :P1_CENTER ';
    end if;
    end if;
    if :P1_UNIT != 'All' then
    if instr(w,'where')=0 then
         w:= ' where ops_unit = :P1_UNIT ';
    else w:=w||' and ops_unit = :P1_UNIT ';
    end if;
    end if;
    if :P1_SUBUNIT!= 'All' then
    if instr(w,'where')=0 then
         w:= ' where sub_unit = :P1_SUBUNIT ';
    else w:=w||' and sub_unit = :P1_SUBUNIT ';
    end if;
    end if;
    if :P1_TM!= 'All' then
    if instr(w,'where')=0 then
         w:= ' where MGR_LNM'||','||'MGR_FNM = :P1_TM ';
    else w:=w||' and MGR_LNM'||','||'MGR_FNM = :P1_TM ';
    end if;
    end if;
    if :P1_TL!= 'All' then
    if instr(w,'where')=0 then
         w:= ' where LDR_LNM'||','||'LDR_FNM = :P1_TM ';
    else w:=w||' and LDR_LNM'||','||'LDR_FNM = :P1_TL ';
    end if;
    end if;
    if :P1_FROM <= :P1_TO then
    if instr(w,'where')=0 then
         w:= ' where month >= TO_DATE('||qte||:P1_FROM||qte||','||qte||'mm/dd/yyyy'||qte||') and month <= TO_DATE('||qte||:P1_TO||qte||','||qte||'mm/dd/yyyy'||qte||')' ;
    else w:=w||' and month >= TO_DATE('||qte||:P1_FROM||qte||','||qte||'mm/dd/yyyy'||qte||') and month <= TO_DATE('||qte||:P1_TO||qte||','||qte||'mm/dd/yyyy'||qte||')' ;
    end if;
    end if;
    q:= q || w || g;
    return q;
    end;
    1 error has occurred
    Invalid chart query: select null link , month, to_char(decode((sum(nvl(i_worked,0)) + sum(nvl(o_worked,0))),0,0,null,0,(sum(nvl(i_cont,0)) + sum(nvl(o_cont,0))) *100/ (sum(nvl(i_worked,0)) + sum(nvl(o_worked,0)))),'999.00')||'%' as Cont_Rt from axe_csa_daily_performance_mth group by month
    Use the following syntax:
    SELECT LINK, LABEL, VALUE
    FROM ...
    Or use the following syntax for a query returning multiple series:
    SELECT LINK, LABEL, VALUE1 [, VALUE2 [, VALUE3...]]
    FROM ...
    LINK URL
    LABEL Text that displays along a chart axis.
    VALUE1, VALUE2, VALUE3... Numeric columns that define the data values.
    Note: The series names for Column and Line charts are derived from the column aliases used in the query.

    Hello,
    Your code:
    Invalid chart query: select null link , month, to_char(decode((sum(nvl(i_worked,0)) + sum(nvl(o_worked,0))),0,0,null,0,(sum(nvl(i_cont,0)) + sum(nvl(o_cont,0))) *100/ (sum(nvl(i_worked,0)) + sum(nvl(o_worked,0)))),'999.00')||'%' as Cont_Rt from axe_csa_daily_performance_mth group by monthtry:
    select null link , month label, to_char(decode((sum(nvl(i_worked,0)) + sum(nvl(o_worked,0))),0,0,null,0,(sum(nvl(i_cont,0)) + sum(nvl(o_cont,0))) *100/ (sum(nvl(i_worked,0)) + sum(nvl(o_worked,0)))),999) value from axe_csa_daily_performance_mth group by monthI didn't check all the brackets, but by appending a percentage it isn't a value (numeric) anymore....
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.logica.com/

  • How to convert from line chart data to CSV format

    Hi ,
    I am using Flex 3 and AS.
    I am getting data from MS SQL and display the data as line
    chart this is ok.
    But i want to convert this line chart data to CSV or .xsl
    format.I find one example in fourms the from data grid to CSV
    For this URL is
    http://www.abdulqabiz.com/blog/archives/flash_and_actionscript/datagriddataexporter.php
    But i want Line chart to CSV.Please help me.

    Line chart is a just a visual representation of some data
    that's sitting in your database. Isn't it? You load this in Flex,
    probably using HTTPService class, and pass it to some chart object.
    Now when use says that she needs it in CSV format, you're
    gonna have to send another request to the server to produce the
    same data, convert into CSV or XLS format and let user download it.
    Of course, if use doesn't want to download, you don't have to
    go to the server, at least for CSV format. You can convert the same
    data that used plot the chart to convert to CSV.
    Am I missing something here?
    ATTA

  • How to import  from sql server to oracle 10g

    Hi,
    I have given some file with no extention and the client told me that
    it has two tables in it emp and dept. which he extracted from sql server.
    Now I have the file with me.
    I have a local oracle database .
    Is it poosible to load that file into the oracle 10g database.
    If possible please send me the details. If not please tell me the details reqd to do the things.
    Thanks in Advance

    Well, what format is the file in? If it is a text file you should be able to use SQL*Loader.
    Can you view the file using (for example) Wordpad?
    Or from the command line (ie in a DOS box) just say
    TYPE myfileThen post the format for a few lines here, between and (use square brackets instead of curly)
    Regards Nigel

  • 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

  • Change Color from grid lines in Flash 2D Line Chart

    Hi,
    does anybody know how to change the color from the grid lines in 2D Line Chart?
    The color is always black (000000), I will use gray (CCCCCC).
    I can use a custom XML. Can you give me an example please???
    Where can I read something about the possible XML-Tags in Custom XML for Charts?
    Best regards
    Simona

    Simona,
    anychart.com has XML reference you can use for the charting engine in APEX.
    Try using custom XML and sticking this inside the grid > values tag:
    <lines color='0xCCCCCC' />- Marco

  • Showing one data point on a line chart - X-axis label placed away from its actual position

    Hi Guys,
         In line chart, i used CircleItemRenderer to show single data point. It shows correctly if it is single data point. But the x-axis label placed away from its actual position. Right now it displayed left most position where the line chart starts. I need to move that label straight of that datapoint where it plotted.  Please see the screen shot attached with this post.
    In screen shot, x-axis label "Jan" displayed in left most position.
         And how can we show the datatip for single datapoint. At present, we can't able to see the datatips also with single datapoint.
         Can any body help me to fix those two issues.

    I figured out a way to customize a single datapoint in a line series.  The solution is at this link:
    http://www.flexdeveloper.eu/forums/flex-charting/customize-a-datapoint-in-a-line-series/

  • Putting Category Counts in a Tool Tip on a Line Chart -SQL Server 2008 R2

    I have a line chart report that shows the total number of tickets processed each month. Within the same recordset is the data of who processed the ticket.  So I want to add in the ToolTip on the Datapoints the number of tickets processed  by each
    persion.  There are just a few people.
    So the line chart will have a datapoint at 20, but Joe did 5 and Jim did 15. What expression would I put in the tooltip? I even added datavalues for the Names and hid the data on the chart.  I am just not sure how to reference or write the expression
    that says  joe has 5 and jim has 15 in the ToolTip.  Then I would want an "Other" with all Rogues not Jim or Joe.
    Example of Data
    Ticket #  DATE_REPORTED  ASSIGNEE_FULL_NAME
    1  2013-01-16 08:31:28.000  Joe
    2  2013-01-17 07:01:23.000  Jim
    3  2013-02-04 17:42:23.000   Jim
    4  2013-02-04 18:42:23.000   Bill
    Thanks in advance.
    DBA Developer

    Hi Paul,
    As per my understanding, if we want to display some detail information depend on one field, we should add a group on that filed ahead. In your scenario, we should add a Category group or Series group in the chart, then write an expression to display the
    detail information. While, if we additional add a group in the chart, the chart would showed with other manners. It will be different from the original chart. So, I think we cannot directly achieve the goal at the moment.
    As a workaround, I suggest we can create another report to only display the detail information, then add a drill through action in the main report to jump to that report when we click the line. For more details, please refer to the following steps:
    Drag a Line Chart on the design surface of the new report.
    Insert [Count(Ticket__)] in the Values pane.
    Insert the expression below as the Category Group Label expression and Group expression:
    =format(Fields!DATE_REPORTED.Value,"MM")
    Insert the expression below as the Series Group Label expression and Group expression:
    =iif(Fields!ASSIGNEE_FULL_NAME.Value="Joe",Fields!ASSIGNEE_FULL_NAME.Value,iif(Fields!ASSIGNEE_FULL_NAME.Value="Jim",Fields!ASSIGNEE_FULL_NAME.Value,"Others"))
    In the main report, right-click the line to open Series Properties dialog box.
    Click Action in the left pane, enable Go to Report, then specify the new report name in the drop-down report.
    If we want to see the detail information, we can click the line in the main report, it navigates to the new report. Then we can click “Back to Parent Report” action to return to the main report.
    Hope this helps.
    Regards,
    Katherine Xiong
    If you have any feedback on our support, please click
    here.
    Katherine Xiong
    TechNet Community Support

  • Webi Line Chart to Start from Axis Origin

    Hi,
    Need a quick help in BI4.0 webi line chart formatting.
    I have datetime on x-axis and cash flow on Y-axis.
    Say my cash flow starts at 9am on a day with $100 , my line chart starts the plot from 9am i.e. (9am,$100)
    instead I want the line plot to always start from (0,0)
    This is probably a chart option, but i dont find it.

    Hi Thangaraj,
    I have a similar requirement for a line chart to start from 0,0. while its min value is greater than 0.
    We are on BO 4.1 SP4  and there is no direct chart option for this.
    I would like to know whether you were able to achieve this in web intelligence.
    I really appreciate your reply.
    Thanks,
    Sri

Maybe you are looking for

  • HP Color LaserJet CP2025dn Printer Wired Connectivity and have USB simultaneously?

    Hello to all; Thank you in advance. I have a HP Color LaserJet CP2025dn Printer.  The question, can I use ethernet connection and have USB simultaneously?  Ethernet is faster, right? Currently, I have the printer connected to network via Ethernet Wir

  • IC WebClient Transactionstarter- Browser Problem

    Hello, I'm starting a extern URL about the transaction starter from the IC WebClient. The problem is, that the new extern browser window didn't have an navigationbar, adressbar and no buttons(back & foreward)! How can I get these back? Is it customiz

  • Lightroom 4.3 moving slow in Develop module

    After i updated from LR4 to LR4.3 ,,, i have been using LR 4.3 for a couple hrs now only to find out i am having same issues as before: 1) when i select an image in the film strips, it shows it in Navigation panel but takes forever to change in my de

  • AP Checks - Some print on next page

    Some of the Payables checks are printing on the top of the next page. Most all the checks in the batch are ok, but it seems to be random that some checks print on the next page. I do not believe it is my template since most of the checks print fine.

  • PI Java VS ABAP Authorizations

    Hi, I'm trying to create an authorization profile for individual support teams for integration. Using the authorization object S_XMB_MONI, we are able to restrict the users to display/restart/cancel messages belonging to a specific party/service/inte