Column chart

Updated at:

Introduction

The column chart component is a basic component in Magic Pen for data visualization. It displays a set of data as a column chart.

image

Configuration items

Category

Configuration

Example

Description

Content

Data source

image

The data source. For more information, see Column chart data mapping.

Horizontal axis properties

The properties of the horizontal axis.

Vertical axis properties

The properties of the vertical axis.

Grouping properties

The grouping field. Use this field to view metrics for different cases within the same dimension.

Style

Margin

The margin. For more information, see General properties.

Configuration type

The configuration type. Options include preset and custom.

Configuration content

image

The custom chart style. For more information, see Column chart style.

Interaction

Hide

Hides the component. For more information, see General properties.

Keep layout when hidden

Keeps the layout when the component is hidden. For more information, see General properties.

Properties and methods

Name

Type

Example

Description

hidden

boolean

columnchart.hidden

Specifies whether to hide the component.

clearHidden

func

columnchart.clearHidden()

Clears the hidden value of the component.

setHidden

func

columnchart.setHidden(true)

Sets whether the component is hidden.