Scatter Chart with Linear Regression Lines

  • Last update:December 26, 2024
  • Overview

    Version

    Report Server Version
    11.0

    Application Scenario

    A scatter chart with linear regression lines is a chart used to show the distribution and linear relationship between a single/multiple series of independent and dependent variables. By using a scatter chart and adding linear trend lines, you can clearly illustrate the linear relationship between two variables, as shown in the following figure.

    2024-12-24_17-56-47.png

    Chart Feature

    Advantage: simple and clear, enabling direct visualization of data distribution and linear trends

    Disadvantage: unsuitable for large datasets

    Example

    Data Preparation

    1. Sample table data: SOCR-HeightWeight.xlsx

    2. Choose File > New General Report in the upper left corner of the designer and add an Excel dataset, as shown in the following figure. 

    2024-12-24_17-58-19.png

    Click OK. You can view the added Excel dataset in the Template Dataset area, as shown in the following figure.

    2024-12-24_18-08-08.png

    Chart Insertion

    Merge required cells, click the Insert Chart icon on the upper toolbar, select Scatter Chart, and click OK, as shown in the following figure. 

    2024-12-24_18-06-09.png

    Chart Design

    Select the chart, click the Cell Element icon on the right property panel, and set the properties (Type, Data, Style, and Special Effect) for the chart.

    Data Binding

    Click Data and bind the required data to the chart, as shown in the following figure.

    2024-12-24_18-08-33.png

    Style Setting

    1. Choose Style > Title and enter Height/Weight Distribution, as shown in the following figure. 

    2024-12-24_18-10-34.png

    2. Choose Style > Legend, set Position to Top, and modify the font size to 8 in Character, as shown in the following figure. 2024-12-24_18-12-43.png

    3. Choose Style > Series.

    Color: Set Color Scheme to Custom Combination, and modify the colors as needed. Set Opacity to 50%.

    Mark Point: Set Point Style to General and Type to .

    Trend Line: Select the solid line in Line Style, select a relatively dark color in Color, and set Type to Linear Fitting.

    2024-12-24_18-15-00.png

    4. Choose Style > Axis.

    Label: Set the font size to 8 in Character for both X Axis and Y Axis.

    Value Definition: Set Custom Minimum Value to 40 for Y Axis.

    Format: Set Axis Label Format to Number and #0 cm for X Axis. Set Axis Label Format to Number and #0 kg for Y Axis.

             

    Effect Display

    PC

    Save the report and click Pagination Preview. The section "Application Scenario" shows the effect.

    Mobile Terminal

    The report can be previewed on both the DataAnalyst app and the HTML5 terminal. The following figure shows the preview effect.

    IMG_1041.jpg

    Template Download

    For details, you can download the template Scatter Chart with Linear Regression Lines.cpt.



    Attachment List


    Theme: Chart
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy