Area chart

Updated at:

Introduction

The area chart component, a basic Magic Pen component for data visualization, displays a data set as an area chart.

image

Configuration items

Category

Configuration

Example

Description

Content

Data source

image

The data source. For more information, see Area Chart Data Mapping.

Horizontal axis property

The field that corresponds to the horizontal axis.

Vertical axis property

The field that corresponds to the vertical axis.

Grouping property

The grouping field. For more information, see Area Chart Data Mapping.

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 Area 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

areachart.hidden

Specifies whether to hide the component.

clearHidden

func

areachart.clearHidden()

Purges the `hidden` value of the component.

setHidden

func

areachart.setHidden(true)

Sets whether to hide the component.