import type { EchartWidgetState } from '../echart' import type { EchartWidgetOptionProps, EchartWidgetProps, } from '../echart/types' import type { ConfigProps } from '../loader' export type HistogramWidgetData = number[][] export type HistogramWidgetState = EchartWidgetState export type HistogramWidgetConfig = EchartWidgetProps & { type: 'histogram' } export type HistogramConfig = ConfigProps & Pick< EchartWidgetOptionProps, 'theme' | 'formatter' | 'labelFormatter' > & { data?: number[][] ticks: number[] }