Progress bar

更新时间:
复制 MD 格式

A progress bar visually displays a metric's progress toward a target. You can add data to a progress bar and configure its styles.

Example

效果图

Configure data

  1. In the Charts section of the component library, find progress bar and drag it onto the canvas.image.png

  2. Click Select a dataset and add data as shown below.

    In this example, target value/measure is set to manual input. You can also select dynamic field.

    image.png

You can also perform the following operations:image.png

Configure styles

Position and size

In the configuration pane, you can adjust the following settings for the component:

  • Adjust the component's alignment (①). Options include left, center, and right.

  • Adjust the component's position (②). Set its X and Y coordinates, relative to the top-left corner of the canvas.

  • Adjust the component's rotation (③). Set the rotation angle.

  • Adjust the component's size (④). Set its width (W) and height (H).

  • Lock the component (⑤). When locked, you cannot adjust its size or position.

  • Set the component's opacity (⑥).

位置和尺寸

Progress bar

In the Progress bar section, you can modify the progress color (①), background color (②), and corner radius (③).进度条

Data labels

In the Data labels section, you can:

  • Display progress percentage: Set the number of decimal places for the percentage value (①), its display position (follow the progress bar or outside the progress bar), the left margin, and the text style.

  • Display current value/target value: Set a display name for the current or target value (②), the layout (horizontally or vertically), the top margin, and the text style.

数据标签

Animation

In the Animation section, you can set the following effects:

  • Color: Set the shimmer effect color. Solid and gradient colors are supported.

  • Shimmer duration: Set the duration of one shimmer cycle, in seconds (s).

    动效