Column Chart with Multi-Category Axes

  • Last update:January 10, 2025
  • Overview

    Version

    Report Server Version

    Functional Change

    11.0

    /

    11.0.3

    Added: Display Logic settings are added in Category Axis, supporting you to set different display effects for the axis label of each category axis. For details, see section "Function Description."

    Application Scenario

    You can add multi-category axes to the three built-in combination types of combination charts, column charts, bar charts, line charts, and area charts, supporting up to three levels of categorization for more utility.

    image 1.png

    Function Description

    1. In the chart property panel, select Data and click which is behind Category to add a category. You can add three categories at most.

    2. The order of category display: The category added in the first level corresponds to the bottom-level category data closest to the displayed chart, and the further down, the corresponding parent-level data.

    3. The order of categories in each level will be consistent with the order of the category in the dataset, as shown in the following figure.

    image 2.png

    4. For the designer of version 11.0.3 and later versions, the axis label of the category axis support Display Logic setting, where you can select Whole Display or Layered Display.

    • Whole Display: You can set Display Mode, Character, Text Rotation, and Label Gap of the axis label. Those settings can be applied to all categories.

    • Layered Display: You can decide whether or not to display the category axis label by selecting or deselecting. You can click the setting button corresponding to each category to set the axis label style separately, as shown in the following figure.

    image 6.png

    Example

    Data Preparation

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

    image 7.png

    Report Design

    Column Chart Insertion

    Merge required cells, right-click the mouse, and choose Cell Element > Insert Chart to insert a column chart, as shown in the following figure.

    image 8.png

    Data Binding

    Choose Cell Element > Data, select ds1 as Dataset, and add three categories: Product_type, Salesperson, and Region. Select Product for Series, Sales_Volume for Value, and Sum for Summary, as shown in the following figure.

    image 9.png

    Style Setting

    This example shows the setting method of Layered Display for category axis label only. Other settings of chart styles can be set as needed.

    Choose Style > Axis, and the category axis of the column chart is X Axis.

    Select Layered Display for Display Logic of the axis label. Click the Setting button on the right side of Category1, set Text Rotation to 90, and deselect Category3 to hide it.

    iconNote:
    Category1 refers to the category closest to X Axis, which in this example is the Product_type field, and Category3 refers to the Region field.

     image 12.png

    Effect Display

    PC

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

    image 13.png

    Mobile Terminal

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

    微信图片_20250110112159.jpg

    Template Download

    For details, you can download the template Column Chart with Multi-Category Axes.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