UNPKG

@antv/g2plot

Version:

G2 Plot, a market of plots built with the Grammar of Graphics'

16 lines (15 loc) 632 B
import { LayerConfig } from '../../base/layer'; import { ElementOption } from '../../interface/config'; import BaseBarLayer, { BarViewConfig } from '../bar/layer'; import './component/label/stack-bar-label'; export interface StackBarViewConfig extends BarViewConfig { stackField: string; } export interface StackBarLayerConfig extends StackBarViewConfig, LayerConfig { } export default class StackBarLayer<T extends StackBarLayerConfig = StackBarLayerConfig> extends BaseBarLayer<T> { static getDefaultOptions(): any; type: string; protected adjustBar(bar: ElementOption): void; protected extractLabel(): any; }