Proportion Column Chart

  • Last update:December 26, 2024
  • Overview

    Application Scenario

    When the data from one column chart contains the data from another one, it is desired that the columns of the two series can overlap to show the proportion relationship between the two series intuitively.

    For example, a column chart has two series: Amount Payable and Shipping Fee. Shipping Fee is contained in Amount Payable. Now, the columns of the two series can overlap to intuitively show the proportion of Shipping Fee to Amount Payable, as shown in the following figure.

    image 1.png

    Function Description

    Choose Style > Series, and set Series Gap as -100, then all series can overlap, as shown in the following figure.

    image 2.png

    Example

    Data Preparation

    Create a built-in data set named Embedded1. The following figure shows the fields and data.

    image 3.png

    Chart Insertion

    Merge required cells, and insert a column chart, as shown in the following figure.

    image 4.png

    Data Binding

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

    image 5.png

    Title Adding

    Add the title Proportion Column Chart to the column chart. Select left for Position and set the Character style as shown in the following figure.

    image 6.png

    Columns Overlapping

    Choose Style > Series of the column chart and set Series Gap to -100, as shown in the following figure.

    image 7.png

    Label Customizing

    Choose Special Effect > Condition Display, add Conditional Attribute, select Label for Attribute, and customize Text and Style as shown in the following figure.

    image 10.png

    The JavaScript codes are as follows:

    function(){ 
     var result=(this.points[1].value/this.points[0].value*100).toFixed(2);
     result=result+"%";
     return result}

    Effect Display

    PC

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

    image 1.png

    Mobile Terminal

    The function is also supported on APP and H5 terminals, as shown in the following figure.

    微信图片_20241226195707.jpg

    Template Download


    For details, you can click to download the template Proportion Column 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