Empty Data Prompt for a Single Chart

  • Last update:February 12, 2025
  • Overview

    Application Scenario

    When the chart has no data, you can customize the prompt for the chart. The setting method in the document Empty Data Hint applies to all charts but does not apply to customizing prompt content for a single chart when the data is empty.

    空值提示.gif

    Implementation Method

    You can insert a chart and a custom prompt image, when designing a report, and control the display of the chart and image by setting condition attributes.

    Example

    Data Preparation

    Create a general report, and create a database query ds1 with the SQL statement SELECT * FROM Sales_Volume where Region='${Region}'.

    image 71.png

    Report Design

    1. Design the report as shown in the following figure, and the area for the image should be the same as the area for the column chart.

    iconNote:
    The image here is customizable and can be replaced as needed.

     image 72.png

    2. Bind data to the column chart, as shown in the following figure.

    image 73.png

    3. Select the column chart and set Row Height to 0 when ROWCOUNT("ds1")=0 in Condition Attribute.

    image 74.png

    4. Select the image and set Row Height to 0 when ROWCOUNT("ds1")>0 in Condition Attribute.

    image 75.png

    5. Set the parameter panel. The drop-down list of Data Dictionary for the Region parameter is set as the following figure.

    image 79.png

    Effect Display

    1. PC

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

    空值提示.gif

    2. Mobile Terminal

    空值提示手机.gif

    Template Download

    You can click to download the template Empty Data Prompt for a Single Chart.cpt.

    Download custom image Custom Image.zip.

    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