Stacked Line Chart

  • Last update:December 25, 2024
  • Overview

    Version

    Report Server Version
    11.0
     Application Scenario

    Stacked line charts are suitable for showing the cumulative effect of data in different categories or time periods, and are often used to show the cumulative amount over time or the contribution of different parts to the total, as shown in the following figure. /

     

    Chart Feature

    Stacked line charts show multiple data series accumulated over time by colors, reflecting the contribution of each part to the total and its changing trends visually.

     堆积折线图1.png

    Example 

    Data Preparation

    Choose File > New General Report, create a database query ds1, and enter the SQL statement SELECT * FROM Sales_Volume, as shown in the following figure. /

     堆积折线图2.png

    Chart Insertion

    Merge required cells, click Insert Chart on the upper toolbar, and choose Line Chart > Stacked Line Chart, as shown in the following figure. /

     堆积折线图3.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.

    Chart Type

    Select the cell where the chart is located and choose Cell Element > Type to view and select the chart type.

     堆积折线图4.png

    Data Binding

    Binding the data from ds1 to the line chart, as shown in the following figure.

    iconNote:
    In data binfding, you canot select None from the drop-down list of Category, and if you select Field Value for Series Name, the series name cannot be the same field as the category. Otherwise, the chart will only display dots without lines.

     堆积折线图5.png

    Style Setting

    1. Choose Style > Title and enter Stacked Line Chart in Text. Save the rest of the settings as default, as shown in the following figure. 

     堆积折线图6.png

    2. Choose Style > Legend and tick Show Legend.

    堆积折线图7.png 

    3. Choose Style > Series, select Theme from the drop-down list of Color Scheme, and save the rest of the settings as default. For more settings about Series of Line Chart, see Chart Series.

     堆积折线图8.png

    Effect Display

    PC

    Save the report and click Pagination Preview. The effect is same as that shown in section "Application Scenario". 

    Mobile Terminal

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

     微信图片_20241223163102.jpg

    Template Download

    For details, you can click to download the template Stacked Line Chart.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