index.d.ts 708 B

12345678910111213141516171819202122232425262728
  1. import { Adaptor } from '../../core/adaptor';
  2. import { Plot } from '../../core/plot';
  3. import { BarOptions } from './types';
  4. export type { BarOptions };
  5. /**
  6. * 条形图
  7. */
  8. export declare class Bar extends Plot<BarOptions> {
  9. /**
  10. * 获取 条形图 默认配置项
  11. * 供外部使用
  12. */
  13. static getDefaultOptions(): Partial<BarOptions>;
  14. /** 图表类型 */
  15. readonly type: string;
  16. /**
  17. * @override
  18. */
  19. changeData(data: BarOptions['data']): void;
  20. /**
  21. * 获取 条形图 默认配置
  22. */
  23. protected getDefaultOptions(): Partial<BarOptions>;
  24. /**
  25. * 获取 条形图 的适配器
  26. */
  27. protected getSchemaAdaptor(): Adaptor<BarOptions>;
  28. }