UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

22 lines (21 loc) 747 B
import { LegendValueFormat } from '../../../../constants/chart-style'; import Legend, { ILegend } from './legend'; export interface IOneDLegend extends ILegend { legendValueFormat?: LegendValueFormat[]; percentDecimals?: number; width?: number; sort?: boolean; } export default class OneDLegend extends Legend { legendValueFormat?: LegendValueFormat[]; percentDecimals: number; width?: number; sort?: boolean; setLegendValueFormat(legendValueFormat: LegendValueFormat[]): void; setPercentDecimals(percentDecimals: number): void; setWidth(width?: number): void; setSort(sort?: boolean): void; get option(): IOneDLegend; set(option: IOneDLegend): void; constructor(option: IOneDLegend); }