Skip to main content

g2plot-chart.g2plotchart

Home > @genesislcap/g2plot-chart > G2PlotChart

G2PlotChart class​

The G2Plot Chart component

Signature:

export declare class G2PlotChart extends G2PlotChart_base 

Extends: G2PlotChart_base

Remarks​

Forwards G2Plot chart events using each event's native type string (see chart.on('*', ...)).

The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the G2PlotChart class.

Properties​

Property

Modifiers

Type

Description

config

ChartConfig

The configuration to use for the chart. Check ChartConfig for possible options

data

any[]

The data to display in the chart.

type

ChartTypes

The type to use for the chart. If not set, the default bar type will be used.