Custom Rounded Corner and Column Width of Column Chart

  • Last update:  2022-01-10
  • I. Overview

    1. Application scenarios

    The rounded corner and width of the column in the column chart can be customized, as shown in the following figure:

    截屏2020-12-30 下午1.55.14.png


    2. Idea to achieve

    Set the column width: select style > series > style in the property panel, fix the column width, and click Yes to enter the customized column width value.

    Set rounded corner: select style > series > border in the property panel, and enter the value.

    1.2.png 


    3.  Application Examples

    The built-in component reuse function can be used in the decision report, and the component style can be quickly reused by directly replacing the data to realize the custom column rounded corner properties and width effects.

    Component describerenderings
    Gradient column chart with background color

    1) This component is suitable for fresh style templates

    2) Using auxiliary data, let each column display on the background color column of the same height, and display the data size more beautifully and directly

    1.png
    Ring Pie

    1) This component is suitable for light-colored minimalist style templates

    2) Use a circular pie chart to clearly show the proportion of each part


    2.png

    II. Examples

    1. Data preparation

    Create a new general report, add dataset ds1, and the SQL statement is: select * from sales_basic

    DB.png

    2. Design report

    1)Merge a range cell and insert the column chart, as shown in the following figure:

    2)In the property panel, click data to bind column chart data, as shown in the following figure:

    3)Select the chart, click style > Series in the property panel, click Yes for the fixed column width, enter a fixed value of 20, and enter 10 for the rounded corner, as shown in the following figure:


    3. Effect preview

    1)PC terminal

    Save the template and click pagination preview. The effect is as follows:

     

    2)Mobile terminal

    WechatIMG225.jpeg

    III. Template download

    Completed template, see %FR_HOME%/webapps/webroot/WEB-INF/reportlets/doc-EN/Chart/ColumnAndBar/rounded_width.cpt

    Click download template:  rounded_width.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