Time Axis

  • Last update:December 26, 2024
  • Overview

    Application Scenario

    Axes in some charts are categorized by date format such as year, month, and day, and you want data in charts to be displayed according to the date value from smallest to largest.

    Also, you want to set the unit of data display, for example, you can display the data by year or by month, as shown in the following figure.

    iconNote:
    Time Axis is only suitable for column charts, line charts, bar charts, area charts, and combination charts.

     时间坐标轴1.png


    Implementation Method

    Set the style of the axis. Choose Cell Element > Style > Axis, and select Time Axis from the drop-down list of Type.

    Set the format of the axis label. Choose Cell Element > Style > Axis, and select Date from the drop-down list of Axis Label Format.

    时间坐标轴2.png 

    Example

    Data Preparation

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

     时间坐标轴3.png

    Report Design

    1. Merge required cells, click Cell Element, select Insert Chart from the drop-down list of Insert Element, and select Column Chart for Type, as shown in the following figure.

    时间坐标轴4.png 

    2. Choose Cell Element > Data, and bind the data to the column chart, as shown in the following figure.

     时间坐标轴5.png

    3. Select the chart, choose Cell Element > Style > Axis > X Axis, and set Type and Axis Label Format respectively, as shown in the following figure.

     时间坐标轴6.png

    4. Choose Cell Element > Style > Axis > X Axis, and customize Minimum Value, Maximum Value, and Main Unit, as shown in the following figure. 

     时间坐标轴7.png

    Effect Display

    PC

    Save the template and click Pagination Preview. The section "Application Scenario" shows the effect.

    Mobile Terminal

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

    时间坐标轴8.jpg

    Template Download

     For details, you can download the template Time Axis.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