Horizontal Capsule Bar
The horizontal capsule bar is a type of bar chart, which is used to compare data of different series. This section describes parameters of a horizontal capsule bar.
Pattern
- Size/Position
- Size: width and height of the component. Unit: pixel.
- Position: position where the component is located in the canvas. Unit: pixel.
- Global Style
Font: font of the text.
- Column Style
- Column Width: width of the column.
- Padding: distance between the capsule and the border line
- Border Color: color of the border line of the capsule.
- Border Width: width of the border line of the capsule. Unit: pixel.
- Background Color: fill color of the column.
Figure 2 Column style of a horizontal capsule bar
- Margin
- Top: spacing between the top sides of the chart and the component layer. You can enter a value or click to adjust the spacing.
- Bottom: spacing between the bottom sides of the chart and the component. You can enter a value or click to adjust the spacing.
- Left: spacing between the left sides of the chart and the component. You can enter a value or click to adjust the spacing.
- Right: spacing between the right sides of the chart and the component. You can enter a value or click to adjust the spacing.
- Value Tag: to show or hide the value tag. Figure 3 shows the value tags.
The value tag has the following configuration items:
- Font Size: font size of the value tag.
- Color: font color of the value tag.
- Font Width: font width of the value tag.
- Position: position where the value tag is displayed.
- Distance: distance display based on the position of the value tag. Unit: pixel.
- X Axis: to show or hide the X axis. When this option is selected, you can set the X axis style.
- Font Size: font size of the axis label text.
- Font Color: font color of the axis label text.
- Font Width: font width of the axis label text.
- Angle: tilt angle of the axis label text.
- Axis Label: to show or hide the axis labels. When this function is enabled, you can set the following parameters:
- Display Format: display format of the scale value on the axis.
- Min. Value: the minimum value of the axis. You can enter a value or select a value from the drop-down list. When this parameter is set to the minimum value, the start value of the axis is the minimum value in the current data.
- Max. Value: the maximum value of the axis. You can enter a value or select a value from the drop-down list. When this parameter is set to the maximum value, the start value of the axis is the maximum value in the current data.
- Scales: intervals of data items on the coordinate axis.
- Axis Unit: to show or hide the axis unit. When this function is enabled, the axis unit is displayed on the right of the X axis. The unit can be displayed only when Right under Margin is set to a value greater than or equal to 40.
- Unit: unit of the coordinate axis, for example, kilometer, byte/second, or GB.
- Color: font color of the text.
- Coordinate Axis: to show or hide the axis. You can set the color of the axis when you select this option.
- Grid Line: to show or hide the grid lines. You can set the color of the grid lines when you select this option.
Figure 4 X axis of a horizontal capsule bar chart
- Y Axis
- Font Size: font size of the axis label text.
- Font Color: font color of the axis label text.
- Font Width: font width of the axis label text.
- Angle: tilt angle of the axis label text.
- Coordinate Axis: to show or hide the axis. You can set the color of the axis when you select this option.
- Grid Line: to show or hide the grid lines. You can set the color of the grid lines when you select this option.
Figure 5 Y axis of a horizontal capsule bar chart
- Legend: to show or hide the legend. When this option is selected, you can set the legend style.
- Font Size: font size of the legend text.
- Color: font color of the legend text.
- Font Width: font width of the legend text.
- Layout
- Direction: direction of the legend.
- Position: position of the legend.
- Left/Right Spacing: distance between the legend and the left boundary of the component. This parameter does not take effect when Position is set to Top center or Bottom center.
- Left/Right Spacing: distance between the legend and the top boundary of the component.
- Legend Spacing: distance between two adjacent legends.
Figure 6 Legends of a horizontal capsule bar chart
- Message: to show or hide the prompt information. After this function is enabled, a message is displayed when you mouse over or click on the screen during the screen preview.
- Color: font color of the message.
- Font Size: font size of the message.
- Font Width: font width of the message.
Data
- Data Source Type: Select the data source of the chart. Multiple data sources are provided for you to select. You need to add data sources first. For details, see Data Connection Overview.
- Converter: Select a converter to convert data into the data that meets the display requirements. For details, see Using a Converter.
- Data Mapping: The data format consists of the following fields:
- x: category, corresponding to the X axis. The data type of this field must be the same as that of the X Axis.
- y: data, corresponding to the Y axis.
- s: series. You can set a value of the s field to a series. You can add multiple series. The value of each series can be mapped to different Y coordinates.
Click on the right of s to add a series. To delete an added series, click on the right of the series.
Add a series as follows:
- Series Value: Enter a value of the s field. If the series value is empty, the value of the corresponding s field is used by default.
- Series Name: self-definable. If the series name is empty, the series value is used as the series name by default.
- Color: color of the column in the series.
Figure 8 Series of a horizontal capsule bar chart
- Automatic Update: If you select Automatic Update and set Update Interval, the data is automatically updated based on the interval.
- Preview Result: Click Preview Result to view the information about the selected data source. You can click Update Query to manually update the component data when the data source changes.
Interaction
For details about whether the component supports the interaction function and how to use the interaction function, see Configuring Component Interaction.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot