UNPKG

zz-chart

Version:

Alauda Chart components by Alauda Frontend Team

73 lines (72 loc) 1.88 kB
/// <reference types="web" /> import { View } from '../../chart/view.js'; import { ShapeOptions } from '../../types/options.js'; import { Shape } from './index.js'; export declare type AdjustType = 'stack' | 'group'; export interface AdjustOption { type?: AdjustType; marginRatio?: number; } /** * Bar 柱状图 */ export default class Bar extends Shape<Bar> { type: "bar"; private get transposed(); private adjustOption; private get strategy(); constructor(ctrl: View, opt?: ShapeOptions); map(name: string): this; adjust(adjustOpt: AdjustType | AdjustOption): void; getSeries(): ({ paths: import("uplot").Series.PathBuilder; width: number; stroke: string; label: string; points: { show: boolean; }; } | { stroke: string; fill: (self: import("uplot"), seriesIdx: number) => CanvasGradient; width: number; paths: import("uplot").Series.PathBuilder; label: string; points: { show: boolean; }; } | { paths: import("uplot").Series.PathBuilder; fill: string; width: number; stroke: string; label: string; points: { show: boolean; }; } | { stroke: string; paths: import("uplot").Series.Points.PathBuilder; width: number; label: string; points: { show: boolean; }; } | { paths: import("uplot").Series.PathBuilder; width: number; stroke: string; label: string; points: { show: boolean; }; })[]; getOptions(): { plugins: { hooks: { drawClear: (u: import("uplot")) => void; }; opts: (_u: import("uplot"), opts: any) => void; }[]; }; }