Successfully!

Error!

Column Chart with multiple catagories

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

    1. Version 

    Rreport server version
    Functional changes
    10.0.16Multi-classification axis sorting optimization: the classification order of each level will be consistent with the order of the classification in the data set


    2. Application scenarios

    In order to improve the practicability, the three built-in combination types of column chart, bar chart, line chart, area chart and combination chart support the addition of multiple classification axes, up to three levels.

    1.png


    3. Function introduction

    1) In the chart properties, select Data, click  Add Category after Category  , you can set up to three categories.

    2) The order of classification display: the classification added in the first layer corresponds to the underlying classification data that is closest to the graph when displayed, and the further down is the corresponding parent-level data.

    3) The classification order of each level will be consistent with the order of the classification in the dataset.

    As shown below:

    1.2.png 

    II. Examples

    1. Data preparation

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

    截屏2020-12-30 上午11.24.19.png 


    2. Design report

    1) Inserting a column chart

    Merge a range of cells, right-click, select Cell Element > Insert Chart, and insert a column chart, as shown in the following figure:

    2.21.png 

    2) Binding data

    Select Cell Elements > Data, select the dataset source ds1, and add three categories, followed by Product Type, Salesperson, RegionThe series name is Productand the value is Sales Volume > SumAs shown below:

    1.2.png

    3) Setting the style

    You can set the  Chart style as  needed.

    2.23.png 


    3. Effect preview

    1) PC terminal

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

    1.png 

    2) Mobile terminal

    Both App and HTML5 are supported, and the effect is shown in the following figure:

    WechatIMG224.png 

    III. Template download

    Completed template, please refer to %fr_Home%/webapps/webroot/WEB-INF/reportlets/doc-EN/Chart/ColumnAndbar/Column_multi_cate.cpt

    Click to download the template: 

    Column_multi_cate.cpt

    Attachment List


    Theme: Chart
    Already the First
    Already the Last
    • Helpful
    • Not helpful
    • Only read

    Doc Feedback