Time status chart

更新时间:
复制 MD 格式

The time status chart is a segmented bar chart that shows the proportion of subcategories within a larger category, allowing you to visualize data across multiple dimensions. This topic describes how to configure this component.

Example

The following figure shows an example of factory equipment status over time.

时间状态图

Step 1: Add the component

  1. Create a mobile application. For more information, see Create a mobile application.

  2. In the mobile application editor, click the Components icon 组件 on the far left.

  3. (Optional) Add a column component to set the page layout. For more information, see Horizontal columns and vertical columns.

  4. Above the component list on the left side of the canvas, enter Time Status Chart in the search box. After you find the component, drag it onto the canvas.

    For more information about adding components, see Add a component.

    时间状态图

Step 2: Configure the data source

  1. In the Style panel on the right of the mobile application editor, click Configure Data Source next to Display Data.

  2. On the Data Source Configuration page, select a data source type and complete the configuration.

    The available data source types are API, data table resource, static data, and application push.

  3. Click OK.

    On the Data Display tab, the name of your configured data source appears under Data Source. The system automatically parses fields from your data source and lists them under dimension and measure.

    Note

    Data source attribute matching rules:

    • dimension: Boolean, string, and time fields.

    • measure: Numeric fields.

  4. (Optional) Click Data Table in the upper-left corner to view all data from the configured data source.

Step 3: Configure data display

On the Data Display tab, configure the data and style for the time status chart.

数据展示

  1. Drag fields from the left panel to the configuration wells: drag a dimension field to Category, a dimension field to Status, a dimension or measure field to Start Time, and a dimension or measure field to End Time.

    Note

    You can change the default system colors on the Properties or Style tab.

  2. (Optional) In the Category, Status, Start Time, and End Time wells, click the triangle icon next to a field to perform the following actions.

    操作项

    Actions

    Description

    Aggregation method

    Options: Sum (default), Average, Maximum, Minimum, and Count.

    This feature is available only for measure fields. The configured aggregation method appears before the field name.

    After you set an aggregation method for a measure field, you can configure filter conditions again to display specific data.

    Note

    This feature is available only when the component's data source type is data table resource.

    Filter

    Add a field to the Filter section and configure conditions based on the field to filter the displayed data. You can add up to 10 filters. You can also click the drop-down arrow next to a field in the Dimension or Measure section to add the field to the Filter section.

    Note

    This feature is available only when the component's data source type is data table resource. For more information, see Filter Configuration.

    Set display name

    Edit the display name of the field.

  3. On the right side of the Data Display tab, click Style to configure the component's appearance.

    Parameter

    Description

    Global Settings

    Configure the time range type, basic status color, basic status name, width per second, and font.

    Title

    Show or hide the title. If shown, you can configure its appearance.

    Legend

    Configure the font size, color, and weight.

    Time axis

    Configure the font size, color, weight, axis color, and style.

    Category axis

    Configure the font size, color, and weight.

    Total Duration of Basic Status

    Show or hide the item. If visible, you can configure its appearance.

    Background

    Border

  4. Click Done to return to the mobile application editor and view the configured component data.

Step 4: Configure the style

  1. Adjust the component's dimensions and position on the page. For more information, see General styles.

  2. Preview and debug the component's data display and style. For more information, see Preview and debug.