Pie chart

Updated at:

Introduction

An area chart widget is a basic Magic Pen widget in the data visualization realm. It displays a dataset as an area chart.

image

Configurations

Category

Configuration

Example

Description

Content

Data source

image

The data source. For more information about the configuration, see Pie chart data mapping.

Data property

The data property.

Grouping property

The grouping field. Use this to view metrics for different scenarios within a single dimension.

Style

Margin

The margin. For more information, see Common properties.

Configuration type

The configuration type. You can choose between preset and custom.

Configuration content

image

Custom chart styles. For more information about the configuration, see Pie chart styles.

Interaction

Hide

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

Keep layout when hidden

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

Properties and methods

Name

Type

Example

Description

hidden

boolean

pieChart.hidden

Specifies whether the component is hidden.

clearHidden

func

pieChart.clearHidden()

Clears the `hidden` value of the component.

setHidden

func

pieChart.setHidden(true)

Sets whether the component is hidden.