Displaying regression line slope on line chart

Post Author: Derk_Niblick
CA Forum: Charts and Graphs
I've been having some difficulty building a chart. I'm trying to plot two different series onto a chart. A scatterchart is ideally what I am looking to use, but I cannot get the trendlines to work (I can't get the two different values into one series). I tried putting it into a line chart and while it's not working exactly how I would like it to, the trendlines work with it. However, I cannot calculate the slope of that line. I can view the formula (the linear trendline formula is in the standard y=mx+b type format), but i'm looking for the actual numeric slope value (y2-y1/x2-x1 for all you mathmatically inclinde folk).  If I could get the program to give me two points on that line I can write a formula to calculate the actual slope of the line. Ultimately, I would like to chart the two different series (for example x = one value and y= another value giving me that precise location on the chart), draw a trendline through the points, and give a slope value. Can someone at least point me in the right direction.

Hello Kai,
I would like work on SAP Chart Designer tool. Could you provide me any information how to use and the steps to download this tool from SDN.
I did not find this SAP Chart Designer tool in the SDN downloads.
Could you please proive me the path or the steps to do this.
Please do the needful.
Thanks in advance!!!
Regards
Prasad

Similar Messages

  • Column & Line in a single chart. Ignore Grouping for Line

    Hi,
    Here is the scenario to show a chart for "Resource Allocation to selected Projects and capacity".
    1. Show Staked Columns for Projects<o:p></o:p>
    2. Show Capacity of Resource with Line Chart (both should be in same chart)<o:p></o:p>
    3. Group By Projects(Series Group) and Category Groups By Month.<o:p></o:p>
    Following is the desired out:
    Problem I'm facing:
        I was able to show both Columns and line by changing the chart type for capacity. But issue is that Group By (series Grouping) is applying to Line (Resource capacity) as well. So multiple resource capacity lines are appearing on the
    graph. It would be good, If charts allows to display only one line by summing all group values for resource capacity. 
    So, Can we stop considering group By for line chart(Resource capacity)?
    Below screen shows that how current report displaying.
    Thanks in advance.
    Thanks, Ram

    Hi ram,
    According to your description, I can reproduce the same issue. Since the values in the chart is always relate to Category Groups and Series Groups. The behavior is by design in SQL Server Reporting Services (SSRS).
    In SSRS, chart is similar to the matrix.
    The Columns group in the matrix is identical to the Category Groups area in the chart.
    The Rows group in the matrix is identical to the Series Groups area in the chart.
    The Data area in the matrix is identical to the Values area in the chart.
    Since we add data in the Values dialog box, it is in the Category Groups and Series Groups scope.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • Too much displayed values in flash 2D line

    I have a 2D line flash with variable number of points.
    The X ans Y labels are rendered and the Y values of the points are displayed on the chart.
    When the number of points increases the displayed values on the chart start to overlap.
    When the number of points is too great, values overlap so much that we can't read any of them.
    Is there a way to decrease the number of displayed values on the flash while retaining the same number of points?

    Hi Andy,
    Thanks for your quick response. If I'm correct in understanding what your saying is that with 2D Line charts that have two series in order for them to display togethor then the label must appear in both series.
    I've had a bash using your sql for the 1st series and modifying the second series.
    Series 1
    SELECT NULL LINK,
    X.THE_DATE LABEL,
    Y.PROJECTED_HOURS VALUE
    FROM
    (SELECT END_DATE THE_DATE FROM TEST_PROJECTED
    UNION
    SELECT LIFING_DATE THE_DATE FROM TEST_ACTUAL
    ) X
    LEFT OUTER JOIN TEST_PROJECTED Y ON X.THE_DATE = Y.END_DATE
    ORDER BY X.THE_DATE
    07/30/2009 700
    08/09/2009 800
    08/14/2009
    08/27/2009 9000
    Series 2
    SELECT NULL LINK,
    X.THE_DATE LABEL,
    Y.ACTUAL_HOURS VALUE
    FROM
    (SELECT END_DATE THE_DATE FROM TEST_PROJECTED
    UNION
    SELECT LIFING_DATE THE_DATE FROM TEST_ACTUAL
    ) X
    LEFT OUTER JOIN TEST_ACTUAL Y ON X.THE_DATE = Y.LIFING_DATE
    ORDER BY X.THE_DATE
    07/30/2009 800
    08/09/2009 1000
    08/14/2009 1201
    08/27/2009 12000
    This is a great improvement the series 2 now displays fine and all the points for series 1 are plotted correctly but it seems like the null value prevents the joining of the coordinates in this series. All the points 700,800 and 9000 are displayed correctly but the graph line only joins 700 and 800.
    Any further ideas? Thanks Pete

  • Displaying items in a single line in ALV grid using  ALV_TOP_OF_PAGE.

    Hello Guys,
    I am having a problem in displaying items in a single line in the ALV Grid using event ALV_TOP_OF_PAGE.
    My requirement is to group items on a single line i.e. in the example below, Vendor code and posting date are on the same line. The next line the prints Vendor Name and Document no.
    Vendor Code: 123123                               Posting Date : 01.01.2011
    Vendor Name: ABCD                                 Document No: 152246598.
    Here is my code in subroutine 'ALV_TOP_OF_PAGE', 
      wa_list_comments-typ = 'S'. 
      wa_list_comments-key = ''.
      wa_list_comments-info = 'Vendor Code'.
      APPEND wa_list_comments TO it_list_comments.
      wa_list_comments-typ = 'S'. 
      wa_list_comments-key = ''.
      wa_list_comments-info = 'Posting Date'.
      APPEND wa_list_comments TO it_list_comments.
    The above code prints in the following format i.e one below the other,
    Vendor Code: 123123                              
    Posting Date : 01.01.2011.
    I also tried using HTML_TOP_OF_PAGE, but it didn't work.
    Can anybody please help me out with this.
    Regards,
    Danish.

    Hi Danish,
    Your problem is with the alignment and you need some fix positions .
    The solution i feel is u can use as below :
    In CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    use 
    i_callback_html_top_of_page       = 'HTML_TOP_OF_PAGE'.
    Now on calling routine call use cl_dd_document class :
    FORM html_top_of_page USING document TYPE REF TO cl_dd_document .
    data : doctable TYPE REF TO cl_dd_table_element,
              col1_t1 TYPE REF TO cl_dd_area,
              col2_t1 TYPE REF TO cl_dd_area,
              col1_t2 TYPE REF TO cl_dd_area,
              col2_t2 TYPE REF TO cl_dd_area.
    add quick table with five columns
        CALL METHOD lw_document->add_table
          EXPORTING
            no_of_columns               = 2
            border                      = '0'
         cell_background_transparent = ' '
            width                       = '100%'
          IMPORTING
            table                       = doctable.
    Filling columns in row
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '40%'
          IMPORTING
            column = col1_t1.
    Filling columns in row
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '60%'
          IMPORTING
            column = col2_t1.* Filling columns in row
    Call method doctable->new_row.
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '40%'
          IMPORTING
            column = col1_t2.
    Filling columns in row
        CALL METHOD doctable->add_column
          EXPORTING
            width  = '60%'
          IMPORTING
            column = col2_t2.
    *Now adding the texts
    lw_text1 = 'your first text'
    CALL METHOD col1_t1->add_text
          EXPORTING
            text = lw_text.
    *Similarly add text for other columns
    *Adujust % in width to adjust the column as required
    Endform.
    Hope this will solve your problem .

  • How do I change the line color in a chart in Numbers on my iPad?

    How do I change the line color in a chart in Numbers on my iPad?

    Whenever I try to shift+direct select it thinks I want to move the line, so as I shift + direct select and drag my mouse across the line (to highlight it all) it moves a chunk of the line and turns it into a near perpendicular line.
    I found the appearance window, it just says "Path" (the color I want it to be that it's not)
    "Stroke" 4pt
    "Fill" (the color I want it to be that it's not)
    "Opacity": Default
    And some other buttons. I think I'll try the help line tomorrow, I know I saw a customer service number somewhere and I'm only here because the chat was unavailable. This is only one of my 3 problems with my assignment so I'll search here for answers to the other two. Learning new things is rarely fun.

  • Scripts : want to display the text in one line

    Dear Friends,
    i want to dispaly the below text in one line,but its displaying in next line.
    ITEM   MATERIAL  DESCRIPTION ORDERQTY  UNIT PricePerUnit NETVALUE
    i am using the following code
    IL           <K>Item,,Material,,Description ,,  Order qty.  ,,Unit   ,,    Price per unit   ,, Net value </>
    Thanks & Regards
    Shaik

    Hello Hussain,
    Remove the TAB Spacing ',,'. Instead u give the Space.
    Reduce the length of fonts.
    These are the ways to display the text in a line.
    If useful reward points.
    Regards,
    Vasanth

  • Any Way to Change Thickness of Connector Lines for all lines of a Chart?

    Post Author: ScottL
    CA Forum: Charts and Graphs
    Hi All,
    I am trying to change the thickness of a Chart's Connector Lines for all lines of a chart and cannot find a way to accomplish this. I can go into Report Preview and individually change the thickness one at a time, but what if I do not know how many lines I will have (as in a Line Chart) ? I can't find a way to do this through Crystal Reports XI.
    Many thanks in advance!
    Scott

    I think it's even easier to just match frame the "source file"... put your playhead on the clip you want to speed change in your sequence. Then type optioncmdf. Perform the speed change in the Viewer, then simply cut it in... Might help to put it up above the older, use the double arrow selection tool facing right to move the clips past this change later... pull the upper track speed changed clip down over the old, and viola.
    Gotta say though, it's a lot easier to perform the speed change in the Viewer, and edit it all in as you go rather than doing it after you've put the clip in a sequence. (not always possible to determine what the speed change should be maybe, but sure easier.... FCP 7 handles this problem a lot better for sure, and worth the upgrade price if your machine is compatible.
    Jerry

  • Remove grid lines by default in chart view

    Hello,
    I'm working in version 10.1.3.4.1. I've been trying to remove the grid lines from the default chart view. I've read some posts on here and in the blogs about changing the default chart look, but I haven't seen anything specific to grid lines. I think I need to edit the pcxml files located in .../s_oracle10/popbin. I've been messing with these two files:
    - bar.pcxml (this seems to be for horizontal bar charts only)
    - column.pcxml (this seems to be for vertical bar charts only)
    Within <ValueScale> and <CategoryScale> I tried changing the MajorGrid and MinorGrid parameters to values like 'Disabled' and 'False' but this seemed to have no effect. I also tried changing the color from #eeeee to something else but this also seemed to have no effect at all.
    I've replicated whatever changes I've made to the corresponding file in the oc4j directory. I am restarting all services after making my changes. I have been able to get some changes to bar.pcxml and column.pcxml show up in the application. I was able to change the default BarStyle from 'Cylinder' to 'Rectangle' successfully, so I think my process of editing the file, copying it to the corresponding oc4j directory, and then bouncing the services is working.
    Can anyone point me in the right direction for getting all of the grid lines to go away by default? So far I've only tried removing them from bar charts, but ultimately I want them off by default on line charts as well.

    Are you able to acheive this.?
    PCXML script is used for chart rendering, and with that I think you can't demark the Gridlines.
    The following Xml file gives the definitions for the chart components including gridlines.
    chartviewtemplates.xml
    Which inturn refers to the following js for gridlines
    i think you have to work on the Js here demark the grid lines by default
    <Oracle_BIHome>\web\app\res\b_mozilla\views\chart
    dlggridlineseditor.js
    Before doing any changes take the backup.
    Thanks,
    Vino
    Edited by: Vinodh NK on Oct 22, 2010 3:44 AM

  • Display leaves green and purple lines

    Guys
    My display leaves green and purple lines when ever I move any windows. I have zapped the PRAM and tested the RAM with memtest. Any ideas as it's driving my crazy

    AHT does test the video RAM, so louie's advice is spot-on. If the test doesn't report any VRAM problems and an external display doesn't show the same symptoms, then the fault is somewhere downstream from the logic board, i.e., in the video cable or the LCD itself. AHT isn't able to test those.

  • Display a text in multiple lines inside a button

    I have a toggle button bar containing many buttons as follows:
    <mx:ToggleButtonBar id="menu"               
         itemClick="clickButton(event)"
         styleName="myToggleButtonBarStyle"/>
    The styles apllied are :
    <mx:Style>
              .myToggleButtonBarStyle {
                   button-style-name: "buttons";  
                   vertical-center:0;
         .buttons {
              text-selected-color: #14476c;
              text-roll-over-color: #14476c;
              up-skin: Embed(source="/phase_grey.png");
              over-skin: Embed(source="/phase_blue.png");
              down-skin: Embed(source="/phase_blue.png");
              selected-up-skin: Embed(source="/phase_blue.png");
              selected-over-skin: Embed(source="/phase_blue.png");
              selected-down-skin: Embed(source="/phase_blue.png");
              padding-left:45;
              padding-right:30;
         </mx:Style>
    My problem is that when I have a long text, it is displayed in one ligne so the button get larger. I do not want my button to get larger it has to keep the initila size (my button is an image). I want indeed to display the text in multiple lines rather than only one.
    How to do this?
    Thank's in advance

    These links on multi-line buttons in Flex should answer your question:
    http://blogs.adobe.com/aharui/2007/04/multiline_buttons.html
    http://www.igorcosta.org/?p=73
    http://www.nabble.com/Is-it-possible-to-make-multiline-Button--td7508988.html
    http://electro-bunny.blogspot.com/2009/02/creating-multiline-button-in-flex.html
    If this post answers your question or helps, please mark it as such.

  • Display Line Items - Define Line Layouts?

    I cannot understand what  Define Line Layouts means in SPRO.
    Financial Accounting -> General Ledger Accounting -> Line Items -> Display Line Items -> Define Line Layouts
    I can see that there is some Line Layout Variant (D0,D1D2...), with some Fields, but i cannot understand where this fields or Line Layout Variants are used, in what transactions i can see changes if a made some. This variant reflects line layouts when i post something (f-02, ,f-03, f-04, f-51...) or when i want to see account items or balances ???.

    Hi,
    You can use these line layouts in the display of line items in various transactions and you can default a particular line layout for a user master, so that by default the line items comes in that layout for that user.
    Go to FB00 > Doc Display tab and there you can assign the line layout
    And then when you see the doucment say in FB03, you will see the line items in that format.
    Regards,
    SDNer

  • How to display values and new char line (blank line)

    Hi,
    In database, one field contains values followed by new character lines (blank lines) after blank lines there is no values. Finally, I would say the field contains values and blank lines. Every thing is fine in database.
    In Crystal Reports the field is displaying only values. Need to display values and blank line.
    User is asking after values new character lines (blank line) to be shown. They enter like that in an application. The user doubt is why report is not showing what they enter in the application.
    In detail explanation, front end tool is ASP.NET and backend is SQL Server.
    User enter some values in note field, after that they hit enter button in the same field, cursor will go next line...user may hit u2018enter buttonu2019 more than 5 times. So note field contain values and some blank lines which are created by after hitting enter button.
    If user opens the application, they could see values plus blank lines in the note field.
    They are fine with the application.
    In Crystal Reports, the note field shows only values.
    User is questioning that why we could not see in report we enter.
    I checked in .Net application and SQL server database it is fine. It is displaying values and blank line.
    Please help me out how to display values followed by blank lines in Crystal Reports - the way they enter in the application.
    Thanks and Regards,
    Manjunath N. Jogin

    Hi,
    Sharonmat,
    I tried as you suggested. It is still displaying only values.
    I would like to explain again.
    it is not exactly null values.
    In .Net application it is called 'new char line'.
    it shows those many lines look like null.
    it is working fine in database.
    Why it is not working in Crystal Reports? I am wondering...
    Thanks for your suggestion.
    Debi,
    User may enter any number of blank lines or they may not enter blank lines.
    That is the reason I can not always give more height or blank text object.
    Thanks for your suggestion.
    Please suggest me some more suggestions,
    Thanks and Regards,
    Manjunath N. Jogin

  • BTE 1650 LINE ITEM DISPLAY: Add to data per line - possible solution

    Hello,
    I would like to populate field payment order (Pymt.order) in custom transaction FBL5N
    I have read that it should be doable using BTE 1650 LINE ITEM DISPLAY: Add to data per line but I am not sure if 1650 is correct one and if its proper solution for this purpose.
    Could you please advice?
    Thank you in advance!
    Michal

    i have the same problem , i used BTE and the fields appear but without data . which table or code i will use to in FM to display data in transaction.
    thanks all for help

  • How to display mapviewer labels in two lines instead of one?

    Hi,
    I have been using the addJDBCTheme to display the map along with the labels as follows:
    mapviewer.addJDBCTheme("aaa","a", "SELECT geom, col1 || ':' || col2 label_value from table_name","GEOM","","styleName","label_value","T.ROAD NAME" ,false);
    So the label is displayed as col1Value:col2Value.
    Now I need to display the label as follows:
    col1Value
    col2Value
    I tried using this
    mapviewer.addJDBCTheme("aaa","a", "SELECT geom, col1 || chr(10) || col2 label_value from table_name","GEOM","","styleName","label_value","T.ROAD NAME" ,false);
    But it doesnt work. This displays col1Valuecol2Value
    So I tried using this:
    mapviewer.addJDBCTheme("aaa","a", "SELECT geom, col1 label_value from table_name UNION ALL SELECT geom, col2 label_value from table_name","GEOM","","styleName","label_value","T.ROAD NAME" ,false);
    This actually works. Meaning it displays the label in two lines. But the two lines are almost attached together, there is no space between them at all. It is sometimes very difficult to read.
    Would really appreciate any suggestions to resolve this issue.
    Is there any other solution to display a label in two lines? I tried changing the label style to set the line-height. But that does'nt work either.
    Lakshmi

    Multiline label aren't supported as yet.
    JayantDoes MapViewer 10.1.3 (the latest version for present) support it?

  • Plot line, bar and pie chart

    Anyone can let me know where can i learn or tutorial on how to plot line, bar and pie chart by using java2D... (no third-party software)....
    thanks in advance.

    Here's a pie chart app I made for an earlier question:
    import java.awt.*;
    import java.awt.font.*;
    import java.awt.geom.*;
    import javax.swing.*;
    public class PieChart {
      public static void main(String[] args) {
        int[] data = {
          18, 95, 102, 87
        PieCharter pie = new PieCharter();
        pie.enterData(data);
        JFrame f = new JFrame("Pie Chart");
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.getContentPane().add(pie);
        f.setSize(400,300);
        f.setLocation(300,300);
        f.setVisible(true);
    class PieCharter extends JPanel {
      int[] data, percents;
      int dataTotal;
      final int
        PAD = 25,
        R_PAD = 5;
      public PieCharter() {
        setBackground(Color.white);
      public void paintComponent(Graphics g) {
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D)g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                            RenderingHints.VALUE_ANTIALIAS_ON);
        Font font = new Font("lucida sans unicode", Font.PLAIN, 16);
        g2.setFont(font);
        FontRenderContext frc = g2.getFontRenderContext();
        int width = getWidth();
        int height = getHeight();
        int cx = width/2;
        int cy = height/2;
        int dia = (int)Math.min(width, height) - 2*PAD;
        g2.draw(new Ellipse2D.Double((width - dia)/2, (height - dia)/2, dia, dia));
        // draw zero datum
        double radians = 0;
        int x = cx + (int)((dia/2) * Math.cos(radians));
        int y = cy - (int)((dia/2) * Math.sin(radians));
        g2.draw(new Line2D.Double(cx, cy, x, y));
        String s;
        int dataWidth, dataHeight, deltaR, rXInc, rYInc;
        for(int i = 0; i < data.length; i++) {
          radians += 2*Math.PI * data/dataTotal;
    x = cx + (int)((dia/2) * Math.cos(radians));
    y = cy - (int)((dia/2) * Math.sin(radians));
    g2.draw(new Line2D.Double(cx, cy, x, y));
    s = String.valueOf(percents[i]) + "%";
    dataWidth = (int)font.getStringBounds(s, frc).getWidth();
    dataHeight = (int)font.getLineMetrics(s, frc).getAscent();
    deltaR = (int)Math.sqrt(dataWidth*dataWidth + dataHeight*dataHeight)/2 + R_PAD;
    rXInc = (int)(deltaR * Math.cos(radians));
    rYInc = (int)(deltaR * Math.sin(radians));
    x += rXInc;
    y -= rYInc;
    x -= dataWidth/2;
    y += dataHeight/2;
    g2.drawString(s, x, y);
    s = String.valueOf(data[i]);
    dataWidth = (int)font.getStringBounds(s, frc).getWidth();
    dataHeight = (int)font.getLineMetrics(s, frc).getAscent();
    x = cx + (int)((dia/4) * Math.cos(radians - 2*Math.PI * data[i]/(2*dataTotal)));
    y = cy - (int)((dia/4) * Math.sin(radians - 2*Math.PI * data[i]/(2*dataTotal)));
    x -= dataWidth/2;
    y += dataHeight/2;
    g2.drawString(s, x, y);
    private void prepareData() {
    for(int i = 0; i < data.length; i++)
    dataTotal += data[i];
    percents = new int[data.length];
    int dataPlus = 0;
    for(int i = 0; i < data.length; i++) {
    dataPlus += data[i];
    percents[i] = Math.round(100 * dataPlus/dataTotal);
    public void enterData(int[] data) {
    this.data = data;
    prepareData();
    repaint();

Maybe you are looking for