Histogram using CL_GUI_CHART_ENGINE

Hi,
   I am trying to build a histogram using CL_GUI_CHART_ENGINE as a better looking chart than the standard histogram chart in QGP1(2) transactions.  First of all even if I use the same class as QGP1(2), the columns are showing up at different locations.The other problem is bell curve (gaussian distribution curve) is not being displayed sometimes, and other times, it shows up as a very small curve. 
Are there any parameters that can be tweaked to manipulate the bell curve.  I could not find any parameters.  I can send you the config/data xml files, if you need any additional informations.  The Data file is a simple histogram xml file with the y-values, and nothing more.
Thanks.
Albert

Hi All,
   SAP has fixed the problem.  You have to download the latest GUI patch.  Scaling issue has been resolved, and SAP has also provided a GausianScale parameter that will allow us to manipulate the height of the bell curve.  By default it 30% of the maximum bar height.
Albert

Similar Messages

  • Histogram using JavaFX

    Hi all,
    Kindly guide me how to create histogram in JavaFX ?
    is it possible to do it using BarChart? how to label the bin edges (ticks)?
    Thanks,
    Gunjan

    Download the JDK 8 samples.
    Find and run the JavaFX 8 Ensemble application within the sample.
    Try out the audio bar chart in the application.
    See if the audio bar chart gives you the information you need to build your chart.
    The source for all of the sample application in Ensemble is included with the Ensemble application (under BSD license).
    Here is the replicated source of the main application for convenience.
    * Copyright (c) 2008, 2014, Oracle and/or its affiliates.
    * All rights reserved. Use is subject to license terms.
    * This file is available and licensed under the following license:
    * Redistribution and use in source and binary forms, with or without
    * modification, are permitted provided that the following conditions
    * are met:
    *  - Redistributions of source code must retain the above copyright
    *    notice, this list of conditions and the following disclaimer.
    *  - Redistributions in binary form must reproduce the above copyright
    *    notice, this list of conditions and the following disclaimer in
    *    the documentation and/or other materials provided with the distribution.
    *  - Neither the name of Oracle Corporation nor the names of its
    *    contributors may be used to endorse or promote products derived
    *    from this software without specific prior written permission.
    * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
    * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
    * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
    * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
    * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
    * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
    * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
    * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
    * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
    * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
    * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
    package ensemble.samples.charts.bar.audio; 
    import javafx.application.Application;
    import javafx.scene.Parent;
    import javafx.scene.Scene;
    import javafx.scene.chart.BarChart;
    import javafx.scene.chart.CategoryAxis;
    import javafx.scene.chart.NumberAxis;
    import javafx.scene.chart.XYChart;
    import javafx.scene.media.AudioSpectrumListener;
    import javafx.scene.media.Media;
    import javafx.scene.media.MediaPlayer;
    import javafx.stage.Stage;
    * Bar chart that shows audio spectrum of a music file being played.
    public class AudioBarChartApp extends Application {
        private XYChart.Data<String, Number>[] series1Data;
        private AudioSpectrumListener audioSpectrumListener;
        private static final String AUDIO_URI = System.getProperty("demo.audio.url",
                "http://download.oracle.com/otndocs/products/javafx/oow2010-2.flv");
        private MediaPlayer audioMediaPlayer;
        private static final boolean PLAY_AUDIO = Boolean.parseBoolean(
                System.getProperty("demo.play.audio", "true"));
        public AudioBarChartApp() {
            audioSpectrumListener = (double timestamp, double duration, float[] magnitudes, float[] phases) -> {
                for (int i = 0; i < series1Data.length; i++) {
                    series1Data[i].setYValue(magnitudes[i] + 60);
        public void play() {
            this.startAudio();
        @Override
        public void stop() {
            this.stopAudio();
        public Parent createContent() {
            final CategoryAxis xAxis = new CategoryAxis();
            final NumberAxis yAxis = new NumberAxis(0, 50, 10);
            final BarChart<String, Number> bc = new BarChart<>(xAxis, yAxis);
            bc.getStylesheets().add(AudioBarChartApp.class.getResource("AudioBarChart.css").toExternalForm());
            bc.setLegendVisible(false);
            bc.setAnimated(false);
            bc.setBarGap(0);
            bc.setCategoryGap(1);
            bc.setVerticalGridLinesVisible(false);
            // setup chart
            bc.setTitle("Live Audio Spectrum Data");
            xAxis.setLabel("Frequency Bands");
            yAxis.setLabel("Magnitudes");
            yAxis.setTickLabelFormatter(new NumberAxis.DefaultFormatter(yAxis, null, "dB"));
            // add starting data
            XYChart.Series<String, Number> series1 = new XYChart.Series<>();
            series1.setName("Data Series 1");
            //noinspection unchecked
            series1Data = new XYChart.Data[128];
            String[] categories = new String[128];
            for (int i = 0; i < series1Data.length; i++) {
                categories[i] = Integer.toString(i + 1);
                series1Data[i] = new XYChart.Data<String, Number>(categories[i], 50);
                series1.getData().add(series1Data[i]);
            bc.getData().add(series1);
            return bc;
        private void startAudio() {
            if (PLAY_AUDIO) {
                getAudioMediaPlayer()
                        .setAudioSpectrumListener(audioSpectrumListener);
                getAudioMediaPlayer().play();
        private void stopAudio() {
            if (getAudioMediaPlayer().getAudioSpectrumListener() == audioSpectrumListener) {
                getAudioMediaPlayer().pause();
        private MediaPlayer getAudioMediaPlayer() {
            if (audioMediaPlayer == null) {
                Media audioMedia = new Media(AUDIO_URI);
                audioMediaPlayer = new MediaPlayer(audioMedia);
                audioMediaPlayer.setCycleCount(MediaPlayer.INDEFINITE);
            return audioMediaPlayer;
        @Override
        public void start(Stage primaryStage) throws Exception {
            primaryStage.setScene(new Scene(createContent()));
            primaryStage.show();
            play();
         * Java main for when running without JavaFX launcher
        public static void main(String[] args) {
            launch(args);
    AudioBarChart.css
    .chart-bar { 
        -fx-background-color: #69de01;
        -fx-background-insets: 0;
        -fx-background-radius: 0;
    .data0.chart-bar { -fx-background-color: #69de01; }
    .data1.chart-bar { -fx-background-color: #69de01; }
    .data2.chart-bar { -fx-background-color: #69de01; }
    .data3.chart-bar { -fx-background-color: #69de01; }
    .data4.chart-bar { -fx-background-color: #69de01; }
    .data5.chart-bar { -fx-background-color: #69de01; }
    .data6.chart-bar { -fx-background-color: #69de01; }
    .data7.chart-bar { -fx-background-color: #69de01; }
    .data8.chart-bar { -fx-background-color: #75e101; }
    .data9.chart-bar { -fx-background-color: #75e101; }
    .data10.chart-bar { -fx-background-color: #75e101; }
    .data11.chart-bar { -fx-background-color: #75e101; }
    .data12.chart-bar { -fx-background-color: #75e101; }
    .data13.chart-bar { -fx-background-color: #75e101; }
    .data14.chart-bar { -fx-background-color: #75e101; }
    .data15.chart-bar { -fx-background-color: #75e101; }
    .data16.chart-bar { -fx-background-color: #86e701; }
    .data17.chart-bar { -fx-background-color: #86e701; }
    .data18.chart-bar { -fx-background-color: #86e701; }
    .data19.chart-bar { -fx-background-color: #86e701; }
    .data20.chart-bar { -fx-background-color: #86e701; }
    .data21.chart-bar { -fx-background-color: #86e701; }
    .data22.chart-bar { -fx-background-color: #86e701; }
    .data23.chart-bar { -fx-background-color: #86e701; }
    .data24.chart-bar { -fx-background-color: #9aee01; }
    .data25.chart-bar { -fx-background-color: #9aee01; }
    .data26.chart-bar { -fx-background-color: #9aee01; }
    .data27.chart-bar { -fx-background-color: #9aee01; }
    .data28.chart-bar { -fx-background-color: #9aee01; }
    .data29.chart-bar { -fx-background-color: #9aee01; }
    .data30.chart-bar { -fx-background-color: #9aee01; }
    .data31.chart-bar { -fx-background-color: #9aee01; }
    .data32.chart-bar { -fx-background-color: #b0f000; }

  • Use awt to display histogram in a JSP?!

    Hi,
    I have been searching the web in the area awt and JSP and it feels like I am fumbling in the dark. I want to display a histogram, which shall be updated continuously from a database. I have found a program example, which is creating a histogram using awt. This example is using a frame and my question is, could I import this frame to my JSP or is there a way to make use of the awt class in a JSP and display, draw the histogram directly in my JSP page?
    Thanks in advance!

    The only way to use AWT in a JSP would be to put the
    AWT in a applet and put the applet in the JSP.

  • Create Gantt-Chart by using class CL_GUI_CHART_ENGINE

    Hello,
    my goal is to create a Gantt-Chart by using CL_GUI_CHART_ENGINE .
    I´ve copied report GRAPHICS_GUI_CE_DEMO and tried to modify its XML data in order to get a Gant-Chart
    but I failed. I´ve also used SAP Chart-Designer to get an executable customizing for the chart engine
    but this way was unsuccesful too. Every time the chart shows no data...
    Is there anyone who has an example (code, docu, xml) to create a Gantt-Chart?
    Thank you.
    Kind regards,
    Oliver
    Edited by: Oliver Seifer on Mar 24, 2011 2:16 PM

    Hi,
    Please try this sample code. You'll need a customizing from ChartDesigner to launch it.
    I have hardcoded sample data but you can take it further from here.
    Please use following settings in the wizard
    Step 1
    Gantt
    Step 2
    Series Count 2
    Category Count 1
    Step 3
    Defaults
    Step 4
    Defaults
    Step 5
    Defaults
    Step 6
    Defaults
    Step 7
    Save as...
    DATA lt_cust_text TYPE w3htmltabtype.
      DATA lt_data_text TYPE w3htmltabtype.
      DATA wa_data_text TYPE w3html.
      IF g_ce_container IS INITIAL.
        CREATE OBJECT g_ce_container
          EXPORTING
            container_name = 'CONTAINER'.
        CREATE OBJECT g_ce_viewer
          EXPORTING
            parent = g_ce_container.
      ENDIF.
      cl_gui_frontend_services=>gui_upload(
        EXPORTING
          filename                = 'path to your customising\gant.xml'
        CHANGING
          data_tab                =     lt_cust_text
        EXCEPTIONS
          OTHERS                  = 19 ).
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      g_ce_viewer->set_customizing( data_table = lt_cust_text ).
      APPEND '<?xml version="1.0" encoding="utf-8"?>' TO lt_data_text.
      APPEND '<ChartData> ' TO lt_data_text.
      APPEND '<Categories><Category>Category 1</Category></Categories>' TO lt_data_text.
      APPEND '<Series customizing="Series1">' TO lt_data_text.
      APPEND '<Point>' TO lt_data_text.
      APPEND '<Value type="time">20000301</Value>' TO lt_data_text.
      APPEND '<Value type="time">20000305</Value>' TO lt_data_text.
      APPEND '<Value type="time">20000310</Value>' TO lt_data_text.
      APPEND '<Value type="time">20000401</Value>' TO lt_data_text.
      APPEND '</Point>' TO lt_data_text.
      APPEND '</Series>' TO lt_data_text.
      APPEND '<Series customizing="Series2">' TO lt_data_text.
      APPEND '<Point>' TO lt_data_text.
      APPEND '<Value type="time">20000302</Value>' TO lt_data_text.
      APPEND '<Value type="time">20000319</Value>' TO lt_data_text.
      APPEND '</Point>' TO lt_data_text.
      APPEND '</Series>' TO lt_data_text.
      APPEND '</ChartData>' TO lt_data_text.
      g_ce_viewer->set_data( data_table = lt_data_text ).
      g_ce_viewer->render( ).

  • Created a pdf file showing a graph generated with CL_GUI_CHART_ENGINE

    Hi Experts!
    Please, anyone has already created a pdf file showing a graph generated with CL_GUI_CHART_ENGINE??
    Could anyone help me with this requirement?
    Thanks in advance,
    Best regards

    Hi,
    I searched and found another solution, because with the code from the link above I got everytime a short dump, maybe I did something wrong.
    The solution works with Adobe Form
    1. I used the class cl_igs_chart_engine to create a chart with my data and customizing to get the binary data of the image.
    2. Convert the binary tab to xstring.
    3. You can use this xstring on the Adobe Form to display the image.
    Maybe the following tips are useful.
    *How to get the data of chart you can see in the class
    CL_TIME_CHART_SIMPLE (use cl_gui_chart_engine for the chart but  class cl_igs_chart_engine for saving the image)
    *How to bind the image to the importing parameter (xstring)
    /people/thomas.jung3/blog/2005/07/13/lessons-learned-from-adobe-forms-development
    Regards

  • Why Oracle not using the correct indexes after running table stats

    I created an index on the table and ran the a sql statement. I found that via the explain plan that index is being used and is cheaper which I wanted.
    Latter I ran all tables stats and found out again via explain plan that the same sql is now using different index and more costly plan. I don't know what is going on. Why this is happening. Any suggestions.
    Thx

    I just wanted to know the cost using the index.
    To gather histograms use (method_opt is the one that causes the package to collect histograms)
    DBMS_STATS.GATHER_SCHEMA_STATS (
    ownname => 'SCHEMA',
    estimate_percent => DBMS_STATS.AUTO_SAMPLE_SIZE,
    block_sample => TRUE,
    method_opt => 'FOR ALL COLUMNS SIZE AUTO',
    degree => 4,
    granularity => 'ALL',
    cascade => TRUE,
    options => 'GATHER'
    );

  • How to manualy delete histograms in 10.2.0.3 .

    Hi,
    I've got serious issue with my 10.2.0.3 4 node rac .
    The problem is rowcache size in particular dc_histogram_defs :
    CACHE#     TYPE     SUBORDINATE#     PARAMETER     COUNT     USAGE     FIXED     GETS     GETMISSES     SCANS     SCANMISSES     SCANCOMPLETES     MODIFICATIONS     FLUSHES     DLM_REQUESTS     DLM_CONFLICTS     DLM_RELEASES
    16     PARENT          dc_histogram_defs     1116884     1116884     0     38680620     19580733     0     0     0     113607     113605     19847714     15495     18387433
    8     PARENT          dc_objects     55757     55757     55     426334     66078     0     0     0     8796     7012     80957     2936     3444
    2     PARENT          dc_segments     52442     52442     0     1923667     576468     0     0     0     477486     477444     1484668     2654     505099
    16     SUBORDINATE     0     dc_histogram_data     33784     33784     0     1051801     118655     0     0     0     10468     8652     0     0     0
    8     SUBORDINATE     0     dc_object_grants     903     903     0     23537     905     0     0     0     0     0     0     0     0
    16     SUBORDINATE     1     dc_histogram_data     722     722     0     99115     4372     0     0     0     3026     2736     0     0     0
    11     PARENT          dc_object_ids     569     569     55     986083     8803     0     0     0     2566     2409     14155     128     4728
    3     PARENT          dc_rollback_segments     411     411     1     1176543     600     0     0     0     158     157     1161     190     0
    10     PARENT          dc_usernames     259     259     0     128026     294     0     0     0     0     0     294     0     35
    6     PARENT          dc_files     208     208     0     2912     208     0     0     0     0     0     208     0     0
    17     PARENT          dc_global_oids     123     123     0     105714     158     0     0     0     0     0     158     0     35
    7     PARENT          dc_users     91     91     0     3180849     238     0     0     0     23     23     288     3     144
    24     PARENT          outstanding_alerts     82     82     0     14220     13120     0     0     0     44     44     26935     13009     2
    7     SUBORDINATE     1     dc_users     81     81     0     1175519     169     0     0     0     0     0     0     0     0
    5     PARENT          dc_tablespace_quotas     56     56     0     679614     114     0     0     0     3150     3150     192726     55     3
    0     PARENT          dc_tablespaces     44     44     0     2728891     114     0     0     0     0     0     114     0     70
    7     SUBORDINATE     0     dc_users     29     29     0     49971     97     0     0     0     0     0     0     0     0
    12     PARENT          dc_constraints     24     24     0     9850     4050     0     0     0     9848     9828     16352     161     598
    13     PARENT          dc_sequences     11     11     0     12824     273     0     0     0     12824     12824     23197     258     4
    15     PARENT          dc_database_links     4     4     0     2318544     42     0     0     0     0     0     42     0     38
    22     PARENT          dc_awr_control     1     1     0     1654     41     0     0     0     16     16     73     40     0
    14     PARENT          dc_profiles     1     1     0     25642     5     0     0     0     0     0     5     0     4
    25     PARENT          dc_hintsets     0     0     0     0     0     0     0     0     0     0     0     0     0
    19     SUBORDINATE     0     dc_partition_scns     0     0     0     0     0     0     0     0     0     0     0     0     0
    7     SUBORDINATE     2     dc_users     0     0     0     0     0     0     0     0     0     0     0     0     0
    34     SUBORDINATE     0     realm auth     0     0     0     0     0     0     0     0     0     0     0     0     0
    36     SUBORDINATE     0     Realm Subordinate Cache     0     0     0     0     0     0     0     0     0     0     0     0     0
    32     PARENT          qmtmrctq_cache_entries     0     0     0     0     0     0     0     0     0     0     0     0     0
    31     PARENT          qmtmrciq_cache_entries     0     0     0     0     0     0     0     0     0     0     0     0     0
    30     PARENT          qmtmrctp_cache_entries     0     0     0     0     0     0     0     0     0     0     0     0     0
    29     PARENT          qmtmrcip_cache_entries     0     0     0     0     0     0     0     0     0     0     0     0     0
    28     PARENT          qmtmrctn_cache_entries     0     0     0     0     0     0     0     0     0     0     0     0     0
    27     PARENT          qmtmrcin_cache_entries     0     0     0     0     0     0     0     0     0     0     0     0     0
    23     PARENT          dc_qmc_ldap_cache_entries     0     0     0     0     0     0     0     0     0     0     0     0     0
    9     PARENT          dc_qmc_cache_entries     0     0     0     0     0     0     0     0     0     0     0     0     0
    21     PARENT          rule_or_piece     0     0     0     0     0     0     0     0     0     0     0     0     0
    20     PARENT          rule_info     0     0     0     0     0     0     0     0     0     0     0     0     0
    26     PARENT          global database name     0     0     0     0     0     0     0     0     0     0     0     0     0
    39     PARENT          audit collector     0     0     0     0     0     0     0     0     0     0     0     0     0
    38     PARENT          format     0     0     0     0     0     0     0     0     0     0     0     0     0
    37     PARENT          event map     0     0     0     0     0     0     0     0     0     0     0     0     0
    36     PARENT          Realm Object cache     0     0     0     0     0     0     0     0     0     0     0     0     0
    35     PARENT          Command rule cache     0     0     0     0     0     0     0     0     0     0     0     0     0
    34     PARENT          realm cache     0     0     0     0     0     0     0     0     0     0     0     0     0
    18     PARENT          dc_outlines     0     0     0     0     0     0     0     0     0     0     0     0     0
    19     PARENT          dc_table_scns     0     0     0     2170     2170     0     0     0     0     0     2170     0     0
    33     PARENT          kqlsubheap_object     0     0     0     0     0     0     0     0     0     0     0     0     0
    21     SUBORDINATE     0     rule_fast_operators     0     0     0     0     0     0     0     0     0     0     0     0     0
    1     PARENT          dc_free_extents     0     0     0     0     0     0     0     0     0     0     0     0     0
    4     PARENT          dc_used_extents     0     0     0     0     0     0     0     0     0     0     0     0     0We are getting row cache locks (rac node hangs for 30 min or so) them we got 04031 error (space problem in shared pool which is 5GB, with 15% reserver for reserved size) .
    This is data warehouse with hundreds of tousands of object.
    I came to idea that we should delete majority of histograms, but usual delete via delete_table_Stats makes us
    to recalculate statistics on whole table (with size 1) and thats is huge impact and time consuming task.
    So is there any way I can 'update' dictionary via dbms_Stats.set_column_stats, and make histograms to disapear ?
    Regards.
    Greg

    regather the statistics on the table with method_opt=>for all columns or for all indexed columns or whatever size 1
    The 'size 1' directive will remove the histogram statistics.
    Sorry, didn't read ur post in a hurry. Below article (http://www.freelists.org/post/oracle-l/Any-quick-way-to-remove-histograms,13) removes histogram without re-analyzing the table. Hope that helps!!!
    On 3/16/07, Wolfgang Breitling <breitliw@xxxxxxxxxxxxx> wrote:
    I also did a quick check and just using
    exec
    dbms_stats.set_column_stats(user,'table_name',colname=>'column_name',d
    istcnt=>
    <num_distinct>);
    will remove the histogram without removing the low_value andhigh_value.
    At 01:40 PM 3/16/2007, Alberto Dell'Era wrote:
    On 3/16/07, Allen, Brandon <Brandon.Allen@xxxxxxxxxxx> wrote:
    Is there any faster way to remove histograms other than
    re-analyzing
    >
    the table? I want to keep the existing table, index & columnstats,
    >
    but with only 1 bucket (i.e. no histograms).You might try the attached script, that reads the stats using
    dbms_stats.get_column_stats and re-sets them, minus the histogram,
    using dbms_stats.set_column_stats.
    I haven't fully tested it - it's only 10 minutes old, even if Ihave
    slightly modified for you another script I've used for quite some
    time - and the spool on 10.2.0.3 seems to confirmthat the histogram
    is, indeed, removed, while all the other statistics are preserved.I
    have also reset density to 1/num_distinct, that is the value youget
    if no histogram is collected.regards,
    naren
    Edited by: fuzzydba on Oct 25, 2010 10:52 AM

  • Changing color of columns in CL_GUI_CHART_ENGINE

    Dear Developers,
    I am displaying a Columns Graph using class CL_GUI_CHART_ENGINE. My requirement is to change color of selected columns based on their height. For example if height of the column exceepds 10, then the color of that particular color is to be made red. Is that possible using CL_GUI_CHART_ENGINE ??
    Thanks and Regards,
    kartik

    Hi,
          Refer below link:
    https://forums.sdn.sap.com/click.jspa?searchID=3958197&messageID=2474585
    <b>Reward points</b>
    Regards

  • Cl_gui_chart_engine Bar chart refresh

    Hello,
    I am using cl_gui_chart_engine to show barchart. But i want to show 10 records at one time. I manage to do the itab and xml data changing part using a button click. But when i use command  call method g_ce_viewer->render, it doesn't show the updated records.
    Thanks in advance.

    (okay, I know it's out of date, but might be useful to someone somewhere...)
    As KAI said, it's not advisable to re-render or repetitively create the viewer object.
    If you just re-use the existing container+object, and recall the method to set the graph:
    g_ce_viewer->set_data( xdata = data_xml ).
    with your new data.
    In my transaction, we use this to monitor Material Usage. When the user dclicks a material in the list in an ALV grid, an event gets triggered, that researches the Material Usage for that Material, reuses the XML Transformations, then we set the data on the graph. This means that the objects don't get recreated, but the data presented to the user changes.
    Edited by: PatrickFontDean on Sep 14, 2011 5:55 PM

  • CL_GUI_CHART_ENGINE Graph As Email in Background

    Hi All,
    I am using CL_GUI_CHART_ENGINE class to display multiple graphs  with custom container using splitter method ,when i am running it in foreground everything is fine i can print/save  graphs seperatly.
    If i use docking container to display CL_GUI_CHART_ENGINE will it run in background ?
    My main problem is to send email with both graphs.
    Is it possible to send email in background? if Yes please suggest a way.
    As i have gone through many threads and i could'nt find the right way to do this.
    Looking for some suggestions..
    Thanks,
    Pavan

    Hi,
    Have you consider using SVG ?
    http://en.wikipedia.org/wiki/Scalable_Vector_Graphics
    Regards.
    From here:
    http://bost.ocks.org/mike/bar/2/
    Code:
    <!DOCTYPE html>
    <style>
    .chart rect {
      fill: steelblue;
    .chart text {
      fill: white;
      font: 10px sans-serif;
      text-anchor: end;
    </style>
    <svg class="chart" width="420" height="120">
      <g transform="translate(0,0)">
        <rect width="40" height="19"></rect>
        <text x="37" y="9.5" dy=".35em">4</text>
      </g>
      <g transform="translate(0,20)">
        <rect width="80" height="19"></rect>
        <text x="77" y="9.5" dy=".35em">8</text>
      </g>
      <g transform="translate(0,40)">
        <rect width="150" height="19"></rect>
        <text x="147" y="9.5" dy=".35em">15</text>
      </g>
      <g transform="translate(0,60)">
        <rect width="160" height="19"></rect>
        <text x="157" y="9.5" dy=".35em">16</text>
      </g>
      <g transform="translate(0,80)">
        <rect width="230" height="19"></rect>
        <text x="227" y="9.5" dy=".35em">23</text>
      </g>
      <g transform="translate(0,100)">
        <rect width="420" height="19"></rect>
        <text x="417" y="9.5" dy=".35em">42</text>
      </g>
    </svg>
    Result:

  • What's with the Histogram?

    The default for the histogram used to be rgb view which is the one I prefer. Now it is color. In order to get rgb one must first change to expanded view to gain access to option and then choose rgb from list of options then go back to compact view. Very annoying. More annoying is the fact that it can't be saved as a desired workspace and every time a new image is opened it goes back to its default and you have to repeat the process all over again! Are there any workarounds for this? If so, I would appreciate a solution.

    Not sure if that info is stored with the file being edited, or as a global pref, but if it's a global pref, they (global prefs) can become corrupted, so try to rebuild your Photoshop preferences and see if the behavior reverts to the preferred way of showing the Histogram.
    If not, then it may be saved as a document preference, and in that case, I don't have any ideas. Is this Mac, or PC?
    Best to move this question over to the Photoshop desktop product forum, this was posted to the Photoshop.com forum, which may not have as many desktop Photoshop using people participating.
    -Mark

  • Histogram on non-indexed columns

    Hi All,
    Is there any point in having histogram on non-indexed column? If we use a non-indexed column for filtering data, there will be a full table scan anyway.
    Does having histogram in such column make any difference.
    I am on v11.2. Are there any differences/advances in this respect in 11g ?
    Thanks in advance.

    rahulras wrote:
    Hi All,
    Is there any point in having histogram on non-indexed column? If we use a non-indexed column for filtering data, there will be a full table scan anyway.
    Does having histogram in such column make any difference.
    I am on v11.2. Are there any differences/advances in this respect in 11g ?
    Thanks in advance.Histogram used to correct estimate selectivity(~ cardinality) by CBO if there are indexes or no!.So if there are indexes then after estimating selectivity based on values CBO can be select FULL TABLE SCAN but not INDEX SCAN!.Finally histograms use when your columns data non uniform distributed(actually skewed).

  • Single banded histogram?

    Hi all
    i have created a histogram using JAI successfully for 3 banded image RGB.
    how to get the histogram for a single band from that object?

    Technically a true histogram for a colored image would be a 3-D histogram with counts of rgb values (requiring 4-D to visualize it). But there are certain monumental problems in messing around with a 256x256x256 int array. Thus we usually go with different approaches for representing a colored image's histogram (for example using HLS space and doing a histogram of the "L" component or creating 3 seperate 256x256 int arrays representing RG, GB, RB).
    Thus I'm I little curious on what you actually mean when you say
    i have created a histogram using JAI successfully for 3 banded image RGBEven JAI won't be able to create a true histogram for an RGB image. In the documentation of the Histogram class it even says
    For an image that has multiple samples per pixel (multi-banded images), a separate list of bins represents each individual band. Thus if you are using the Histogram class, then you in fact have three seperate histograms of each band in the image.

  • Some XML customizing not displayed correctly in graphic in PDF form

    Hello,
    we have following problem: We want to create a read-only PDF with an integrated graphic with analytical data.
    The PDF form is created with SFP. Data is extracted and the graphic rendered with the class CL_IGS_CHART_ENGINE.
    We used SAP chart designer and transformed the XML into our string.
    The graphic is displayed in our PDF, but some customizing settings in our XML are neglected, especially the font type, her only courier is displayed. Also some manual positions of legends don't work.
    When I display the chart in the SAP GUI using cl_gui_chart_engine everything works fine, so  I assume that the XML and the  transformation is correct.
    So where is the problem: Mime type? codepage? printing job?
    Thanks and Regards
    Andreas

    Hello,
    I would like to know what type of scenario do you use. Is that WD form? Or offline form?
    Based on the type, you may find your solution here:
    When you need to send a picture into the offline form: another image question - using Regular ABAP not web dynpro and Display a logo dynamically in adobe form
    For the WD form: /people/bhawanidutt.dabral/blog/2007/11/15/how-to133-integrate-adobe-form-on-webdynpro-for-abap-and-deploy-it-on-portal
    What MIME type (picture type) has your generated picture? JPG for example is ok, but for exotic types please check in your LCD (place Image on the layout and open the dialog for picture assignment, you can see the allowed picture types in there).
    Regards, Otto
    p.s.: What is the mentioned XML customizing? XML is the form of the femplate, but I have never customized anything IN THERE. Did you change the XML source manually? Or what type of changes are not managed correctly?

  • How to monitor SQL Apply for 10.2.0.3 logical standby database

    We have a logical standby database setup for reporting purposes. Users want to monitor whether sql apply is working or failed closely as it has reporting repercations.
    In case of 9i databases , there was "Data Not Applied (logs)" metric which we used for alerting and paging, in case a backlog of more than 5 log files developed.
    With 10.2.0.3 onwards, the metric no more exists.
    I would like to learn from other, how to monitor the setup, so that if the backlog in logs shipping or applying develops, we get page.
    Regards.

    regather the statistics on the table with method_opt=>for all columns or for all indexed columns or whatever size 1
    The 'size 1' directive will remove the histogram statistics.
    Sorry, didn't read ur post in a hurry. Below article (http://www.freelists.org/post/oracle-l/Any-quick-way-to-remove-histograms,13) removes histogram without re-analyzing the table. Hope that helps!!!
    On 3/16/07, Wolfgang Breitling <breitliw@xxxxxxxxxxxxx> wrote:
    I also did a quick check and just using
    exec
    dbms_stats.set_column_stats(user,'table_name',colname=>'column_name',d
    istcnt=>
    <num_distinct>);
    will remove the histogram without removing the low_value andhigh_value.
    At 01:40 PM 3/16/2007, Alberto Dell'Era wrote:
    On 3/16/07, Allen, Brandon <Brandon.Allen@xxxxxxxxxxx> wrote:
    Is there any faster way to remove histograms other than
    re-analyzing
    >
    the table? I want to keep the existing table, index & columnstats,
    >
    but with only 1 bucket (i.e. no histograms).You might try the attached script, that reads the stats using
    dbms_stats.get_column_stats and re-sets them, minus the histogram,
    using dbms_stats.set_column_stats.
    I haven't fully tested it - it's only 10 minutes old, even if Ihave
    slightly modified for you another script I've used for quite some
    time - and the spool on 10.2.0.3 seems to confirmthat the histogram
    is, indeed, removed, while all the other statistics are preserved.I
    have also reset density to 1/num_distinct, that is the value youget
    if no histogram is collected.regards,
    naren
    Edited by: fuzzydba on Oct 25, 2010 10:52 AM

Maybe you are looking for