import { ComponentOption, CommonAxisPointerOption, ScaleDataValue, CallbackDataParams, CommonTooltipOption, LineStyleOption, LabelOption, TooltipRenderMode, TooltipOrderMode, AnimationOptionMixin, StatesOptionMixin, StatesMixinBase, ItemStyleOption, SeriesLabelOption, DefaultStatesMixin, SeriesOption as SeriesOption$1, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, BoxLayoutOptionMixin, ShadowOptionMixin, ZRColor, AxisBaseOption, OrdinalSortInfo, CircleLayoutOptionMixin, SeriesOnGeoOptionMixin, SeriesEncodeOptionMixin, Dictionary, OptionDataValueNumeric, OptionDataItemObject, RoamOptionMixin, NameMap, GeoProjection, DisplayState, SeriesStackOptionMixin, SeriesSamplingOptionMixin, OptionDataValue, DefaultStatesMixinEmphasis, CategoryAxisBaseOption, ValueAxisBaseOption, ColorString, LayoutOrient, OptionDataValueDate, BorderOptionMixin, ZRTextAlign, ZRTextVerticalAlign, EChartsExtensionInstallRegisters, SymbolOptionMixin, GlobalModelSetOptionOpts, ZREasing, LegendOption, AreaStyleOption, VisualMapOption, VisualOptionPiecewise, SeriesLineLabelOption, DefaultEmphasisFocus, SeriesOnCalendarOptionMixin, SeriesOnSingleOptionMixin, SeriesLargeOptionMixin, LabelLineOption, BlurScope, DecalObject, OptionId, OptionName, GraphEdgeItemObject, HorizontalAlign, VerticalAlign, SeriesTooltipOption, LineLabelOption, DimensionDefinitionLoose, SunburstColorByMixin, TransitionOptionMixin, GroupProps, ElementKeyframeAnimationOption, PathProps, PathStyleProps, ImageProps, ImageStyleProps, TextProps, TextStyleProps, Element, TransformProp, ElementEventNameWithOn, ElementTextConfig, AnimationOption, Displayable, ZRStyleProps, ECUnitOption, ModelFinderIndexQuery, ModelFinderIdQuery, CustomSeriesOption as CustomSeriesOption$1, ECBasicOption, DatasetOption, AriaOption, BrushOption } from './extension.js'; interface MapperParamAxisInfo { axisIndex: number; axisName: string; axisId: string; axisDim: string; } interface AxisPointerLink { xAxisIndex?: number[] | 'all'; yAxisIndex?: number[] | 'all'; xAxisId?: string[]; yAxisId?: string[]; xAxisName?: string[] | string; yAxisName?: string[] | string; radiusAxisIndex?: number[] | 'all'; angleAxisIndex?: number[] | 'all'; radiusAxisId?: string[]; angleAxisId?: string[]; radiusAxisName?: string[] | string; angleAxisName?: string[] | string; singleAxisIndex?: number[] | 'all'; singleAxisId?: string[]; singleAxisName?: string[] | string; mapper?(sourceVal: ScaleDataValue, sourceAxisInfo: MapperParamAxisInfo, targetAxisInfo: MapperParamAxisInfo): CommonAxisPointerOption['value']; } interface AxisPointerOption extends ComponentOption, Omit { mainType?: 'axisPointer'; type?: 'line' | 'shadow' | 'cross' | 'none'; link?: AxisPointerLink[]; } declare type TopLevelFormatterParams = CallbackDataParams | CallbackDataParams[]; interface TooltipOption extends CommonTooltipOption, ComponentOption { mainType?: 'tooltip'; axisPointer?: AxisPointerOption & { axis?: 'auto' | 'x' | 'y' | 'angle' | 'radius'; crossStyle?: LineStyleOption & { textStyle?: LabelOption; }; }; /** * If show popup content */ showContent?: boolean; /** * Trigger only works on coordinate system. */ trigger?: 'item' | 'axis' | 'none'; displayMode?: 'single' | 'multipleByCoordSys'; /** * 'auto': use html by default, and use non-html if `document` is not defined * 'html': use html for tooltip * 'richText': use canvas, svg, and etc. for tooltip */ renderMode?: 'auto' | TooltipRenderMode; /** * @deprecated * use appendTo: 'body' instead */ appendToBody?: boolean; /** * If append the tooltip element to another DOM element. * Only available when renderMode is html */ appendTo?: ((chartContainer: HTMLElement) => HTMLElement | undefined | null) | string | HTMLElement; /** * Specify the class name of tooltip element * Only available when renderMode is html */ className?: string; order?: TooltipOrderMode; } declare type MarkerStatisticType = 'average' | 'min' | 'max' | 'median'; /** * Option to specify where to put the marker. */ interface MarkerPositionOption { x?: number | string; y?: number | string; /** * Coord on any coordinate system */ coord?: (ScaleDataValue | MarkerStatisticType)[]; xAxis?: ScaleDataValue; yAxis?: ScaleDataValue; radiusAxis?: ScaleDataValue; angleAxis?: ScaleDataValue; type?: MarkerStatisticType; /** * When using statistic method with type. * valueIndex and valueDim can be specify which dim the statistic is used on. */ valueIndex?: number; valueDim?: string; /** * Value to be displayed as label. Totally optional */ value?: string | number; } interface MarkerOption extends ComponentOption, AnimationOptionMixin { silent?: boolean; data?: unknown[]; tooltip?: CommonTooltipOption & { trigger?: 'item' | 'axis' | boolean | 'none'; }; } interface MarkAreaStateOption { itemStyle?: ItemStyleOption; label?: SeriesLabelOption; } interface MarkAreaDataItemOptionBase extends MarkAreaStateOption, StatesOptionMixin { name?: string; } interface MarkArea1DDataItemOption extends MarkAreaDataItemOptionBase { xAxis?: number; yAxis?: number; type?: MarkerStatisticType; valueIndex?: number; valueDim?: string; } interface MarkArea2DDataItemDimOption extends MarkAreaDataItemOptionBase, MarkerPositionOption { } declare type MarkArea2DDataItemOption = [ MarkArea2DDataItemDimOption, MarkArea2DDataItemDimOption ]; interface MarkAreaOption extends MarkerOption, MarkAreaStateOption, StatesOptionMixin { mainType?: 'markArea'; precision?: number; data?: (MarkArea1DDataItemOption | MarkArea2DDataItemOption)[]; } interface BaseBarSeriesOption extends SeriesOption$1, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin { /** * Min height of bar */ barMinHeight?: number; /** * Min angle of bar. Available on polar coordinate system. */ barMinAngle?: number; /** * Max width of bar. Defaults to 1 on cartesian coordinate system. Otherwise it's null. */ barMaxWidth?: number | string; barMinWidth?: number | string; /** * Bar width. Will be calculated automatically. * Can be pixel width or percent string. */ barWidth?: number | string; /** * Gap between each bar inside category. Default to be 30%. Can be an aboslute pixel value */ barGap?: string | number; /** * Gap between each category. Default to be 20%. can be an absolute pixel value. */ barCategoryGap?: string | number; large?: boolean; largeThreshold?: number; } interface GridOption extends ComponentOption, BoxLayoutOptionMixin, ShadowOptionMixin { mainType?: 'grid'; show?: boolean; containLabel?: boolean; backgroundColor?: ZRColor; borderWidth?: number; borderColor?: ZRColor; tooltip?: any; } declare type CartesianAxisPosition = 'top' | 'bottom' | 'left' | 'right'; declare type CartesianAxisOption = AxisBaseOption & { gridIndex?: number; gridId?: string; position?: CartesianAxisPosition; offset?: number; categorySortInfo?: OrdinalSortInfo; }; declare type XAXisOption = CartesianAxisOption & { mainType?: 'xAxis'; }; declare type YAXisOption = CartesianAxisOption & { mainType?: 'yAxis'; }; declare type AngleAxisOption = AxisBaseOption & { mainType?: 'angleAxis'; /** * Index of host polar component */ polarIndex?: number; /** * Id of host polar component */ polarId?: string; startAngle?: number; endAngle?: number; clockwise?: boolean; axisLabel?: AxisBaseOption['axisLabel']; }; declare type RadiusAxisOption = AxisBaseOption & { mainType?: 'radiusAxis'; /** * Index of host polar component */ polarIndex?: number; /** * Id of host polar component */ polarId?: string; }; interface PolarOption extends ComponentOption, CircleLayoutOptionMixin { mainType?: 'polar'; } interface MapStateOption { itemStyle?: GeoItemStyleOption; label?: SeriesLabelOption; } interface MapDataItemOption extends MapStateOption, StatesOptionMixin, OptionDataItemObject { cursor?: string; } declare type MapValueCalculationType = 'sum' | 'average' | 'min' | 'max'; interface MapSeriesOption$1 extends SeriesOption$1, StatesMixinBase>, MapStateOption, GeoCommonOptionMixin, SeriesOnGeoOptionMixin, BoxLayoutOptionMixin, SeriesEncodeOptionMixin { type?: 'map'; coordinateSystem?: string; silent?: boolean; markLine?: any; markPoint?: any; markArea?: any; mapValueCalculation?: MapValueCalculationType; showLegendSymbol?: boolean; geoCoord?: Dictionary; data?: (OptionDataValueNumeric | OptionDataValueNumeric[] | MapDataItemOption)[]; nameProperty?: string; } interface GeoItemStyleOption extends ItemStyleOption { areaColor?: ZRColor; } interface GeoLabelOption extends LabelOption { formatter?: string | ((params: GeoLabelFormatterDataParams) => string); } interface GeoStateOption { itemStyle?: GeoItemStyleOption; label?: GeoLabelOption; } interface GeoLabelFormatterDataParams { name: string; status: DisplayState; } interface RegoinOption extends GeoStateOption, StatesOptionMixin { name?: string; selected?: boolean; tooltip?: CommonTooltipOption; } interface GeoTooltipFormatterParams { componentType: 'geo'; geoIndex: number; name: string; $vars: ['name']; } interface GeoCommonOptionMixin extends RoamOptionMixin { map: string; aspectScale?: number; layoutCenter?: (number | string)[]; layoutSize?: number | string; boundingCoords?: number[][]; nameMap?: NameMap; nameProperty?: string; /** * Use raw projection by default * Only available for GeoJSON source. * * NOTE: `center` needs to be the projected coord if projection is used. */ projection?: GeoProjection; } interface GeoOption extends ComponentOption, BoxLayoutOptionMixin, AnimationOptionMixin, GeoCommonOptionMixin, StatesOptionMixin, GeoStateOption { mainType?: 'geo'; show?: boolean; silent?: boolean; regions?: RegoinOption[]; stateAnimation?: AnimationOptionMixin; selectedMode?: 'single' | 'multiple' | boolean; selectedMap?: Dictionary; tooltip?: CommonTooltipOption; } declare type PolarBarLabelPosition = SeriesLabelOption['position'] | 'start' | 'insideStart' | 'middle' | 'end' | 'insideEnd'; declare type BarSeriesLabelOption = Omit & { position?: PolarBarLabelPosition | 'outside'; }; interface BarStateOption { itemStyle?: BarItemStyleOption; label?: BarSeriesLabelOption; } interface BarStatesMixin { emphasis?: DefaultStatesMixinEmphasis; } interface BarItemStyleOption extends ItemStyleOption { borderRadius?: (number | string)[] | number | string; } interface BarDataItemOption extends BarStateOption, StatesOptionMixin, OptionDataItemObject { cursor?: string; } interface BarSeriesOption$1 extends BaseBarSeriesOption, BarStatesMixin>, BarStateOption, SeriesStackOptionMixin, SeriesSamplingOptionMixin, SeriesEncodeOptionMixin { type?: 'bar'; coordinateSystem?: 'cartesian2d' | 'polar'; clip?: boolean; /** * If use caps on two sides of bars * Only available on tangential polar bar */ roundCap?: boolean; showBackground?: boolean; startValue?: number; backgroundStyle?: ItemStyleOption & { borderRadius?: number | number[]; }; data?: (BarDataItemOption | OptionDataValue | OptionDataValue[])[]; realtimeSort?: boolean; } interface RadarIndicatorOption { name?: string; /** * @deprecated Use `name` instead. */ text?: string; min?: number; max?: number; color?: ColorString; axisType?: 'value' | 'log'; } interface RadarOption extends ComponentOption, CircleLayoutOptionMixin { mainType?: 'radar'; startAngle?: number; shape?: 'polygon' | 'circle'; axisLine?: AxisBaseOption['axisLine']; axisTick?: AxisBaseOption['axisTick']; axisLabel?: AxisBaseOption['axisLabel']; splitLine?: AxisBaseOption['splitLine']; splitArea?: AxisBaseOption['splitArea']; axisName?: { show?: boolean; formatter?: string | ((name?: string, indicatorOpt?: InnerIndicatorAxisOption) => string); } & LabelOption; axisNameGap?: number; triggerEvent?: boolean; scale?: boolean; splitNumber?: number; boundaryGap?: CategoryAxisBaseOption['boundaryGap'] | ValueAxisBaseOption['boundaryGap']; indicator?: RadarIndicatorOption[]; } declare type InnerIndicatorAxisOption = AxisBaseOption & { showName?: boolean; }; declare type SingleAxisPosition = 'top' | 'bottom' | 'left' | 'right'; declare type SingleAxisOption = AxisBaseOption & BoxLayoutOptionMixin & { mainType?: 'singleAxis'; position?: SingleAxisPosition; orient?: LayoutOrient; }; declare type ParallelLayoutDirection = 'horizontal' | 'vertical'; interface ParallelCoordinateSystemOption extends ComponentOption, BoxLayoutOptionMixin { mainType?: 'parallel'; layout?: ParallelLayoutDirection; axisExpandable?: boolean; axisExpandCenter?: number; axisExpandCount?: number; axisExpandWidth?: number; axisExpandTriggerOn?: 'click' | 'mousemove'; axisExpandRate?: number; axisExpandDebounce?: number; axisExpandSlideTriggerArea?: [number, number, number]; axisExpandWindow?: number[]; parallelAxisDefault?: ParallelAxisOption; } declare type ParallelAxisOption = AxisBaseOption & { /** * 0, 1, 2, ... */ dim?: number | number[]; parallelIndex?: number; areaSelectStyle?: { width?: number; borderWidth?: number; borderColor?: ZRColor; color?: ZRColor; opacity?: number; }; realtime?: boolean; }; interface CalendarMonthLabelFormatterCallbackParams { nameMap: string; yyyy: string; yy: string; /** * Month string. With 0 prefix. */ MM: string; /** * Month number */ M: number; } interface CalendarYearLabelFormatterCallbackParams { nameMap: string; /** * Start year */ start: string; /** * End year */ end: string; } interface CalendarOption extends ComponentOption, BoxLayoutOptionMixin { mainType?: 'calendar'; cellSize?: number | 'auto' | (number | 'auto')[]; orient?: LayoutOrient; splitLine?: { show?: boolean; lineStyle?: LineStyleOption; }; itemStyle?: ItemStyleOption; /** * // one year * range: 2017 * // one month * range: '2017-02' * // a range * range: ['2017-01-02', '2017-02-23'] * // note: they will be identified as ['2017-01-01', '2017-02-01'] * range: ['2017-01', '2017-02'] */ range?: OptionDataValueDate | (OptionDataValueDate)[]; dayLabel?: Omit & { /** * First day of week. */ firstDay?: number; /** * Margin between day label and axis line. * Can be percent string of cell size. */ margin?: number | string; /** * Position of week, at the beginning or end of the range. */ position?: 'start' | 'end'; /** * Week text content * * defaults to auto-detected locale by the browser or the specified locale by `echarts.init` function. * It supports any registered locale name (case-sensitive) or customized array. * index 0 always means Sunday. */ nameMap?: string | string[]; }; monthLabel?: Omit & { /** * Margin between month label and axis line. */ margin?: number; /** * Position of month label, at the beginning or end of the range. */ position?: 'start' | 'end'; /** * Month text content * * defaults to auto-detected locale by the browser or the specified locale by `echarts.init` function. * It supports any registered locale name (case-sensitive) or customized array. * index 0 always means Jan. */ nameMap?: string | string[]; formatter?: string | ((params: CalendarMonthLabelFormatterCallbackParams) => string); }; yearLabel?: Omit & { /** * Margin between year label and axis line. */ margin?: number; /** * Position of year label, at the beginning or end of the range. */ position?: 'top' | 'bottom' | 'left' | 'right'; formatter?: string | ((params: CalendarYearLabelFormatterCallbackParams) => string); }; } declare type IconStyle = ItemStyleOption & { textFill?: LabelOption['color']; textBackgroundColor?: LabelOption['backgroundColor']; textPosition?: LabelOption['position']; textAlign?: LabelOption['align']; textBorderRadius?: LabelOption['borderRadius']; textPadding?: LabelOption['padding']; textFontFamily?: LabelOption['fontFamily']; textFontSize?: LabelOption['fontSize']; textFontWeight?: LabelOption['fontWeight']; textFontStyle?: LabelOption['fontStyle']; }; interface ToolboxFeatureOption { show?: boolean; title?: string | Partial>; icon?: string | Partial>; iconStyle?: IconStyle; emphasis?: { iconStyle?: IconStyle; }; iconStatus?: Partial>; onclick?: () => void; } interface ToolboxTooltipFormatterParams { componentType: 'toolbox'; name: string; title: string; $vars: ['name', 'title']; } interface ToolboxOption extends ComponentOption, BoxLayoutOptionMixin, BorderOptionMixin { mainType?: 'toolbox'; show?: boolean; orient?: LayoutOrient; backgroundColor?: ZRColor; borderRadius?: number | number[]; padding?: number | number[]; itemSize?: number; itemGap?: number; showTitle?: boolean; iconStyle?: ItemStyleOption; emphasis?: { iconStyle?: ItemStyleOption; }; textStyle?: LabelOption; tooltip?: CommonTooltipOption; /** * Write all supported features in the final export option. */ feature?: Partial>; } interface TitleOption$1 extends ComponentOption, BoxLayoutOptionMixin, BorderOptionMixin { mainType?: 'title'; show?: boolean; text?: string; /** * Link to url */ link?: string; target?: 'self' | 'blank'; subtext?: string; sublink?: string; subtarget?: 'self' | 'blank'; textAlign?: ZRTextAlign; textVerticalAlign?: ZRTextVerticalAlign; /** * @deprecated Use textVerticalAlign instead */ textBaseline?: ZRTextVerticalAlign; backgroundColor?: ZRColor; /** * Padding between text and border. * Support to be a single number or an array. */ padding?: number | number[]; /** * Gap between text and subtext */ itemGap?: number; textStyle?: LabelOption; subtextStyle?: LabelOption; /** * If trigger mouse or touch event */ triggerEvent?: boolean; /** * Radius of background border. */ borderRadius?: number | number[]; } declare function install(registers: EChartsExtensionInstallRegisters): void; interface TimelineControlStyle extends ItemStyleOption { show?: boolean; showPlayBtn?: boolean; showPrevBtn?: boolean; showNextBtn?: boolean; itemSize?: number; itemGap?: number; position?: 'left' | 'right' | 'top' | 'bottom'; playIcon?: string; stopIcon?: string; prevIcon?: string; nextIcon?: string; playBtnSize?: number | string; stopBtnSize?: number | string; nextBtnSize?: number | string; prevBtnSize?: number | string; } interface TimelineCheckpointStyle extends ItemStyleOption, SymbolOptionMixin { animation?: boolean; animationDuration?: number; animationEasing?: ZREasing; } interface TimelineLineStyleOption extends LineStyleOption { show?: boolean; } interface TimelineLabelOption extends Omit { show?: boolean; position?: 'auto' | 'left' | 'right' | 'top' | 'bottom' | number; interval?: 'auto' | number; formatter?: string | ((value: string | number, index: number) => string); } interface TimelineDataItemOption extends SymbolOptionMixin { value?: OptionDataValue; itemStyle?: ItemStyleOption; label?: TimelineLabelOption; checkpointStyle?: TimelineCheckpointStyle; emphasis?: { itemStyle?: ItemStyleOption; label?: TimelineLabelOption; checkpointStyle?: TimelineCheckpointStyle; }; progress?: { lineStyle?: TimelineLineStyleOption; itemStyle?: ItemStyleOption; label?: TimelineLabelOption; }; tooltip?: boolean; } interface TimelineOption extends ComponentOption, BoxLayoutOptionMixin, SymbolOptionMixin { mainType?: 'timeline'; backgroundColor?: ZRColor; borderColor?: ColorString; borderWidth?: number; tooltip?: CommonTooltipOption & { trigger?: 'item'; }; show?: boolean; axisType?: 'category' | 'time' | 'value'; currentIndex?: number; autoPlay?: boolean; rewind?: boolean; loop?: boolean; playInterval?: number; realtime?: boolean; controlPosition?: 'left' | 'right' | 'top' | 'bottom'; padding?: number | number[]; orient?: LayoutOrient; inverse?: boolean; replaceMerge?: GlobalModelSetOptionOpts['replaceMerge']; lineStyle?: TimelineLineStyleOption; itemStyle?: ItemStyleOption; checkpointStyle?: TimelineCheckpointStyle; controlStyle?: TimelineControlStyle; label?: TimelineLabelOption; emphasis?: { lineStyle?: TimelineLineStyleOption; itemStyle?: ItemStyleOption; checkpointStyle?: TimelineCheckpointStyle; controlStyle?: TimelineControlStyle; label?: TimelineLabelOption; }; progress?: { lineStyle?: TimelineLineStyleOption; itemStyle?: ItemStyleOption; label?: TimelineLabelOption; }; data?: (OptionDataValue | TimelineDataItemOption)[]; } interface SliderTimelineOption extends TimelineOption { } interface ScrollableLegendOption extends LegendOption { scrollDataIndex?: number; /** * Gap between each page button */ pageButtonItemGap?: number; /** * Gap between page buttons group and legend items. */ pageButtonGap?: number; pageButtonPosition?: 'start' | 'end'; pageFormatter?: string | ((param: { current: number; total: number; }) => string); pageIcons?: { horizontal?: string[]; vertical?: string[]; }; pageIconColor?: ZRColor; pageIconInactiveColor?: ZRColor; pageIconSize?: number; pageTextStyle?: LabelOption; animationDurationUpdate?: number; } interface DataZoomOption extends ComponentOption { mainType?: 'dataZoom'; /** * Default auto by axisIndex */ orient?: LayoutOrient; /** * Default the first horizontal category axis. */ xAxisIndex?: number | number[]; xAxisId?: string | string[]; /** * Default the first vertical category axis. */ yAxisIndex?: number | number[]; yAxisId?: string | string[]; radiusAxisIndex?: number | number[]; radiusAxisId?: string | string[]; angleAxisIndex?: number | number[]; angleAxisId?: string | string[]; singleAxisIndex?: number | number[]; singleAxisId?: string | string[]; /** * Possible values: 'filter' or 'empty' or 'weakFilter'. * 'filter': data items which are out of window will be removed. This option is * applicable when filtering outliers. For each data item, it will be * filtered if one of the relevant dimensions is out of the window. * 'weakFilter': data items which are out of window will be removed. This option * is applicable when filtering outliers. For each data item, it will be * filtered only if all of the relevant dimensions are out of the same * side of the window. * 'empty': data items which are out of window will be set to empty. * This option is applicable when user should not neglect * that there are some data items out of window. * 'none': Do not filter. * Taking line chart as an example, line will be broken in * the filtered points when filterModel is set to 'empty', but * be connected when set to 'filter'. */ filterMode?: 'filter' | 'weakFilter' | 'empty' | 'none'; /** * Dispatch action by the fixed rate, avoid frequency. * default 100. Do not throttle when use null/undefined. * If animation === true and animationDurationUpdate > 0, * default value is 100, otherwise 20. */ throttle?: number | null | undefined; /** * Start percent. 0 ~ 100 */ start?: number; /** * End percent. 0 ~ 100 */ end?: number; /** * Start value. If startValue specified, start is ignored */ startValue?: number | string | Date; /** * End value. If endValue specified, end is ignored. */ endValue?: number | string | Date; /** * Min span percent, 0 - 100 * The range of dataZoom can not be smaller than that. */ minSpan?: number; /** * Max span percent, 0 - 100 * The range of dataZoom can not be larger than that. */ maxSpan?: number; minValueSpan?: number; maxValueSpan?: number; rangeMode?: ['value' | 'percent', 'value' | 'percent']; realtime?: boolean; textStyle?: LabelOption; } interface SliderDataZoomOption extends DataZoomOption, BoxLayoutOptionMixin { show?: boolean; /** * Slider dataZoom don't support textStyle */ /** * Background of slider zoom component */ backgroundColor?: ZRColor; /** * @deprecated Use borderColor instead */ /** * border color of the box. For compatibility, * if dataBackgroundColor is set, borderColor * is ignored. */ borderColor?: ZRColor; /** * Border radius of the box. */ borderRadius?: number | number[]; dataBackground?: { lineStyle?: LineStyleOption; areaStyle?: AreaStyleOption; }; selectedDataBackground?: { lineStyle?: LineStyleOption; areaStyle?: AreaStyleOption; }; /** * Color of selected area. */ fillerColor?: ZRColor; /** * @deprecated Use handleStyle instead */ handleIcon?: string; /** * number: height of icon. width will be calculated according to the aspect of icon. * string: percent of the slider height. width will be calculated according to the aspect of icon. */ handleSize?: string | number; handleStyle?: ItemStyleOption; /** * Icon to indicate it is a draggable panel. */ moveHandleIcon?: string; moveHandleStyle?: ItemStyleOption; /** * Height of handle rect. Can be a percent string relative to the slider height. */ moveHandleSize?: number; labelPrecision?: number | 'auto'; labelFormatter?: string | ((value: number, valueStr: string) => string); showDetail?: boolean; showDataShadow?: 'auto' | boolean; zoomLock?: boolean; textStyle?: LabelOption; /** * If eable select by brushing */ brushSelect?: boolean; brushStyle?: ItemStyleOption; emphasis?: { handleStyle?: ItemStyleOption; moveHandleStyle?: ItemStyleOption; }; } interface InsideDataZoomOption extends DataZoomOption { /** * Whether disable this inside zoom. */ disabled?: boolean; /** * Whether disable zoom but only pan. */ zoomLock?: boolean; zoomOnMouseWheel?: boolean | 'shift' | 'ctrl' | 'alt'; moveOnMouseMove?: boolean | 'shift' | 'ctrl' | 'alt'; moveOnMouseWheel?: boolean | 'shift' | 'ctrl' | 'alt'; preventDefaultMouseMove?: boolean; /** * Inside dataZoom don't support textStyle */ textStyle?: never; } interface ContinousVisualMapOption extends VisualMapOption { align?: 'auto' | 'left' | 'right' | 'top' | 'bottom'; /** * This prop effect default component type determine * @see echarts/component/visualMap/typeDefaulter. */ calculable?: boolean; /** * selected range. In default case `range` is [min, max] * and can auto change along with modification of min max, * until user specified a range. */ range?: number[]; /** * Whether to enable hover highlight. */ hoverLink?: boolean; /** * The extent of hovered data. */ hoverLinkDataSize?: number; /** * Whether trigger hoverLink when hover handle. * If not specified, follow the value of `realtime`. */ hoverLinkOnHandle?: boolean; handleIcon?: string; handleSize?: string | number; handleStyle?: ItemStyleOption; indicatorIcon?: string; indicatorSize?: string | number; indicatorStyle?: ItemStyleOption; emphasis?: { handleStyle?: ItemStyleOption; }; } interface VisualPiece extends VisualOptionPiecewise { min?: number; max?: number; lt?: number; gt?: number; lte?: number; gte?: number; value?: number; label?: string; } /** * Order Rule: * * option.categories / option.pieces / option.text / option.selected: * If !option.inverse, * Order when vertical: ['top', ..., 'bottom']. * Order when horizontal: ['left', ..., 'right']. * If option.inverse, the meaning of * the order should be reversed. * * this._pieceList: * The order is always [low, ..., high]. * * Mapping from location to low-high: * If !option.inverse * When vertical, top is high. * When horizontal, right is high. * If option.inverse, reverse. */ interface PiecewiseVisualMapOption extends VisualMapOption { align?: 'auto' | 'left' | 'right'; minOpen?: boolean; maxOpen?: boolean; /** * When put the controller vertically, it is the length of * horizontal side of each item. Otherwise, vertical side. * When put the controller vertically, it is the length of * vertical side of each item. Otherwise, horizontal side. */ itemWidth?: number; itemHeight?: number; itemSymbol?: string; pieces?: VisualPiece[]; /** * category names, like: ['some1', 'some2', 'some3']. * Attr min/max are ignored when categories set. See "Order Rule" */ categories?: string[]; /** * If set to 5, auto split five pieces equally. * If set to 0 and component type not set, component type will be * determined as "continuous". (It is less reasonable but for ec2 * compatibility, see echarts/component/visualMap/typeDefaulter) */ splitNumber?: number; /** * Object. If not specified, means selected. When pieces and splitNumber: {'0': true, '5': true} * When categories: {'cate1': false, 'cate3': true} When selected === false, means all unselected. */ selected?: Dictionary; selectedMode?: 'multiple' | 'single' | boolean; /** * By default, when text is used, label will hide (the logic * is remained for compatibility reason) */ showLabel?: boolean; itemGap?: number; hoverLink?: boolean; } interface MarkLineStateOption { lineStyle?: LineStyleOption; /** * itemStyle for symbol */ itemStyle?: ItemStyleOption; label?: SeriesLineLabelOption; } interface MarkLineDataItemOptionBase extends MarkLineStateOption, StatesOptionMixin { name?: string; } interface MarkLine1DDataItemOption extends MarkLineDataItemOptionBase { xAxis?: number | string; yAxis?: number | string; type?: MarkerStatisticType; /** * When using statistic method with type. * valueIndex and valueDim can be specify which dim the statistic is used on. */ valueIndex?: number; valueDim?: string; /** * Symbol for both two ends */ symbol?: string[] | string; symbolSize?: number[] | number; symbolRotate?: number[] | number; symbolOffset?: number | string | (number | string)[]; } interface MarkLine2DDataItemDimOption extends MarkLineDataItemOptionBase, SymbolOptionMixin, MarkerPositionOption { } declare type MarkLine2DDataItemOption = [ MarkLine2DDataItemDimOption, MarkLine2DDataItemDimOption ]; interface MarkLineOption extends MarkerOption, MarkLineStateOption, StatesOptionMixin { mainType?: 'markLine'; symbol?: string[] | string; symbolSize?: number[] | number; symbolRotate?: number[] | number; symbolOffset?: number | string | (number | string)[]; /** * Precision used on statistic method */ precision?: number; data?: (MarkLine1DDataItemOption | MarkLine2DDataItemOption)[]; } interface MarkPointStateOption { itemStyle?: ItemStyleOption; label?: SeriesLabelOption; } interface MarkPointDataItemOption extends MarkPointStateOption, StatesOptionMixin, SymbolOptionMixin, MarkerPositionOption { name: string; } interface MarkPointOption extends MarkerOption, SymbolOptionMixin, StatesOptionMixin, MarkPointStateOption { mainType?: 'markPoint'; precision?: number; data?: MarkPointDataItemOption[]; } declare type LineDataValue = OptionDataValue | OptionDataValue[]; interface LineStateOptionMixin { emphasis?: { focus?: DefaultEmphasisFocus; scale?: boolean | number; }; } interface LineStateOption { itemStyle?: ItemStyleOption; label?: SeriesLabelOption; endLabel?: LineEndLabelOption; } interface LineDataItemOption extends SymbolOptionMixin, LineStateOption, StatesOptionMixin { name?: string; value?: LineDataValue; } interface LineEndLabelOption extends SeriesLabelOption { valueAnimation?: boolean; } interface LineSeriesOption$1 extends SeriesOption$1, LineStateOptionMixin & { emphasis?: { lineStyle?: Omit & { width?: LineStyleOption['width'] | 'bolder'; }; areaStyle?: AreaStyleOption; }; blur?: { lineStyle?: LineStyleOption; areaStyle?: AreaStyleOption; }; }>, LineStateOption, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesStackOptionMixin, SeriesSamplingOptionMixin, SymbolOptionMixin, SeriesEncodeOptionMixin { type?: 'line'; coordinateSystem?: 'cartesian2d' | 'polar'; clip?: boolean; label?: SeriesLabelOption; endLabel?: LineEndLabelOption; lineStyle?: LineStyleOption; areaStyle?: AreaStyleOption & { origin?: 'auto' | 'start' | 'end' | number; }; step?: false | 'start' | 'end' | 'middle'; smooth?: boolean | number; smoothMonotone?: 'x' | 'y' | 'none'; connectNulls?: boolean; showSymbol?: boolean; showAllSymbol?: 'auto' | boolean; data?: (LineDataValue | LineDataItemOption)[]; triggerLineEvent?: boolean; } interface ScatterStateOption { itemStyle?: ItemStyleOption; label?: SeriesLabelOption; } interface ScatterStatesOptionMixin { emphasis?: { focus?: DefaultEmphasisFocus; scale?: boolean | number; }; } interface ScatterDataItemOption extends SymbolOptionMixin, ScatterStateOption, StatesOptionMixin, OptionDataItemObject { } interface ScatterSeriesOption$1 extends SeriesOption$1, ScatterStatesOptionMixin>, ScatterStateOption, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin, SeriesLargeOptionMixin, SeriesStackOptionMixin, SymbolOptionMixin, SeriesEncodeOptionMixin { type?: 'scatter'; coordinateSystem?: string; cursor?: string; clip?: boolean; data?: (ScatterDataItemOption | OptionDataValue | OptionDataValue[])[] | ArrayLike; } interface PieItemStyleOption extends ItemStyleOption { borderRadius?: (number | string)[] | number | string; } interface PieCallbackDataParams extends CallbackDataParams { percent: number; } interface PieStateOption { itemStyle?: PieItemStyleOption; label?: PieLabelOption; labelLine?: PieLabelLineOption; } interface PieLabelOption extends Omit { rotate?: number | boolean | 'radial' | 'tangential'; alignTo?: 'none' | 'labelLine' | 'edge'; edgeDistance?: string | number; /** * @deprecated Use `edgeDistance` instead */ margin?: string | number; bleedMargin?: number; distanceToLabelLine?: number; position?: SeriesLabelOption['position'] | 'outer' | 'inner' | 'center' | 'outside'; } interface PieLabelLineOption extends LabelLineOption { /** * Max angle between labelLine and surface normal. * 0 - 180 */ maxSurfaceAngle?: number; } interface ExtraStateOption$5 { emphasis?: { focus?: DefaultEmphasisFocus; scale?: boolean; scaleSize?: number; }; } interface PieDataItemOption extends OptionDataItemObject, PieStateOption, StatesOptionMixin { cursor?: string; } interface PieSeriesOption$1 extends Omit, ExtraStateOption$5>, 'labelLine'>, PieStateOption, Omit, BoxLayoutOptionMixin, SeriesEncodeOptionMixin { type?: 'pie'; roseType?: 'radius' | 'area'; center?: string | number | (string | number)[]; clockwise?: boolean; startAngle?: number; endAngle?: number | 'auto'; padAngle?: number; minAngle?: number; minShowLabelAngle?: number; selectedOffset?: number; avoidLabelOverlap?: boolean; percentPrecision?: number; stillShowZeroSum?: boolean; animationType?: 'expansion' | 'scale'; animationTypeUpdate?: 'transition' | 'expansion'; showEmptyCircle?: boolean; emptyCircleStyle?: PieItemStyleOption; data?: (OptionDataValueNumeric | OptionDataValueNumeric[] | PieDataItemOption)[]; } declare type RadarSeriesDataValue = OptionDataValue[]; interface RadarStatesMixin { emphasis?: DefaultStatesMixinEmphasis; } interface RadarSeriesStateOption { lineStyle?: LineStyleOption; areaStyle?: AreaStyleOption; label?: SeriesLabelOption; itemStyle?: ItemStyleOption; } interface RadarSeriesDataItemOption extends SymbolOptionMixin, RadarSeriesStateOption, StatesOptionMixin, RadarStatesMixin>, OptionDataItemObject { } interface RadarSeriesOption$1 extends SeriesOption$1, RadarSeriesStateOption, SymbolOptionMixin, SeriesEncodeOptionMixin { type?: 'radar'; coordinateSystem?: 'radar'; radarIndex?: number; radarId?: string; data?: (RadarSeriesDataItemOption | RadarSeriesDataValue)[]; } interface CurveLineStyleOption extends LineStyleOption { curveness?: number; } interface TreeSeriesStateOption { itemStyle?: ItemStyleOption; /** * Line style of the edge between node and it's parent. */ lineStyle?: CurveLineStyleOption; label?: SeriesLabelOption; } interface TreeStatesMixin { emphasis?: { focus?: DefaultEmphasisFocus | 'ancestor' | 'descendant' | 'relative'; scale?: boolean; }; } interface TreeSeriesNodeItemOption extends SymbolOptionMixin, TreeSeriesStateOption, StatesOptionMixin, TreeStatesMixin>, OptionDataItemObject { children?: TreeSeriesNodeItemOption[]; collapsed?: boolean; link?: string; target?: string; } /** * Configuration of leaves nodes. */ interface TreeSeriesLeavesOption extends TreeSeriesStateOption, StatesOptionMixin { } interface TreeSeriesOption$1 extends SeriesOption$1, TreeSeriesStateOption, SymbolOptionMixin, BoxLayoutOptionMixin, RoamOptionMixin { type?: 'tree'; layout?: 'orthogonal' | 'radial'; edgeShape?: 'polyline' | 'curve'; /** * Available when edgeShape is polyline */ edgeForkPosition?: string | number; nodeScaleRatio?: number; /** * The orient of orthoginal layout, can be setted to 'LR', 'TB', 'RL', 'BT'. * and the backward compatibility configuration 'horizontal = LR', 'vertical = TB'. */ orient?: 'LR' | 'TB' | 'RL' | 'BT' | 'horizontal' | 'vertical'; expandAndCollapse?: boolean; /** * The initial expanded depth of tree */ initialTreeDepth?: number; leaves?: TreeSeriesLeavesOption; data?: TreeSeriesNodeItemOption[]; } declare type TreemapSeriesDataValue = number | number[]; interface BreadcrumbItemStyleOption extends ItemStyleOption { textStyle?: LabelOption; } interface TreemapSeriesLabelOption extends SeriesLabelOption { formatter?: string | ((params: CallbackDataParams) => string); } interface TreemapSeriesItemStyleOption extends ItemStyleOption { borderRadius?: number | number[]; colorAlpha?: number; colorSaturation?: number; borderColorSaturation?: number; gapWidth?: number; } interface TreePathInfo { name: string; dataIndex: number; value: TreemapSeriesDataValue; } interface TreemapSeriesCallbackDataParams extends CallbackDataParams { /** * @deprecated */ treePathInfo?: TreePathInfo[]; treeAncestors?: TreePathInfo[]; } interface ExtraStateOption$4 { emphasis?: { focus?: DefaultEmphasisFocus | 'descendant' | 'ancestor'; }; } interface TreemapStateOption { itemStyle?: TreemapSeriesItemStyleOption; label?: TreemapSeriesLabelOption; upperLabel?: TreemapSeriesLabelOption; } interface TreemapSeriesVisualOption { /** * Which dimension will be applied with the visual properties. */ visualDimension?: number | string; /** * @deprecated Use colorBy instead */ colorMappingBy?: 'value' | 'index' | 'id'; visualMin?: number; visualMax?: number; colorAlpha?: number[] | 'none'; colorSaturation?: number[] | 'none'; /** * A node will not be shown when its area size is smaller than this value (unit: px square). */ visibleMin?: number; /** * Children will not be shown when area size of a node is smaller than this value (unit: px square). */ childrenVisibleMin?: number; } interface TreemapSeriesLevelOption extends TreemapSeriesVisualOption, TreemapStateOption, StatesOptionMixin { color?: ColorString[] | 'none'; decal?: DecalObject[] | 'none'; } interface TreemapSeriesNodeItemOption extends TreemapSeriesVisualOption, TreemapStateOption, StatesOptionMixin { id?: OptionId; name?: OptionName; value?: TreemapSeriesDataValue; children?: TreemapSeriesNodeItemOption[]; color?: ColorString[] | 'none'; decal?: DecalObject[] | 'none'; } interface TreemapSeriesOption$1 extends SeriesOption$1, ExtraStateOption$4>, TreemapStateOption, BoxLayoutOptionMixin, RoamOptionMixin, TreemapSeriesVisualOption { type?: 'treemap'; /** * configuration in echarts2 * @deprecated */ size?: (number | string)[]; /** * If sort in desc order. * Default to be desc. asc has strange effect */ sort?: boolean | 'asc' | 'desc'; /** * Size of clipped window when zooming. 'origin' or 'fullscreen' */ clipWindow?: 'origin' | 'fullscreen'; squareRatio?: number; /** * Nodes on depth from root are regarded as leaves. * Count from zero (zero represents only view root). */ leafDepth?: number; drillDownIcon?: string; /** * Be effective when using zoomToNode. Specify the proportion of the * target node area in the view area. */ zoomToNodeRatio?: number; /** * Leaf node click behaviour: 'zoomToNode', 'link', false. * If leafDepth is set and clicking a node which has children but * be on left depth, the behaviour would be changing root. Otherwise * use behaviour defined above. */ nodeClick?: 'zoomToNode' | 'link' | false; breadcrumb?: BoxLayoutOptionMixin & { show?: boolean; height?: number; emptyItemWidth?: number; itemStyle?: BreadcrumbItemStyleOption; emphasis?: { disabled?: boolean; focus?: DefaultEmphasisFocus; blurScope?: BlurScope; itemStyle?: BreadcrumbItemStyleOption; }; }; levels?: TreemapSeriesLevelOption[]; data?: TreemapSeriesNodeItemOption[]; } declare type GraphDataValue = OptionDataValue | OptionDataValue[]; interface GraphEdgeLineStyleOption extends LineStyleOption { curveness?: number; } interface GraphNodeStateOption { itemStyle?: ItemStyleOption; label?: SeriesLabelOption; } interface ExtraEmphasisState { focus?: DefaultEmphasisFocus | 'adjacency'; } interface GraphNodeStatesMixin { emphasis?: ExtraEmphasisState; } interface GraphEdgeStatesMixin { emphasis?: ExtraEmphasisState; } interface GraphNodeItemOption extends SymbolOptionMixin, GraphNodeStateOption, StatesOptionMixin { id?: string; name?: string; value?: GraphDataValue; /** * Fixed x position */ x?: number; /** * Fixed y position */ y?: number; /** * If this node is fixed during force layout. */ fixed?: boolean; /** * Index or name of category */ category?: number | string; draggable?: boolean; cursor?: string; } interface GraphEdgeStateOption { lineStyle?: GraphEdgeLineStyleOption; label?: SeriesLineLabelOption; } interface GraphEdgeItemOption extends GraphEdgeStateOption, StatesOptionMixin, GraphEdgeItemObject { value?: number; /** * Symbol of both line ends */ symbol?: string | string[]; symbolSize?: number | number[]; ignoreForceLayout?: boolean; } interface GraphCategoryItemOption extends SymbolOptionMixin, GraphNodeStateOption, StatesOptionMixin { name?: string; value?: OptionDataValue; } interface GraphSeriesOption$1 extends SeriesOption$1, GraphNodeStatesMixin>, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin, SymbolOptionMixin, RoamOptionMixin, BoxLayoutOptionMixin { type?: 'graph'; coordinateSystem?: string; legendHoverLink?: boolean; layout?: 'none' | 'force' | 'circular'; data?: (GraphNodeItemOption | GraphDataValue)[]; nodes?: (GraphNodeItemOption | GraphDataValue)[]; edges?: GraphEdgeItemOption[]; links?: GraphEdgeItemOption[]; categories?: GraphCategoryItemOption[]; /** * @deprecated */ focusNodeAdjacency?: boolean; /** * Symbol size scale ratio in roam */ nodeScaleRatio?: 0.6; draggable?: boolean; edgeSymbol?: string | string[]; edgeSymbolSize?: number | number[]; edgeLabel?: SeriesLineLabelOption; label?: SeriesLabelOption; itemStyle?: ItemStyleOption; lineStyle?: GraphEdgeLineStyleOption; emphasis?: { focus?: Exclude['focus']; scale?: boolean | number; label?: SeriesLabelOption; edgeLabel?: SeriesLabelOption; itemStyle?: ItemStyleOption; lineStyle?: LineStyleOption; }; blur?: { label?: SeriesLabelOption; edgeLabel?: SeriesLabelOption; itemStyle?: ItemStyleOption; lineStyle?: LineStyleOption; }; select?: { label?: SeriesLabelOption; edgeLabel?: SeriesLabelOption; itemStyle?: ItemStyleOption; lineStyle?: LineStyleOption; }; circular?: { rotateLabel?: boolean; }; force?: { initLayout?: 'circular' | 'none'; repulsion?: number | number[]; gravity?: number; friction?: number; edgeLength?: number | number[]; layoutAnimation?: boolean; }; /** * auto curveness for multiple edge, invalid when `lineStyle.curveness` is set */ autoCurveness?: boolean | number | number[]; } declare type GaugeColorStop = [number, ColorString]; interface LabelFormatter { (value: number): string; } interface PointerOption { icon?: string; show?: boolean; /** * If pointer shows above title and detail */ showAbove?: boolean; keepAspect?: boolean; itemStyle?: ItemStyleOption; /** * Can be percent */ offsetCenter?: (number | string)[]; length?: number | string; width?: number; } interface AnchorOption { show?: boolean; showAbove?: boolean; size?: number; icon?: string; offsetCenter?: (number | string)[]; keepAspect?: boolean; itemStyle?: ItemStyleOption; } interface ProgressOption { show?: boolean; overlap?: boolean; width?: number; roundCap?: boolean; clip?: boolean; itemStyle?: ItemStyleOption; } interface TitleOption extends LabelOption { /** * [x, y] offset */ offsetCenter?: (number | string)[]; formatter?: LabelFormatter | string; /** * If do value animtion. */ valueAnimation?: boolean; } interface DetailOption extends LabelOption { /** * [x, y] offset */ offsetCenter?: (number | string)[]; formatter?: LabelFormatter | string; /** * If do value animtion. */ valueAnimation?: boolean; } interface GaugeStatesMixin { emphasis?: DefaultStatesMixinEmphasis; } interface GaugeStateOption { itemStyle?: ItemStyleOption; } interface GaugeDataItemOption extends GaugeStateOption, StatesOptionMixin, GaugeStatesMixin> { name?: string; value?: OptionDataValueNumeric; pointer?: PointerOption; progress?: ProgressOption; title?: TitleOption; detail?: DetailOption; } interface GaugeSeriesOption$1 extends SeriesOption$1, GaugeStateOption, CircleLayoutOptionMixin, SeriesEncodeOptionMixin { type?: 'gauge'; radius?: number | string; startAngle?: number; endAngle?: number; clockwise?: boolean; min?: number; max?: number; splitNumber?: number; itemStyle?: ItemStyleOption; axisLine?: { show?: boolean; roundCap?: boolean; lineStyle?: Omit & { color?: GaugeColorStop[]; }; }; progress?: ProgressOption; splitLine?: { show?: boolean; /** * Can be percent */ length?: number; distance?: number; lineStyle?: LineStyleOption; }; axisTick?: { show?: boolean; splitNumber?: number; /** * Can be percent */ length?: number | string; distance?: number; lineStyle?: LineStyleOption; }; axisLabel?: Omit & { formatter?: LabelFormatter | string; rotate?: 'tangential' | 'radial' | number; }; pointer?: PointerOption; anchor?: AnchorOption; title?: TitleOption; detail?: DetailOption; data?: (OptionDataValueNumeric | GaugeDataItemOption)[]; } declare type FunnelLabelOption = Omit & { position?: LabelOption['position'] | 'outer' | 'inner' | 'center' | 'rightTop' | 'rightBottom' | 'leftTop' | 'leftBottom'; }; interface FunnelStatesMixin$1 { emphasis?: DefaultStatesMixinEmphasis; } interface FunnelCallbackDataParams extends CallbackDataParams { percent: number; } interface FunnelStateOption { itemStyle?: ItemStyleOption; label?: FunnelLabelOption; labelLine?: LabelLineOption; } interface FunnelDataItemOption extends FunnelStateOption, StatesOptionMixin, OptionDataItemObject { itemStyle?: ItemStyleOption & { width?: number | string; height?: number | string; }; } interface FunnelSeriesOption$1 extends SeriesOption$1, FunnelStatesMixin$1>, FunnelStateOption, BoxLayoutOptionMixin, SeriesEncodeOptionMixin { type?: 'funnel'; min?: number; max?: number; /** * Absolute number or percent string */ minSize?: number | string; maxSize?: number | string; sort?: 'ascending' | 'descending' | 'none'; orient?: LayoutOrient; gap?: number; funnelAlign?: HorizontalAlign | VerticalAlign; data?: (OptionDataValueNumeric | OptionDataValueNumeric[] | FunnelDataItemOption)[]; } declare type ParallelSeriesDataValue = OptionDataValue[]; interface ParallelStatesMixin { emphasis?: DefaultStatesMixinEmphasis; } interface ParallelStateOption { lineStyle?: LineStyleOption<(TCbParams extends never ? never : (params: TCbParams) => ZRColor) | ZRColor>; label?: SeriesLabelOption; } interface ParallelSeriesDataItemOption extends ParallelStateOption, StatesOptionMixin { value?: ParallelSeriesDataValue; } interface ParallelSeriesOption$1 extends SeriesOption$1, ParallelStatesMixin>, ParallelStateOption, SeriesEncodeOptionMixin { type?: 'parallel'; coordinateSystem?: string; parallelIndex?: number; parallelId?: string; inactiveOpacity?: number; activeOpacity?: number; smooth?: boolean | number; realtime?: boolean; tooltip?: SeriesTooltipOption; parallelAxisDefault?: ParallelAxisOption; data?: (ParallelSeriesDataValue | ParallelSeriesDataItemOption)[]; } declare type FocusNodeAdjacency = boolean | 'inEdges' | 'outEdges' | 'allEdges'; interface SankeyNodeStateOption { label?: SeriesLabelOption; itemStyle?: ItemStyleOption; } interface SankeyEdgeStateOption { lineStyle?: SankeyEdgeStyleOption; } interface SankeyBothStateOption extends SankeyNodeStateOption, SankeyEdgeStateOption { } interface SankeyEdgeStyleOption extends LineStyleOption { curveness?: number; } interface ExtraStateOption$3 { emphasis?: { focus?: DefaultEmphasisFocus | 'adjacency' | 'trajectory'; }; } interface SankeyNodeItemOption extends SankeyNodeStateOption, StatesOptionMixin, OptionDataItemObject { id?: string; localX?: number; localY?: number; depth?: number; draggable?: boolean; focusNodeAdjacency?: FocusNodeAdjacency; } interface SankeyEdgeItemOption extends SankeyEdgeStateOption, StatesOptionMixin, GraphEdgeItemObject { focusNodeAdjacency?: FocusNodeAdjacency; edgeLabel?: SeriesLabelOption; } interface SankeyLevelOption extends SankeyNodeStateOption, SankeyEdgeStateOption { depth: number; } interface SankeySeriesOption$1 extends SeriesOption$1, ExtraStateOption$3>, SankeyBothStateOption, BoxLayoutOptionMixin { type?: 'sankey'; /** * color will be linear mapped. */ color?: ColorString[]; coordinateSystem?: 'view'; orient?: LayoutOrient; /** * The width of the node */ nodeWidth?: number; /** * The vertical distance between two nodes */ nodeGap?: number; /** * Control if the node can move or not */ draggable?: boolean; /** * Will be allEdges if true. * @deprecated */ focusNodeAdjacency?: FocusNodeAdjacency; /** * The number of iterations to change the position of the node */ layoutIterations?: number; nodeAlign?: 'justify' | 'left' | 'right'; data?: SankeyNodeItemOption[]; nodes?: SankeyNodeItemOption[]; edges?: SankeyEdgeItemOption[]; links?: SankeyEdgeItemOption[]; levels?: SankeyLevelOption[]; edgeLabel?: SeriesLabelOption & { position?: 'inside'; }; } declare type BoxplotDataValue = OptionDataValueNumeric[]; interface BoxplotStateOption { itemStyle?: ItemStyleOption; label?: SeriesLabelOption; } interface BoxplotDataItemOption extends BoxplotStateOption, StatesOptionMixin { value: BoxplotDataValue; } interface ExtraStateOption$2 { emphasis?: { focus?: DefaultEmphasisFocus; scale?: boolean; }; } interface BoxplotSeriesOption$1 extends SeriesOption$1, ExtraStateOption$2>, BoxplotStateOption, SeriesOnCartesianOptionMixin, SeriesEncodeOptionMixin { type?: 'boxplot'; coordinateSystem?: 'cartesian2d'; layout?: LayoutOrient; /** * [min, max] can be percent of band width. */ boxWidth?: (string | number)[]; data?: (BoxplotDataValue | BoxplotDataItemOption)[]; } declare type CandlestickDataValue = OptionDataValue[]; interface CandlestickItemStyleOption extends ItemStyleOption { color0?: ZRColor; borderColor0?: ColorString; borderColorDoji?: ZRColor; } interface CandlestickStateOption { itemStyle?: CandlestickItemStyleOption; label?: SeriesLabelOption; } interface CandlestickDataItemOption extends CandlestickStateOption, StatesOptionMixin { value: CandlestickDataValue; } interface ExtraStateOption$1 { emphasis?: { focus?: DefaultEmphasisFocus; scale?: boolean; }; } interface CandlestickSeriesOption$1 extends SeriesOption$1, CandlestickStateOption, SeriesOnCartesianOptionMixin, SeriesLargeOptionMixin, SeriesEncodeOptionMixin { type?: 'candlestick'; coordinateSystem?: 'cartesian2d'; layout?: LayoutOrient; clip?: boolean; barMaxWidth?: number | string; barMinWidth?: number | string; barWidth?: number | string; data?: (CandlestickDataValue | CandlestickDataItemOption)[]; } interface RippleEffectOption { period?: number; /** * Scale of ripple */ scale?: number; brushType?: 'fill' | 'stroke'; color?: ZRColor; /** * ripple number */ number?: number; } interface SymbolDrawStateOption { itemStyle?: ItemStyleOption; label?: LabelOption; } interface SymbolDrawItemModelOption extends SymbolOptionMixin, StatesOptionMixin, SymbolDrawStateOption { cursor?: string; rippleEffect?: RippleEffectOption; } declare type ScatterDataValue = OptionDataValue | OptionDataValue[]; interface EffectScatterStatesOptionMixin { emphasis?: { focus?: DefaultEmphasisFocus; scale?: boolean | number; }; } interface EffectScatterStateOption { itemStyle?: ItemStyleOption; label?: SeriesLabelOption; } interface EffectScatterDataItemOption extends SymbolOptionMixin, EffectScatterStateOption, StatesOptionMixin { name?: string; value?: ScatterDataValue; rippleEffect?: SymbolDrawItemModelOption['rippleEffect']; } interface EffectScatterSeriesOption$1 extends SeriesOption$1, EffectScatterStatesOptionMixin>, EffectScatterStateOption, SeriesOnCartesianOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesOnGeoOptionMixin, SeriesOnSingleOptionMixin, SymbolOptionMixin, SeriesEncodeOptionMixin { type?: 'effectScatter'; coordinateSystem?: string; effectType?: 'ripple'; /** * When to show the effect */ showEffectOn?: 'render' | 'emphasis'; clip?: boolean; /** * Ripple effect config */ rippleEffect?: SymbolDrawItemModelOption['rippleEffect']; data?: (EffectScatterDataItemOption | ScatterDataValue)[]; } interface LineDrawStateOption { lineStyle?: LineStyleOption; label?: LineLabelOption; } interface LineDrawModelOption extends LineDrawStateOption, StatesOptionMixin { effect?: { show?: boolean; period?: number; delay?: number | ((idx: number) => number); /** * If move with constant speed px/sec * period will be ignored if this property is > 0, */ constantSpeed?: number; symbol?: string; symbolSize?: number | number[]; loop?: boolean; roundTrip?: boolean; /** * Length of trail, 0 - 1 */ trailLength?: number; /** * Default to be same with lineStyle.color */ color?: ColorString; }; } declare type LinesCoords = number[][]; declare type LinesValue = OptionDataValue | OptionDataValue[]; interface LinesLineStyleOption extends LineStyleOption { curveness?: number; } interface LinesStatesMixin { emphasis?: DefaultStatesMixinEmphasis; } interface LinesStateOption { lineStyle?: LinesLineStyleOption<(TCbParams extends never ? never : (params: TCbParams) => ZRColor) | ZRColor>; label?: SeriesLineLabelOption; } interface LinesDataItemOption extends LinesStateOption, StatesOptionMixin { name?: string; fromName?: string; toName?: string; symbol?: string[] | string; symbolSize?: number[] | number; coords?: LinesCoords; value?: LinesValue; effect?: LineDrawModelOption['effect']; } interface LinesSeriesOption$1 extends SeriesOption$1, LinesStateOption, SeriesOnCartesianOptionMixin, SeriesOnGeoOptionMixin, SeriesOnPolarOptionMixin, SeriesOnCalendarOptionMixin, SeriesLargeOptionMixin { type?: 'lines'; coordinateSystem?: string; symbol?: string[] | string; symbolSize?: number[] | number; effect?: LineDrawModelOption['effect']; /** * If lines are polyline * polyline not support curveness, label, animation */ polyline?: boolean; /** * If clip the overflow. * Available when coordinateSystem is cartesian or polar. */ clip?: boolean; data?: LinesDataItemOption[] | ArrayLike; dimensions?: DimensionDefinitionLoose | DimensionDefinitionLoose[]; } declare type HeatmapDataValue = OptionDataValue[]; interface HeatmapStateOption { itemStyle?: ItemStyleOption & { borderRadius?: number | number[]; }; label?: SeriesLabelOption; } interface FunnelStatesMixin { emphasis?: DefaultStatesMixinEmphasis; } interface HeatmapDataItemOption extends HeatmapStateOption, StatesOptionMixin { value: HeatmapDataValue; } interface HeatmapSeriesOption$1 extends SeriesOption$1, FunnelStatesMixin>, HeatmapStateOption, SeriesOnCartesianOptionMixin, SeriesOnGeoOptionMixin, SeriesOnCalendarOptionMixin, SeriesEncodeOptionMixin { type?: 'heatmap'; coordinateSystem?: 'cartesian2d' | 'geo' | 'calendar'; blurSize?: number; pointSize?: number; maxOpacity?: number; minOpacity?: number; data?: (HeatmapDataItemOption | HeatmapDataValue)[]; } interface PictorialBarStateOption { itemStyle?: ItemStyleOption; label?: SeriesLabelOption; } interface PictorialBarSeriesSymbolOption { /** * Customized bar shape */ symbol?: string; /** * Can be ['100%', '100%'], null means auto. * The percent will be relative to category width. If no repeat. * Will be relative to symbolBoundingData. */ symbolSize?: (number | string)[] | number | string; symbolRotate?: number; /** * Default to be auto */ symbolPosition?: 'start' | 'end' | 'center'; /** * Can be percent offset relative to the symbolSize */ symbolOffset?: (number | string)[] | number | string; /** * start margin and end margin. Can be a number or a percent string relative to symbolSize. * Auto margin by default. */ symbolMargin?: (number | string)[] | number | string; /** * true: means auto calculate repeat times and cut by data. * a number: specifies repeat times, and do not cut by data. * 'fixed': means auto calculate repeat times but do not cut by data. * * Otherwise means no repeat */ symbolRepeat?: boolean | number | 'fixed'; /** * From start to end or end to start. */ symbolRepeatDirection?: 'start' | 'end'; symbolClip?: boolean; /** * It will define the size of graphic elements. */ symbolBoundingData?: number | number[]; symbolPatternSize?: number; } interface ExtraStateOption { emphasis?: { focus?: DefaultEmphasisFocus; scale?: boolean; }; } interface PictorialBarDataItemOption extends PictorialBarSeriesSymbolOption, AnimationOptionMixin, PictorialBarStateOption, StatesOptionMixin, OptionDataItemObject { z?: number; cursor?: string; } interface PictorialBarSeriesOption$1 extends BaseBarSeriesOption, PictorialBarStateOption, PictorialBarSeriesSymbolOption, SeriesStackOptionMixin, SeriesEncodeOptionMixin { type?: 'pictorialBar'; coordinateSystem?: 'cartesian2d'; data?: (PictorialBarDataItemOption | OptionDataValue | OptionDataValue[])[]; clip?: boolean; } interface ThemeRiverSeriesLabelOption extends SeriesLabelOption { margin?: number; } declare type ThemerRiverDataItem = [OptionDataValueDate, OptionDataValueNumeric, string]; interface ThemeRiverStatesMixin { emphasis?: DefaultStatesMixinEmphasis; } interface ThemeRiverStateOption { label?: ThemeRiverSeriesLabelOption; itemStyle?: ItemStyleOption; } interface ThemeRiverSeriesOption$1 extends SeriesOption$1, ThemeRiverStatesMixin>, ThemeRiverStateOption, SeriesOnSingleOptionMixin, BoxLayoutOptionMixin { type?: 'themeRiver'; color?: ZRColor[]; coordinateSystem?: 'singleAxis'; /** * gap in axis's orthogonal orientation */ boundaryGap?: (string | number)[]; /** * [date, value, name] */ data?: ThemerRiverDataItem[]; } interface SunburstItemStyleOption extends ItemStyleOption { borderRadius?: (number | string)[] | number | string; } interface SunburstLabelOption extends Omit, 'rotate' | 'position'> { rotate?: 'radial' | 'tangential' | number; minAngle?: number; silent?: boolean; position?: SeriesLabelOption['position'] | 'outside'; } interface SunburstDataParams extends CallbackDataParams { treePathInfo: { name: string; dataIndex: number; value: SunburstSeriesNodeItemOption['value']; }[]; } interface SunburstStatesMixin { emphasis?: { focus?: DefaultEmphasisFocus | 'descendant' | 'ancestor'; }; } interface SunburstStateOption { itemStyle?: SunburstItemStyleOption; label?: SunburstLabelOption; } interface SunburstSeriesNodeItemOption extends SunburstStateOption, StatesOptionMixin, SunburstStatesMixin>, OptionDataItemObject { nodeClick?: 'rootToNode' | 'link' | false; link?: string; target?: string; children?: SunburstSeriesNodeItemOption[]; collapsed?: boolean; cursor?: string; } interface SunburstSeriesLevelOption extends SunburstStateOption, StatesOptionMixin, SunburstStatesMixin> { radius?: (number | string)[]; /** * @deprecated use radius instead */ r?: number | string; /** * @deprecated use radius instead */ r0?: number | string; highlight?: { itemStyle?: SunburstItemStyleOption; label?: SunburstLabelOption; }; } interface SortParam { dataIndex: number; depth: number; height: number; getValue(): number; } interface SunburstSeriesOption$1 extends SeriesOption$1, SunburstStatesMixin>, SunburstStateOption, SunburstColorByMixin, CircleLayoutOptionMixin { type?: 'sunburst'; clockwise?: boolean; startAngle?: number; minAngle?: number; /** * If still show when all data zero. */ stillShowZeroSum?: boolean; /** * Policy of highlighting pieces when hover on one * Valid values: 'none' (for not downplay others), 'descendant', * 'ancestor', 'self' */ nodeClick?: 'rootToNode' | 'link' | false; renderLabelForZeroData?: boolean; data?: SunburstSeriesNodeItemOption[]; levels?: SunburstSeriesLevelOption[]; animationType?: 'expansion' | 'scale'; sort?: 'desc' | 'asc' | ((a: SortParam, b: SortParam) => number); } interface GraphicComponentBaseElementOption extends Partial>, /** * left/right/top/bottom: (like 12, '22%', 'center', default undefined) * If left/right is set, shape.x/shape.cx/position will not be used. * If top/bottom is set, shape.y/shape.cy/position will not be used. * This mechanism is useful when you want to position a group/element * against the right side or the center of this container. */ Partial> { /** * element type, mandatory. * Only can be omit if call setOption not at the first time and perform merge. */ type?: string; id?: OptionId; name?: string; parentId?: OptionId; parentOption?: GraphicComponentElementOption; children?: GraphicComponentElementOption[]; hv?: [boolean, boolean]; /** * bounding: (enum: 'all' (default) | 'raw') * Specify how to calculate boundingRect when locating. * 'all': Get uioned and transformed boundingRect * from both itself and its descendants. * This mode simplies confining a group of elements in the bounding * of their ancester container (e.g., using 'right: 0'). * 'raw': Only use the boundingRect of itself and before transformed. * This mode is similar to css behavior, which is useful when you * want an element to be able to overflow its container. (Consider * a rotated circle needs to be located in a corner.) */ bounding?: 'raw' | 'all'; /** * info: custom info. enables user to mount some info on elements and use them * in event handlers. Update them only when user specified, otherwise, remain. */ info?: GraphicExtraElementInfo; clipPath?: Omit | false; textContent?: Omit; textConfig?: ElementTextConfig; $action?: 'merge' | 'replace' | 'remove'; tooltip?: CommonTooltipOption; enterAnimation?: AnimationOption; updateAnimation?: AnimationOption; leaveAnimation?: AnimationOption; } interface GraphicComponentDisplayableOption extends GraphicComponentBaseElementOption, Partial> { style?: ZRStyleProps; z2?: number; } interface GraphicComponentGroupOption extends GraphicComponentBaseElementOption, TransitionOptionMixin { type?: 'group'; /** * width/height: (can only be pixel value, default 0) * Is only used to specify container (group) size, if needed. And * cannot be a percentage value (like '33%'). See the reason in the * layout algorithm below. */ width?: number; height?: number; children: GraphicComponentElementOption[]; keyframeAnimation?: ElementKeyframeAnimationOption | ElementKeyframeAnimationOption[]; } interface GraphicComponentZRPathOption extends GraphicComponentDisplayableOption, TransitionOptionMixin { shape?: PathProps['shape'] & TransitionOptionMixin; style?: PathStyleProps & TransitionOptionMixin; keyframeAnimation?: ElementKeyframeAnimationOption | ElementKeyframeAnimationOption[]; } interface GraphicComponentImageOption extends GraphicComponentDisplayableOption, TransitionOptionMixin { type?: 'image'; style?: ImageStyleProps & TransitionOptionMixin; keyframeAnimation?: ElementKeyframeAnimationOption | ElementKeyframeAnimationOption[]; } interface GraphicComponentTextOption extends Omit, TransitionOptionMixin { type?: 'text'; style?: TextStyleProps & TransitionOptionMixin; keyframeAnimation?: ElementKeyframeAnimationOption | ElementKeyframeAnimationOption[]; } declare type GraphicComponentElementOption = GraphicComponentGroupOption | GraphicComponentZRPathOption | GraphicComponentImageOption | GraphicComponentTextOption; declare type GraphicExtraElementInfo = Dictionary; declare type GraphicComponentLooseOption = (GraphicComponentOption | GraphicComponentElementOption) & { mainType?: 'graphic'; }; interface GraphicComponentOption extends ComponentOption, AnimationOptionMixin { elements?: GraphicComponentElementOption[]; } declare const ICON_TYPES$2: readonly ["rect", "polygon", "lineX", "lineY", "keep", "clear"]; declare type IconType$2 = typeof ICON_TYPES$2[number]; interface ToolboxBrushFeatureOption extends ToolboxFeatureOption { type?: IconType$2[]; icon?: { [key in IconType$2]?: string; }; title?: { [key in IconType$2]?: string; }; } interface ToolboxDataViewFeatureOption extends ToolboxFeatureOption { readOnly?: boolean; optionToContent?: (option: ECUnitOption) => string | HTMLElement; contentToOption?: (viewMain: HTMLDivElement, oldOption: ECUnitOption) => ECUnitOption; icon?: string; title?: string; lang?: string[]; backgroundColor?: ColorString; textColor?: ColorString; textareaColor?: ColorString; textareaBorderColor?: ColorString; buttonColor?: ColorString; buttonTextColor?: ColorString; } declare const ICON_TYPES$1: readonly ["zoom", "back"]; declare type IconType$1 = typeof ICON_TYPES$1[number]; interface ToolboxDataZoomFeatureOption extends ToolboxFeatureOption { type?: IconType$1[]; icon?: { [key in IconType$1]?: string; }; title?: { [key in IconType$1]?: string; }; filterMode?: 'filter' | 'weakFilter' | 'empty' | 'none'; xAxisIndex?: ModelFinderIndexQuery; yAxisIndex?: ModelFinderIndexQuery; xAxisId?: ModelFinderIdQuery; yAxisId?: ModelFinderIdQuery; brushStyle?: ItemStyleOption; } declare const ICON_TYPES: readonly ["line", "bar", "stack"]; declare const TITLE_TYPES: readonly ["line", "bar", "stack", "tiled"]; declare type IconType = typeof ICON_TYPES[number]; declare type TitleType = typeof TITLE_TYPES[number]; interface ToolboxMagicTypeFeatureOption extends ToolboxFeatureOption { type?: IconType[]; /** * Icon group */ icon?: { [key in IconType]?: string; }; title?: { [key in TitleType]?: string; }; option?: { [key in IconType]?: SeriesOption$1; }; /** * Map of seriesType: seriesIndex */ seriesIndex?: { line?: number; bar?: number; }; } interface ToolboxRestoreFeatureOption extends ToolboxFeatureOption { icon?: string; title?: string; } interface ToolboxSaveAsImageFeatureOption extends ToolboxFeatureOption { icon?: string; title?: string; type?: 'png' | 'jpeg'; backgroundColor?: ZRColor; connectedBackgroundColor?: ZRColor; name?: string; excludeComponents?: string[]; pixelRatio?: number; lang?: string[]; } interface ToolboxComponentOption extends ToolboxOption { feature?: { brush?: ToolboxBrushFeatureOption; dataView?: ToolboxDataViewFeatureOption; dataZoom?: ToolboxDataZoomFeatureOption; magicType?: ToolboxMagicTypeFeatureOption; restore?: ToolboxRestoreFeatureOption; saveAsImage?: ToolboxSaveAsImageFeatureOption; [key: string]: ToolboxFeatureOption | { [key: string]: any; } | undefined; }; } declare type DataZoomComponentOption = SliderDataZoomOption | InsideDataZoomOption; declare type VisualMapComponentOption = ContinousVisualMapOption | PiecewiseVisualMapOption; declare type LegendComponentOption = LegendOption | ScrollableLegendOption; declare type SeriesInjectedOption = { markArea?: MarkAreaOption; markLine?: MarkLineOption; markPoint?: MarkPointOption; tooltip?: SeriesTooltipOption; }; declare type LineSeriesOption = LineSeriesOption$1 & SeriesInjectedOption; declare type BarSeriesOption = BarSeriesOption$1 & SeriesInjectedOption; declare type ScatterSeriesOption = ScatterSeriesOption$1 & SeriesInjectedOption; declare type PieSeriesOption = PieSeriesOption$1 & SeriesInjectedOption; declare type RadarSeriesOption = RadarSeriesOption$1 & SeriesInjectedOption; declare type MapSeriesOption = MapSeriesOption$1 & SeriesInjectedOption; declare type TreeSeriesOption = TreeSeriesOption$1 & SeriesInjectedOption; declare type TreemapSeriesOption = TreemapSeriesOption$1 & SeriesInjectedOption; declare type GraphSeriesOption = GraphSeriesOption$1 & SeriesInjectedOption; declare type GaugeSeriesOption = GaugeSeriesOption$1 & SeriesInjectedOption; declare type FunnelSeriesOption = FunnelSeriesOption$1 & SeriesInjectedOption; declare type ParallelSeriesOption = ParallelSeriesOption$1 & SeriesInjectedOption; declare type SankeySeriesOption = SankeySeriesOption$1 & SeriesInjectedOption; declare type BoxplotSeriesOption = BoxplotSeriesOption$1 & SeriesInjectedOption; declare type CandlestickSeriesOption = CandlestickSeriesOption$1 & SeriesInjectedOption; declare type EffectScatterSeriesOption = EffectScatterSeriesOption$1 & SeriesInjectedOption; declare type LinesSeriesOption = LinesSeriesOption$1 & SeriesInjectedOption; declare type HeatmapSeriesOption = HeatmapSeriesOption$1 & SeriesInjectedOption; declare type PictorialBarSeriesOption = PictorialBarSeriesOption$1 & SeriesInjectedOption; declare type ThemeRiverSeriesOption = ThemeRiverSeriesOption$1 & SeriesInjectedOption; declare type SunburstSeriesOption = SunburstSeriesOption$1 & SeriesInjectedOption; declare type CustomSeriesOption = CustomSeriesOption$1 & SeriesInjectedOption; /** * A map from series 'type' to series option * It's used for declaration merging in echarts extensions. * For example: * ```ts * import echarts from 'echarts'; * declare module 'echarts/types/dist/echarts' { * interface RegisteredSeriesOption { * wordCloud: WordCloudSeriesOption * } * } * ``` */ interface RegisteredSeriesOption { line: LineSeriesOption; bar: BarSeriesOption; scatter: ScatterSeriesOption; pie: PieSeriesOption; radar: RadarSeriesOption; map: MapSeriesOption; tree: TreeSeriesOption; treemap: TreemapSeriesOption; graph: GraphSeriesOption; gauge: GaugeSeriesOption; funnel: FunnelSeriesOption; parallel: ParallelSeriesOption; sankey: SankeySeriesOption; boxplot: BoxplotSeriesOption; candlestick: CandlestickSeriesOption; effectScatter: EffectScatterSeriesOption; lines: LinesSeriesOption; heatmap: HeatmapSeriesOption; pictorialBar: PictorialBarSeriesOption; themeRiver: ThemeRiverSeriesOption; sunburst: SunburstSeriesOption; custom: CustomSeriesOption; } declare type Values = T[keyof T]; declare type SeriesOption = Values; interface EChartsOption extends ECBasicOption { dataset?: DatasetOption | DatasetOption[]; aria?: AriaOption; title?: TitleOption$1 | TitleOption$1[]; grid?: GridOption | GridOption[]; radar?: RadarOption | RadarOption[]; polar?: PolarOption | PolarOption[]; geo?: GeoOption | GeoOption[]; angleAxis?: AngleAxisOption | AngleAxisOption[]; radiusAxis?: RadiusAxisOption | RadiusAxisOption[]; xAxis?: XAXisOption | XAXisOption[]; yAxis?: YAXisOption | YAXisOption[]; singleAxis?: SingleAxisOption | SingleAxisOption[]; parallel?: ParallelCoordinateSystemOption | ParallelCoordinateSystemOption[]; parallelAxis?: ParallelAxisOption | ParallelAxisOption[]; calendar?: CalendarOption | CalendarOption[]; toolbox?: ToolboxComponentOption | ToolboxComponentOption[]; tooltip?: TooltipOption | TooltipOption[]; axisPointer?: AxisPointerOption | AxisPointerOption[]; brush?: BrushOption | BrushOption[]; timeline?: TimelineOption | SliderTimelineOption; legend?: LegendComponentOption | (LegendComponentOption)[]; dataZoom?: DataZoomComponentOption | (DataZoomComponentOption)[]; visualMap?: VisualMapComponentOption | (VisualMapComponentOption)[]; graphic?: GraphicComponentLooseOption | GraphicComponentLooseOption[]; series?: SeriesOption | SeriesOption[]; options?: EChartsOption[]; baseOption?: EChartsOption; } export { type AngleAxisOption, type AxisPointerOption, type BarSeriesOption, type BoxplotSeriesOption, type CalendarOption, type CandlestickSeriesOption, type ContinousVisualMapOption, type CustomSeriesOption, type DataZoomComponentOption, type EChartsOption, type EffectScatterSeriesOption, type FunnelSeriesOption, type GaugeSeriesOption, type GeoOption, type GraphSeriesOption, type GraphicComponentLooseOption, type GridOption, type HeatmapSeriesOption, type InsideDataZoomOption, type LegendComponentOption, type LineSeriesOption, type LinesSeriesOption, type MapSeriesOption, type MarkAreaOption, type MarkLineOption, type MarkPointOption, type ParallelAxisOption, type ParallelCoordinateSystemOption, type ParallelSeriesOption, type PictorialBarSeriesOption, type PieSeriesOption, type PiecewiseVisualMapOption, type PolarOption, type RadarOption, type RadarSeriesOption, type RadiusAxisOption, type RegisteredSeriesOption, type SankeySeriesOption, type ScatterSeriesOption, type ScrollableLegendOption, type SeriesOption, type SingleAxisOption, type SliderDataZoomOption, type SunburstSeriesOption, type ThemeRiverSeriesOption, type TimelineOption, type TitleOption$1 as TitleOption, type ToolboxComponentOption, type TooltipOption, type TopLevelFormatterParams, type TreeSeriesOption, type TreemapSeriesOption, type VisualMapComponentOption, type XAXisOption, type YAXisOption, install };