Statistics Info in the Chart Title

  • Last update:March 22, 2025
  • Overview

    Expected Effect

    Ensure that when you create a chart, the chart title can display statistical information, such as the number of series or categories, as shown in the following figure.

    image 21.png

    Implementation Method

    Insert a statistical formula into the chart title using the combination of the COUNT() and UNIQUEARRAY() functions.

    Example

    Data Preparation

    Create a general report and create a dataset named ds1. The database query is SELECT * FROM Sales_Volume.

    image 22.png

    Report Design

    1. Merge required cells, and choose Column Chart > Column Chart, as shown in the following figure.

    image 23.png

    2. Select the cell where the chart is located, choose Cell Element > Data on the attribute panel, and bind the data to the chart, as shown in the following figure.

    image 24.png

    3. Select the cell where the chart is located and choose Cell Element > Style > Title on the attribute panel. Select Show Title, click the Formula icon, and insert the formula in title text:

    "Product Sales Statistics Chart("+count(UNIQUEARRAY(ds1.select(Salesperson)))+" Salespersons in Total)"

    image 25.png

    Effect Display

    1. PC

    Save the report and click Pagination Preview. The following figure shows the preview effect.

    image 21.png

    Mobile Terminal

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

    微信图片_20250322184308.jpg

    Template Download

    Click to download the template Statistics Info in the Chart Title.cpt.

    Notes

    The above method does not apply to the titles in custom styles of components in dashboards, as shown in the following figure.

    1614675493606094.png

    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