From 3353277ce401427f2d84ea3b01f3cd8e6f5a2059 Mon Sep 17 00:00:00 2001
From: Konch Roman <300konya@gmail.com>
Date: Tue, 6 Nov 2018 17:51:07 +0300
Subject: [PATCH] Fix data fields for echarts series option
Problem:
official documentation provides inconsistent info about types
so the fix bases on examples and source code
---
types/echarts/index.d.ts | 4 +-
types/echarts/options/series/bar.d.ts | 7 +-
types/echarts/options/series/boxplot.d.ts | 1422 +--
types/echarts/options/series/candlestick.d.ts | 1562 ++--
types/echarts/options/series/custom.d.ts | 1225 +--
.../options/series/effect-scatter.d.ts | 4575 +++++-----
types/echarts/options/series/funnel.d.ts | 5044 +++++-----
types/echarts/options/series/graph.d.ts | 4674 +++++-----
types/echarts/options/series/heatmap.d.ts | 3527 +++----
types/echarts/options/series/line.d.ts | 4541 ++++-----
types/echarts/options/series/lines.d.ts | 3380 +++----
types/echarts/options/series/map.d.ts | 4506 ++++-----
types/echarts/options/series/parallel.d.ts | 469 +-
.../echarts/options/series/pictorial-bar.d.ts | 5783 ++++++------
types/echarts/options/series/pie.d.ts | 8 +-
types/echarts/options/series/radar.d.ts | 1222 +--
types/echarts/options/series/sankey.d.ts | 1587 ++--
types/echarts/options/series/scatter.d.ts | 4605 +++++-----
types/echarts/options/series/sunburst.d.ts | 8090 +++++++++--------
types/echarts/options/series/theme-river.d.ts | 109 +-
types/echarts/options/series/tree.d.ts | 921 +-
types/echarts/options/series/treemap.d.ts | 1007 +-
22 files changed, 29193 insertions(+), 29075 deletions(-)
diff --git a/types/echarts/index.d.ts b/types/echarts/index.d.ts
index 804805379d..285f070c96 100644
--- a/types/echarts/index.d.ts
+++ b/types/echarts/index.d.ts
@@ -1307,7 +1307,7 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#yAxis.data
*/
- data?: Axis.Data[];
+ data?: (string | Axis.DataObject)[];
/**
* axisPointer settings on the axis.
@@ -1488,7 +1488,7 @@ declare namespace echarts {
/**
* @todo describe
*/
- interface Data {
+ interface DataObject {
value?: string;
textStyle?: TextStyle;
}
diff --git a/types/echarts/options/series/bar.d.ts b/types/echarts/options/series/bar.d.ts
index 07b47cac2d..5f7d73882e 100644
--- a/types/echarts/options/series/bar.d.ts
+++ b/types/echarts/options/series/bar.d.ts
@@ -2315,7 +2315,10 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-bar.data
*/
- data?: SeriesBar.Data | SeriesBar.Data[];
+ data?: (
+ (void | string | number | SeriesBar.DataObject)[]
+ | (void | string | number | SeriesBar.DataObject)[][]
+ );
/**
* Mark point in a chart.
@@ -14418,7 +14421,7 @@ declare namespace echarts {
}
namespace SeriesBar {
- interface Data {
+ interface DataObject {
/**
* The name of data item.
diff --git a/types/echarts/options/series/boxplot.d.ts b/types/echarts/options/series/boxplot.d.ts
index 38952a0e02..7eb6dee681 100644
--- a/types/echarts/options/series/boxplot.d.ts
+++ b/types/echarts/options/series/boxplot.d.ts
@@ -491,715 +491,7 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data
*/
- data?: {
-
- /**
- * Name of data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.name
- */
- name?: string;
-
- /**
- * Value of data item.
- *
- * ```
- * [min, Q1, median (or Q2), Q3, max]
- *
- * ```
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.value
- */
- value?: any[];
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle
- */
- itemStyle?: {
-
- /**
- * boxplot color. Color is taken from
- * [option.color Palette](https://ecomfe.github.io/echarts-doc/public/en/option.html#color)
- * by default.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for example
- * `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.itemStyle)
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.color
- */
- color?: string;
-
- /**
- * boxplot border color, whose format is similar to that
- * of `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * boxplot border width.
- * No border when it is set to be 0.
- *
- *
- * @default
- * 1
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
- * `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will not
- * be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis
- */
- emphasis?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle
- */
- itemStyle?: {
-
- /**
- * boxplot color. Color is taken from
- * [option.color Palette](https://ecomfe.github.io/echarts-doc/public/en/option.html#color)
- * by default.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.emphasis.itemStyle)
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.color
- */
- color?: string;
-
- /**
- * boxplot border color, whose format is similar to
- * that of `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * boxplot border width.
- * No border when it is set to be 0.
- *
- *
- * @default
- * 2
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`,
- * or `'dotted'`. `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.emphasis.itemStyle)
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @default
- * "rgba(0,0,0,0.4)"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @default
- * 2
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @default
- * 2
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.opacity
- */
- opacity?: number;
- };
- };
-
- /**
- * tooltip settings in this series data.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip
- */
- tooltip?: {
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The position of the tooltip's floating layer, which would
- * follow the position of mouse by default.
- *
- * Options:
- *
- * + `Array`
- *
- * Display the position of tooltip's floating layer through
- * array, which supports absolute position and relative
- * percentage.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
- *
- * + `Function`
- *
- * Callback function in the following form:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
- *
- * **Parameters:**
- * point: Mouse position.
- * param: The same as formatter.
- * dom: The DOM object of tooltip.
- * rect: It is valid only when mouse is on graphic elements,
- * which stands for a bounding box with `x`, `y`, `width`,
- * and `height`.
- * size: The size of dom echarts container.
- * For example: `{contentSize: [width, height], viewSize:
- * [width, height]}`.
- *
- * **Return:**
- * Return value is an array standing for tooltip position,
- * which can be absolute pixels, or relative percentage.
- * Or can be an object, like `{left: 10, top: 30}`, or `{right:
- * '20%', bottom: 40}`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
- *
- * Or:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
- *
- * + `'inside'`
- *
- * Center position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'top'`
- *
- * Top position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'left'`
- *
- * Left position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'right'`
- *
- * Right position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'bottom'`
- *
- * Bottom position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.position
- */
- position?: any[] | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The content formatter of tooltip's floating layer which
- * supports string template and callback function.
- *
- * **1\. String template**
- *
- * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
- * and `{e}`, which stands for series name, data name and
- * data value and ect. When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is set to be `'axis'`, there may be data from multiple
- * series.
- * In this time, series index can be refered as `{a0}`,
- * `{a1}`, or `{a2}`.
- *
- * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
- * different series types:
- *
- * + Line (area) charts, bar (column) charts, K charts:
- * `{a}` for series name, `{b}` for category name, `{c}`
- * for data value, `{d}` for none;
- *
- * + Scatter (bubble) charts: `{a}` for series name, `{b}`
- * for data name, `{c}` for data value, `{d}` for none;
- *
- * + Map: `{a}` for series name, `{b}` for area name, `{c}`
- * for merging data, `{d}` for none;
- *
- * + Pie charts, gauge charts, funnel charts: `{a}` for
- * series name, `{b}` for data item name, `{c}` for data
- * value, `{d}` for percentage.
- *
- * **Example:**
- *
- * ```
- * formatter: '{b0}: {c0}
{b1}: {c1}'
- *
- * ```
- *
- * **2\. Callback function**
- *
- * The format of callback function:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
- *
- * The first parameter `params` is the data that the formatter
- * needs. Its format is shown as follows:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
- *
- * When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'axis'`, or when tooltip is triggered by
- * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
- * , `params` is the data array of multiple series.
- * The content of each item of the array is the same as
- * above. Besides,
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
- *
- * **Note:** Using array to present all the parameters in
- * ECharts 2.x is not supported anymore.
- *
- * The second parameter `ticket` is the asynchronous callback
- * flag which should be used along with the third parameter
- * `callback` when it is used.
- *
- * The third parameter `callback` is asynchronous callback.
- * When the content of tooltip is acquired asynchronously,
- * `ticket` and `htm` as introduced above can be used to
- * update tooltip with callback.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.formatter
- */
- formatter?: Function | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The background color of tooltip's floating layer.
- *
- *
- * @default
- * "rgba(50,50,50,0.7)"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.backgroundColor
- */
- backgroundColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border color of tooltip's floating layer.
- *
- *
- * @default
- * '#333'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.borderColor
- */
- borderColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border width of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.borderWidth
- */
- borderWidth?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The floating layer of tooltip space around content.
- * The unit is px.
- * Default values for each position are 5.
- * And they can be set to different values with left, right,
- * top, and bottom.
- *
- * Examples:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.padding
- */
- padding?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The text syle of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle
- */
- textStyle?: {
-
- /**
- * text color.
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 14
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip.textStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * Extra CSS style for floating layer.
- * The following is an example for adding shadow.
- *
- * ```
- * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
- *
- * ```
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.extraCssText
- */
- extraCssText?: string;
- };
- };
+ data?: (number | SeriesBoxplot.DataObject)[][];
/**
* Mark point in a chart.
@@ -13248,5 +12540,717 @@ declare namespace echarts {
extraCssText?: string;
};
}
+
+ namespace SeriesBoxplot {
+ interface DataObject {
+
+ /**
+ * Name of data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.name
+ */
+ name?: string;
+
+ /**
+ * Value of data item.
+ *
+ * ```
+ * [min, Q1, median (or Q2), Q3, max]
+ *
+ * ```
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.value
+ */
+ value?: any[];
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * boxplot color. Color is taken from
+ * [option.color Palette](https://ecomfe.github.io/echarts-doc/public/en/option.html#color)
+ * by default.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for example
+ * `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.itemStyle)
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * boxplot border color, whose format is similar to that
+ * of `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * boxplot border width.
+ * No border when it is set to be 0.
+ *
+ *
+ * @default
+ * 1
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
+ * `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will not
+ * be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * boxplot color. Color is taken from
+ * [option.color Palette](https://ecomfe.github.io/echarts-doc/public/en/option.html#color)
+ * by default.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.emphasis.itemStyle)
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * boxplot border color, whose format is similar to
+ * that of `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * boxplot border width.
+ * No border when it is set to be 0.
+ *
+ *
+ * @default
+ * 2
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`,
+ * or `'dotted'`. `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.emphasis.itemStyle)
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @default
+ * "rgba(0,0,0,0.4)"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @default
+ * 2
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @default
+ * 2
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.emphasis.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+ };
+
+ /**
+ * tooltip settings in this series data.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip
+ */
+ tooltip?: {
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The position of the tooltip's floating layer, which would
+ * follow the position of mouse by default.
+ *
+ * Options:
+ *
+ * + `Array`
+ *
+ * Display the position of tooltip's floating layer through
+ * array, which supports absolute position and relative
+ * percentage.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
+ *
+ * + `Function`
+ *
+ * Callback function in the following form:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
+ *
+ * **Parameters:**
+ * point: Mouse position.
+ * param: The same as formatter.
+ * dom: The DOM object of tooltip.
+ * rect: It is valid only when mouse is on graphic elements,
+ * which stands for a bounding box with `x`, `y`, `width`,
+ * and `height`.
+ * size: The size of dom echarts container.
+ * For example: `{contentSize: [width, height], viewSize:
+ * [width, height]}`.
+ *
+ * **Return:**
+ * Return value is an array standing for tooltip position,
+ * which can be absolute pixels, or relative percentage.
+ * Or can be an object, like `{left: 10, top: 30}`, or `{right:
+ * '20%', bottom: 40}`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
+ *
+ * Or:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
+ *
+ * + `'inside'`
+ *
+ * Center position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'top'`
+ *
+ * Top position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'left'`
+ *
+ * Left position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'right'`
+ *
+ * Right position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'bottom'`
+ *
+ * Bottom position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.position
+ */
+ position?: any[] | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The content formatter of tooltip's floating layer which
+ * supports string template and callback function.
+ *
+ * **1\. String template**
+ *
+ * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
+ * and `{e}`, which stands for series name, data name and
+ * data value and ect. When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is set to be `'axis'`, there may be data from multiple
+ * series.
+ * In this time, series index can be refered as `{a0}`,
+ * `{a1}`, or `{a2}`.
+ *
+ * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
+ * different series types:
+ *
+ * + Line (area) charts, bar (column) charts, K charts:
+ * `{a}` for series name, `{b}` for category name, `{c}`
+ * for data value, `{d}` for none;
+ *
+ * + Scatter (bubble) charts: `{a}` for series name, `{b}`
+ * for data name, `{c}` for data value, `{d}` for none;
+ *
+ * + Map: `{a}` for series name, `{b}` for area name, `{c}`
+ * for merging data, `{d}` for none;
+ *
+ * + Pie charts, gauge charts, funnel charts: `{a}` for
+ * series name, `{b}` for data item name, `{c}` for data
+ * value, `{d}` for percentage.
+ *
+ * **Example:**
+ *
+ * ```
+ * formatter: '{b0}: {c0}
{b1}: {c1}'
+ *
+ * ```
+ *
+ * **2\. Callback function**
+ *
+ * The format of callback function:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
+ *
+ * The first parameter `params` is the data that the formatter
+ * needs. Its format is shown as follows:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
+ *
+ * When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'axis'`, or when tooltip is triggered by
+ * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
+ * , `params` is the data array of multiple series.
+ * The content of each item of the array is the same as
+ * above. Besides,
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
+ *
+ * **Note:** Using array to present all the parameters in
+ * ECharts 2.x is not supported anymore.
+ *
+ * The second parameter `ticket` is the asynchronous callback
+ * flag which should be used along with the third parameter
+ * `callback` when it is used.
+ *
+ * The third parameter `callback` is asynchronous callback.
+ * When the content of tooltip is acquired asynchronously,
+ * `ticket` and `htm` as introduced above can be used to
+ * update tooltip with callback.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The background color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * "rgba(50,50,50,0.7)"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.backgroundColor
+ */
+ backgroundColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * '#333'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border width of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The floating layer of tooltip space around content.
+ * The unit is px.
+ * Default values for each position are 5.
+ * And they can be set to different values with left, right,
+ * top, and bottom.
+ *
+ * Examples:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip)
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.padding
+ */
+ padding?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The text syle of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle
+ */
+ textStyle?: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 14
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.boxplot.data.tooltip.textStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.textStyle.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * Extra CSS style for floating layer.
+ * The following is an example for adding shadow.
+ *
+ * ```
+ * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
+ *
+ * ```
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-boxplot.data.tooltip.extraCssText
+ */
+ extraCssText?: string;
+ };
+ }
+ }
}
}
diff --git a/types/echarts/options/series/candlestick.d.ts b/types/echarts/options/series/candlestick.d.ts
index f67e226361..835e418662 100644
--- a/types/echarts/options/series/candlestick.d.ts
+++ b/types/echarts/options/series/candlestick.d.ts
@@ -656,785 +656,7 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data
*/
- data?: {
-
- /**
- * Name of data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.name
- */
- name?: string;
-
- /**
- * Value of data item.
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.value
- */
- value?: any[];
-
- /**
- * Style of a candle box.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle
- */
- itemStyle?: {
-
- /**
- * Fill color of bullish candle stick.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for example
- * `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.itemStyle)
- *
- *
- * @default
- * "#c23531"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.color
- */
- color?: string;
-
- /**
- * Fill color of bearish candle stick.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for example
- * `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.itemStyle)
- *
- *
- * @default
- * #314656
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.color0
- */
- color0?: string;
-
- /**
- * Border color of bullish candle stick.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for example
- * `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.itemStyle)
- *
- *
- * @default
- * "#c23531"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * Border color of bearish candle stick.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for example
- * `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.itemStyle)
- *
- *
- * @default
- * #314656
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.borderColor0
- */
- borderColor0?: string;
-
- /**
- * Border width of candlestick.
- * There is no border when it is `0`.
- *
- *
- * @default
- * 1
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will not
- * be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * Emphasis style of a candle box.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis
- */
- emphasis?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle
- */
- itemStyle?: {
-
- /**
- * Fill color of bullish candle stick.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.emphasis.itemStyle)
- *
- *
- * @default
- * "#c23531"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.color
- */
- color?: string;
-
- /**
- * Fill color of bearish candle stick.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.emphasis.itemStyle)
- *
- *
- * @default
- * #314656
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.color0
- */
- color0?: string;
-
- /**
- * Border color of bullish candle stick.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.emphasis.itemStyle)
- *
- *
- * @default
- * "#c23531"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * Border color of bearish candle stick.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.emphasis.itemStyle)
- *
- *
- * @default
- * #314656
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.borderColor0
- */
- borderColor0?: string;
-
- /**
- * Border width of candlestick.
- * There is no border when it is `0`.
- *
- *
- * @default
- * 2
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.opacity
- */
- opacity?: number;
- };
- };
-
- /**
- * tooltip settings in this series data.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip
- */
- tooltip?: {
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The position of the tooltip's floating layer, which would
- * follow the position of mouse by default.
- *
- * Options:
- *
- * + `Array`
- *
- * Display the position of tooltip's floating layer through
- * array, which supports absolute position and relative
- * percentage.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
- *
- * + `Function`
- *
- * Callback function in the following form:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
- *
- * **Parameters:**
- * point: Mouse position.
- * param: The same as formatter.
- * dom: The DOM object of tooltip.
- * rect: It is valid only when mouse is on graphic elements,
- * which stands for a bounding box with `x`, `y`, `width`,
- * and `height`.
- * size: The size of dom echarts container.
- * For example: `{contentSize: [width, height], viewSize:
- * [width, height]}`.
- *
- * **Return:**
- * Return value is an array standing for tooltip position,
- * which can be absolute pixels, or relative percentage.
- * Or can be an object, like `{left: 10, top: 30}`, or `{right:
- * '20%', bottom: 40}`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
- *
- * Or:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
- *
- * + `'inside'`
- *
- * Center position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'top'`
- *
- * Top position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'left'`
- *
- * Left position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'right'`
- *
- * Right position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'bottom'`
- *
- * Bottom position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.position
- */
- position?: any[] | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The content formatter of tooltip's floating layer which
- * supports string template and callback function.
- *
- * **1\. String template**
- *
- * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
- * and `{e}`, which stands for series name, data name and
- * data value and ect. When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is set to be `'axis'`, there may be data from multiple
- * series.
- * In this time, series index can be refered as `{a0}`,
- * `{a1}`, or `{a2}`.
- *
- * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
- * different series types:
- *
- * + Line (area) charts, bar (column) charts, K charts:
- * `{a}` for series name, `{b}` for category name, `{c}`
- * for data value, `{d}` for none;
- *
- * + Scatter (bubble) charts: `{a}` for series name, `{b}`
- * for data name, `{c}` for data value, `{d}` for none;
- *
- * + Map: `{a}` for series name, `{b}` for area name, `{c}`
- * for merging data, `{d}` for none;
- *
- * + Pie charts, gauge charts, funnel charts: `{a}` for
- * series name, `{b}` for data item name, `{c}` for data
- * value, `{d}` for percentage.
- *
- * **Example:**
- *
- * ```
- * formatter: '{b0}: {c0}
{b1}: {c1}'
- *
- * ```
- *
- * **2\. Callback function**
- *
- * The format of callback function:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
- *
- * The first parameter `params` is the data that the formatter
- * needs. Its format is shown as follows:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
- *
- * When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'axis'`, or when tooltip is triggered by
- * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
- * , `params` is the data array of multiple series.
- * The content of each item of the array is the same as
- * above. Besides,
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
- *
- * **Note:** Using array to present all the parameters in
- * ECharts 2.x is not supported anymore.
- *
- * The second parameter `ticket` is the asynchronous callback
- * flag which should be used along with the third parameter
- * `callback` when it is used.
- *
- * The third parameter `callback` is asynchronous callback.
- * When the content of tooltip is acquired asynchronously,
- * `ticket` and `htm` as introduced above can be used to
- * update tooltip with callback.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.formatter
- */
- formatter?: Function | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The background color of tooltip's floating layer.
- *
- *
- * @default
- * "rgba(50,50,50,0.7)"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.backgroundColor
- */
- backgroundColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border color of tooltip's floating layer.
- *
- *
- * @default
- * '#333'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.borderColor
- */
- borderColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border width of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.borderWidth
- */
- borderWidth?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The floating layer of tooltip space around content.
- * The unit is px.
- * Default values for each position are 5.
- * And they can be set to different values with left, right,
- * top, and bottom.
- *
- * Examples:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.padding
- */
- padding?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The text syle of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle
- */
- textStyle?: {
-
- /**
- * text color.
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 14
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip.textStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * Extra CSS style for floating layer.
- * The following is an example for adding shadow.
- *
- * ```
- * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
- *
- * ```
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.extraCssText
- */
- extraCssText?: string;
- };
- };
+ data?: (number | SeriesCandlestick.DataObject)[][];
/**
* Mark point in a chart.
@@ -13483,5 +12705,787 @@ declare namespace echarts {
extraCssText?: string;
};
}
+
+ namespace SeriesCandlestick {
+ interface DataObject {
+
+ /**
+ * Name of data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.name
+ */
+ name?: string;
+
+ /**
+ * Value of data item.
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.value
+ */
+ value?: any[];
+
+ /**
+ * Style of a candle box.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * Fill color of bullish candle stick.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for example
+ * `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.itemStyle)
+ *
+ *
+ * @default
+ * "#c23531"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * Fill color of bearish candle stick.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for example
+ * `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.itemStyle)
+ *
+ *
+ * @default
+ * #314656
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.color0
+ */
+ color0?: string;
+
+ /**
+ * Border color of bullish candle stick.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for example
+ * `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.itemStyle)
+ *
+ *
+ * @default
+ * "#c23531"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border color of bearish candle stick.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for example
+ * `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.itemStyle)
+ *
+ *
+ * @default
+ * #314656
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.borderColor0
+ */
+ borderColor0?: string;
+
+ /**
+ * Border width of candlestick.
+ * There is no border when it is `0`.
+ *
+ *
+ * @default
+ * 1
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will not
+ * be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * Emphasis style of a candle box.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * Fill color of bullish candle stick.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.emphasis.itemStyle)
+ *
+ *
+ * @default
+ * "#c23531"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * Fill color of bearish candle stick.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.emphasis.itemStyle)
+ *
+ *
+ * @default
+ * #314656
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.color0
+ */
+ color0?: string;
+
+ /**
+ * Border color of bullish candle stick.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.emphasis.itemStyle)
+ *
+ *
+ * @default
+ * "#c23531"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border color of bearish candle stick.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.emphasis.itemStyle)
+ *
+ *
+ * @default
+ * #314656
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.borderColor0
+ */
+ borderColor0?: string;
+
+ /**
+ * Border width of candlestick.
+ * There is no border when it is `0`.
+ *
+ *
+ * @default
+ * 2
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.emphasis.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+ };
+
+ /**
+ * tooltip settings in this series data.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip
+ */
+ tooltip?: {
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The position of the tooltip's floating layer, which would
+ * follow the position of mouse by default.
+ *
+ * Options:
+ *
+ * + `Array`
+ *
+ * Display the position of tooltip's floating layer through
+ * array, which supports absolute position and relative
+ * percentage.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
+ *
+ * + `Function`
+ *
+ * Callback function in the following form:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
+ *
+ * **Parameters:**
+ * point: Mouse position.
+ * param: The same as formatter.
+ * dom: The DOM object of tooltip.
+ * rect: It is valid only when mouse is on graphic elements,
+ * which stands for a bounding box with `x`, `y`, `width`,
+ * and `height`.
+ * size: The size of dom echarts container.
+ * For example: `{contentSize: [width, height], viewSize:
+ * [width, height]}`.
+ *
+ * **Return:**
+ * Return value is an array standing for tooltip position,
+ * which can be absolute pixels, or relative percentage.
+ * Or can be an object, like `{left: 10, top: 30}`, or `{right:
+ * '20%', bottom: 40}`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
+ *
+ * Or:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
+ *
+ * + `'inside'`
+ *
+ * Center position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'top'`
+ *
+ * Top position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'left'`
+ *
+ * Left position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'right'`
+ *
+ * Right position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'bottom'`
+ *
+ * Bottom position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.position
+ */
+ position?: any[] | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The content formatter of tooltip's floating layer which
+ * supports string template and callback function.
+ *
+ * **1\. String template**
+ *
+ * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
+ * and `{e}`, which stands for series name, data name and
+ * data value and ect. When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is set to be `'axis'`, there may be data from multiple
+ * series.
+ * In this time, series index can be refered as `{a0}`,
+ * `{a1}`, or `{a2}`.
+ *
+ * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
+ * different series types:
+ *
+ * + Line (area) charts, bar (column) charts, K charts:
+ * `{a}` for series name, `{b}` for category name, `{c}`
+ * for data value, `{d}` for none;
+ *
+ * + Scatter (bubble) charts: `{a}` for series name, `{b}`
+ * for data name, `{c}` for data value, `{d}` for none;
+ *
+ * + Map: `{a}` for series name, `{b}` for area name, `{c}`
+ * for merging data, `{d}` for none;
+ *
+ * + Pie charts, gauge charts, funnel charts: `{a}` for
+ * series name, `{b}` for data item name, `{c}` for data
+ * value, `{d}` for percentage.
+ *
+ * **Example:**
+ *
+ * ```
+ * formatter: '{b0}: {c0}
{b1}: {c1}'
+ *
+ * ```
+ *
+ * **2\. Callback function**
+ *
+ * The format of callback function:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
+ *
+ * The first parameter `params` is the data that the formatter
+ * needs. Its format is shown as follows:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
+ *
+ * When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'axis'`, or when tooltip is triggered by
+ * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
+ * , `params` is the data array of multiple series.
+ * The content of each item of the array is the same as
+ * above. Besides,
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
+ *
+ * **Note:** Using array to present all the parameters in
+ * ECharts 2.x is not supported anymore.
+ *
+ * The second parameter `ticket` is the asynchronous callback
+ * flag which should be used along with the third parameter
+ * `callback` when it is used.
+ *
+ * The third parameter `callback` is asynchronous callback.
+ * When the content of tooltip is acquired asynchronously,
+ * `ticket` and `htm` as introduced above can be used to
+ * update tooltip with callback.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The background color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * "rgba(50,50,50,0.7)"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.backgroundColor
+ */
+ backgroundColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * '#333'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border width of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The floating layer of tooltip space around content.
+ * The unit is px.
+ * Default values for each position are 5.
+ * And they can be set to different values with left, right,
+ * top, and bottom.
+ *
+ * Examples:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip)
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.padding
+ */
+ padding?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The text syle of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle
+ */
+ textStyle?: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 14
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.candlestick.data.tooltip.textStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.textStyle.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * Extra CSS style for floating layer.
+ * The following is an example for adding shadow.
+ *
+ * ```
+ * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
+ *
+ * ```
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-candlestick.data.tooltip.extraCssText
+ */
+ extraCssText?: string;
+ };
+ }
+ }
}
}
diff --git a/types/echarts/options/series/custom.d.ts b/types/echarts/options/series/custom.d.ts
index 0aaa4324d7..23a73eef1d 100644
--- a/types/echarts/options/series/custom.d.ts
+++ b/types/echarts/options/series/custom.d.ts
@@ -6657,7 +6657,620 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.data
*/
- data?: {
+ data?: (
+ (void | string | number | SeriesCustom.DataObject)[]
+ | (void | string | number | SeriesCustom.DataObject)[][]
+ );
+
+ /**
+ * `zlevel` value of all graghical elements in custom series.
+ *
+ * `zlevel` is used to make layers with Canvas.
+ * Graphical elements with different `zlevel` values will be placed
+ * in different Canvases, which is a common optimization technique.
+ * We can put those frequently changed elements (like those with
+ * animations) to a seperate `zlevel`.
+ * Notice that too many Canvases will increase memory cost, and
+ * should be used carefully on mobile phones to avoid crash.
+ *
+ * Canvases with bigger `zlevel` will be placed on Canvases with
+ * smaller `zlevel`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.zlevel
+ */
+ zlevel?: number;
+
+ /**
+ * `z` value of all graghical elements in custom series, which controls
+ * order of drawing graphical components.
+ * Components with smaller `z` values may be overwritten by those
+ * with larger `z` values.
+ *
+ * `z` has a lower priority to `zlevel`, and will not create new
+ * Canvas.
+ *
+ *
+ * @default
+ * 2
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.z
+ */
+ z?: number;
+
+ /**
+ * Whether to ignore mouse events.
+ * Default value is false, for triggering and responding to mouse
+ * events.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.silent
+ */
+ silent?: boolean;
+
+ /**
+ * Whether to enable animation.
+ *
+ *
+ * @default
+ * "true"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animation
+ */
+ animation?: boolean;
+
+ /**
+ * Whether to set graphic number threshold to animation.
+ * Animation will be disabled when graphic number is larger than
+ * threshold.
+ *
+ *
+ * @default
+ * 2000
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animationThreshold
+ */
+ animationThreshold?: number;
+
+ /**
+ * Duration of the first animation, which supports callback function
+ * for different data to have different animation effect:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom)
+ *
+ *
+ * @default
+ * 1000
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animationDuration
+ */
+ animationDuration?: Function | number;
+
+ /**
+ * Easing method used for the first animation.
+ * Varied easing effects can be found at
+ * [easing effect example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=line-easing)
+ * .
+ *
+ *
+ * @default
+ * "cubicOut"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animationEasing
+ */
+ animationEasing?: string;
+
+ /**
+ * Delay before updating the first animation, which supports callback
+ * function for different data to have different animation effect.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom)
+ *
+ * See
+ * [this example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-animation-delay)
+ * for more information.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animationDelay
+ */
+ animationDelay?: Function | number;
+
+ /**
+ * Time for animation to complete, which supports callback function
+ * for different data to have different animation effect:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom)
+ *
+ *
+ * @default
+ * 300
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animationDurationUpdate
+ */
+ animationDurationUpdate?: Function | number;
+
+ /**
+ * Easing method used for animation.
+ *
+ *
+ * @default
+ * "cubicOut"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animationEasingUpdate
+ */
+ animationEasingUpdate?: string;
+
+ /**
+ * Delay before updating animation, which supports callback function
+ * for different data to have different animation effect.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom)
+ *
+ * See
+ * [this example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-animation-delay)
+ * for more information.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animationDelayUpdate
+ */
+ animationDelayUpdate?: Function | number;
+
+ /**
+ * tooltip settings in this series.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip
+ */
+ tooltip?: {
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The position of the tooltip's floating layer, which would
+ * follow the position of mouse by default.
+ *
+ * Options:
+ *
+ * + `Array`
+ *
+ * Display the position of tooltip's floating layer through
+ * array, which supports absolute position and relative percentage.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
+ *
+ * + `Function`
+ *
+ * Callback function in the following form:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
+ *
+ * **Parameters:**
+ * point: Mouse position.
+ * param: The same as formatter.
+ * dom: The DOM object of tooltip.
+ * rect: It is valid only when mouse is on graphic elements,
+ * which stands for a bounding box with `x`, `y`, `width`, and
+ * `height`.
+ * size: The size of dom echarts container.
+ * For example: `{contentSize: [width, height], viewSize: [width,
+ * height]}`.
+ *
+ * **Return:**
+ * Return value is an array standing for tooltip position, which
+ * can be absolute pixels, or relative percentage.
+ * Or can be an object, like `{left: 10, top: 30}`, or `{right:
+ * '20%', bottom: 40}`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
+ *
+ * Or:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
+ *
+ * + `'inside'`
+ *
+ * Center position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'top'`
+ *
+ * Top position of the graphic element where the mouse is in,
+ * which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'left'`
+ *
+ * Left position of the graphic element where the mouse is in,
+ * which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'right'`
+ *
+ * Right position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'bottom'`
+ *
+ * Bottom position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.position
+ */
+ position?: any[] | string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The content formatter of tooltip's floating layer which supports
+ * string template and callback function.
+ *
+ * **1\. String template**
+ *
+ * The template variables are `{a}`, `{b}`, `{c}`, `{d}` and
+ * `{e}`, which stands for series name, data name and data value
+ * and ect. When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is set to be `'axis'`, there may be data from multiple series.
+ * In this time, series index can be refered as `{a0}`, `{a1}`,
+ * or `{a2}`.
+ *
+ * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for different
+ * series types:
+ *
+ * + Line (area) charts, bar (column) charts, K charts: `{a}`
+ * for series name, `{b}` for category name, `{c}` for data
+ * value, `{d}` for none;
+ *
+ * + Scatter (bubble) charts: `{a}` for series name, `{b}` for
+ * data name, `{c}` for data value, `{d}` for none;
+ *
+ * + Map: `{a}` for series name, `{b}` for area name, `{c}`
+ * for merging data, `{d}` for none;
+ *
+ * + Pie charts, gauge charts, funnel charts: `{a}` for series
+ * name, `{b}` for data item name, `{c}` for data value, `{d}`
+ * for percentage.
+ *
+ * **Example:**
+ *
+ * ```
+ * formatter: '{b0}: {c0}
{b1}: {c1}'
+ *
+ * ```
+ *
+ * **2\. Callback function**
+ *
+ * The format of callback function:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
+ *
+ * The first parameter `params` is the data that the formatter
+ * needs. Its format is shown as follows:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
+ *
+ * When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'axis'`, or when tooltip is triggered by
+ * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
+ * , `params` is the data array of multiple series.
+ * The content of each item of the array is the same as above.
+ * Besides,
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
+ *
+ * **Note:** Using array to present all the parameters in ECharts
+ * 2.x is not supported anymore.
+ *
+ * The second parameter `ticket` is the asynchronous callback
+ * flag which should be used along with the third parameter
+ * `callback` when it is used.
+ *
+ * The third parameter `callback` is asynchronous callback.
+ * When the content of tooltip is acquired asynchronously, `ticket`
+ * and `htm` as introduced above can be used to update tooltip
+ * with callback.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The background color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * "rgba(50,50,50,0.7)"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.backgroundColor
+ */
+ backgroundColor?: string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * '#333'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border width of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The floating layer of tooltip space around content.
+ * The unit is px.
+ * Default values for each position are 5.
+ * And they can be set to different values with left, right,
+ * top, and bottom.
+ *
+ * Examples:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.padding
+ */
+ padding?: number;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The text syle of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle
+ */
+ textStyle?: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 14
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight` in
+ * parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip.textStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`, which
+ * represents the percent of `contentWidth` (that is, the
+ * width without `padding`) of its container box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on `outerWith`
+ * in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * Extra CSS style for floating layer.
+ * The following is an example for adding shadow.
+ *
+ * ```
+ * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
+ *
+ * ```
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.extraCssText
+ */
+ extraCssText?: string;
+ };
+ }
+
+ namespace SeriesCustom {
+ interface DataObject {
/**
* Name of data item.
@@ -6673,7 +7286,7 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.data.value
*/
- value?: number;
+ value?: number | number[];
/**
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.data.itemStyle
@@ -7337,613 +7950,7 @@ declare namespace echarts {
*/
extraCssText?: string;
};
- };
-
- /**
- * `zlevel` value of all graghical elements in custom series.
- *
- * `zlevel` is used to make layers with Canvas.
- * Graphical elements with different `zlevel` values will be placed
- * in different Canvases, which is a common optimization technique.
- * We can put those frequently changed elements (like those with
- * animations) to a seperate `zlevel`.
- * Notice that too many Canvases will increase memory cost, and
- * should be used carefully on mobile phones to avoid crash.
- *
- * Canvases with bigger `zlevel` will be placed on Canvases with
- * smaller `zlevel`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.zlevel
- */
- zlevel?: number;
-
- /**
- * `z` value of all graghical elements in custom series, which controls
- * order of drawing graphical components.
- * Components with smaller `z` values may be overwritten by those
- * with larger `z` values.
- *
- * `z` has a lower priority to `zlevel`, and will not create new
- * Canvas.
- *
- *
- * @default
- * 2
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.z
- */
- z?: number;
-
- /**
- * Whether to ignore mouse events.
- * Default value is false, for triggering and responding to mouse
- * events.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.silent
- */
- silent?: boolean;
-
- /**
- * Whether to enable animation.
- *
- *
- * @default
- * "true"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animation
- */
- animation?: boolean;
-
- /**
- * Whether to set graphic number threshold to animation.
- * Animation will be disabled when graphic number is larger than
- * threshold.
- *
- *
- * @default
- * 2000
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animationThreshold
- */
- animationThreshold?: number;
-
- /**
- * Duration of the first animation, which supports callback function
- * for different data to have different animation effect:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom)
- *
- *
- * @default
- * 1000
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animationDuration
- */
- animationDuration?: Function | number;
-
- /**
- * Easing method used for the first animation.
- * Varied easing effects can be found at
- * [easing effect example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=line-easing)
- * .
- *
- *
- * @default
- * "cubicOut"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animationEasing
- */
- animationEasing?: string;
-
- /**
- * Delay before updating the first animation, which supports callback
- * function for different data to have different animation effect.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom)
- *
- * See
- * [this example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-animation-delay)
- * for more information.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animationDelay
- */
- animationDelay?: Function | number;
-
- /**
- * Time for animation to complete, which supports callback function
- * for different data to have different animation effect:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom)
- *
- *
- * @default
- * 300
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animationDurationUpdate
- */
- animationDurationUpdate?: Function | number;
-
- /**
- * Easing method used for animation.
- *
- *
- * @default
- * "cubicOut"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animationEasingUpdate
- */
- animationEasingUpdate?: string;
-
- /**
- * Delay before updating animation, which supports callback function
- * for different data to have different animation effect.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom)
- *
- * See
- * [this example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-animation-delay)
- * for more information.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.animationDelayUpdate
- */
- animationDelayUpdate?: Function | number;
-
- /**
- * tooltip settings in this series.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip
- */
- tooltip?: {
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The position of the tooltip's floating layer, which would
- * follow the position of mouse by default.
- *
- * Options:
- *
- * + `Array`
- *
- * Display the position of tooltip's floating layer through
- * array, which supports absolute position and relative percentage.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
- *
- * + `Function`
- *
- * Callback function in the following form:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
- *
- * **Parameters:**
- * point: Mouse position.
- * param: The same as formatter.
- * dom: The DOM object of tooltip.
- * rect: It is valid only when mouse is on graphic elements,
- * which stands for a bounding box with `x`, `y`, `width`, and
- * `height`.
- * size: The size of dom echarts container.
- * For example: `{contentSize: [width, height], viewSize: [width,
- * height]}`.
- *
- * **Return:**
- * Return value is an array standing for tooltip position, which
- * can be absolute pixels, or relative percentage.
- * Or can be an object, like `{left: 10, top: 30}`, or `{right:
- * '20%', bottom: 40}`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
- *
- * Or:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
- *
- * + `'inside'`
- *
- * Center position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'top'`
- *
- * Top position of the graphic element where the mouse is in,
- * which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'left'`
- *
- * Left position of the graphic element where the mouse is in,
- * which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'right'`
- *
- * Right position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'bottom'`
- *
- * Bottom position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.position
- */
- position?: any[] | string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The content formatter of tooltip's floating layer which supports
- * string template and callback function.
- *
- * **1\. String template**
- *
- * The template variables are `{a}`, `{b}`, `{c}`, `{d}` and
- * `{e}`, which stands for series name, data name and data value
- * and ect. When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is set to be `'axis'`, there may be data from multiple series.
- * In this time, series index can be refered as `{a0}`, `{a1}`,
- * or `{a2}`.
- *
- * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for different
- * series types:
- *
- * + Line (area) charts, bar (column) charts, K charts: `{a}`
- * for series name, `{b}` for category name, `{c}` for data
- * value, `{d}` for none;
- *
- * + Scatter (bubble) charts: `{a}` for series name, `{b}` for
- * data name, `{c}` for data value, `{d}` for none;
- *
- * + Map: `{a}` for series name, `{b}` for area name, `{c}`
- * for merging data, `{d}` for none;
- *
- * + Pie charts, gauge charts, funnel charts: `{a}` for series
- * name, `{b}` for data item name, `{c}` for data value, `{d}`
- * for percentage.
- *
- * **Example:**
- *
- * ```
- * formatter: '{b0}: {c0}
{b1}: {c1}'
- *
- * ```
- *
- * **2\. Callback function**
- *
- * The format of callback function:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
- *
- * The first parameter `params` is the data that the formatter
- * needs. Its format is shown as follows:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
- *
- * When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'axis'`, or when tooltip is triggered by
- * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
- * , `params` is the data array of multiple series.
- * The content of each item of the array is the same as above.
- * Besides,
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
- *
- * **Note:** Using array to present all the parameters in ECharts
- * 2.x is not supported anymore.
- *
- * The second parameter `ticket` is the asynchronous callback
- * flag which should be used along with the third parameter
- * `callback` when it is used.
- *
- * The third parameter `callback` is asynchronous callback.
- * When the content of tooltip is acquired asynchronously, `ticket`
- * and `htm` as introduced above can be used to update tooltip
- * with callback.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.formatter
- */
- formatter?: Function | string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The background color of tooltip's floating layer.
- *
- *
- * @default
- * "rgba(50,50,50,0.7)"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.backgroundColor
- */
- backgroundColor?: string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border color of tooltip's floating layer.
- *
- *
- * @default
- * '#333'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.borderColor
- */
- borderColor?: string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border width of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.borderWidth
- */
- borderWidth?: number;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The floating layer of tooltip space around content.
- * The unit is px.
- * Default values for each position are 5.
- * And they can be set to different values with left, right,
- * top, and bottom.
- *
- * Examples:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip)
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.padding
- */
- padding?: number;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The text syle of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle
- */
- textStyle?: {
-
- /**
- * text color.
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 14
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight` in
- * parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.custom.tooltip.textStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`, which
- * represents the percent of `contentWidth` (that is, the
- * width without `padding`) of its container box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on `outerWith`
- * in prectice.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.textStyle.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * Extra CSS style for floating layer.
- * The following is an example for adding shadow.
- *
- * ```
- * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
- *
- * ```
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-custom.tooltip.extraCssText
- */
- extraCssText?: string;
- };
+ }
}
}
}
diff --git a/types/echarts/options/series/effect-scatter.d.ts b/types/echarts/options/series/effect-scatter.d.ts
index 8b9b5eac69..885e5d385b 100644
--- a/types/echarts/options/series/effect-scatter.d.ts
+++ b/types/echarts/options/series/effect-scatter.d.ts
@@ -2404,2290 +2404,10 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data
*/
- data?: {
-
- /**
- * Symbol of single data.
- *
- * Icon types provided by ECharts includes `'circle'`, `'rect'`,
- * `'roundRect'`, `'triangle'`, `'diamond'`, `'pin'`, `'arrow'`,
- * `'none'`
- *
- * It can be set to an image with `'image://url'` , in which
- * URL is the link to an image, or `dataURI` of an image.
- *
- * An image URL example:
- *
- * ```
- * 'image://http://xxx.xxx.xxx/a/b.png'
- *
- * ```
- *
- * A `dataURI` example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data)
- *
- * Icons can be set to arbitrary vector path via `'path://'`
- * in ECharts.
- * As compared with raster image, vector paths prevent from
- * jagging and blurring when scaled, and have a better control
- * over changing colors.
- * Size of vectoer icon will be adapted automatically.
- * Refer to
- * [SVG PathData](http://www.w3.org/TR/SVG/paths.html#PathData)
- * for more information about format of path.
- * You may export vector paths from tools like Adobe Illustrator.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data)
- *
- *
- * @default
- * "circle"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.symbol
- */
- symbol?: string;
-
- /**
- * single data symbol size.
- * It can be set to single numbers like `10`, or use an array
- * to represent width and height.
- * For example, `[20, 10]` means symbol width is `20`, and height
- * is`10`.
- *
- *
- * @default
- * 4
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.symbolSize
- */
- symbolSize?: any[] | number;
-
- /**
- * Rotate degree of single data symbol.
- * Note that when `symbol` is set to be `'arrow'` in `markLine`,
- * `symbolRotate` value will be ignored, and compulsively use
- * tangent angle.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.symbolRotate
- */
- symbolRotate?: number;
-
- /**
- * Whether to keep aspect for symbols in the form of `path://`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.symbolKeepAspect
- */
- symbolKeepAspect?: boolean;
-
- /**
- * Offset of single data symbol relative to original position.
- * By default, symbol will be put in the center position of
- * data.
- * But if symbol is from user-defined vector path or image,
- * you may not expect symbol to be in center.
- * In this case, you may use this attribute to set offset to
- * default position.
- * It can be in absolute pixel value, or in relative percentage
- * value.
- *
- * For example, `[0, '50%']` means to move upside side position
- * of symbol height.
- * It can be used to make the arrow in the bottom to be at data
- * position when symbol is pin.
- *
- *
- * @default
- * [0, 0]
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.symbolOffset
- */
- symbolOffset?: any[];
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values to
- * represent position of label relative to top-left corner
- * of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * "inside"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.distance
- */
- distance?: number;
-
- /**
- * Rotate label, from -90 degree to 90, positive value represents
- * rotate anti-clockwise.
- *
- * See:
- * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rotate
- */
- rotate?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.offset
- */
- offset?: any[];
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent level
- * will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight` in
- * parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
- * right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`, which
- * represents the percent of `contentWidth` (that is, the
- * width without `padding`) of its container box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on `outerWith`
- * in prectice.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich` property.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when using
- * background image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4,
- * 4]`.
- * + `padding: [3, 4]`: represents `padding: [3,
- * 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make
- * simple table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth`
- * (that is, the width without `padding`) of its
- * container box.
- * It is based on `contentWidth` because that each
- * text fregment is layout based on the `content
- * box`, where it makes no sense that calculating
- * width based on `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using
- * background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle
- */
- itemStyle?: {
-
- /**
- * color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for example
- * `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
- * `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will not
- * be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis
- */
- emphasis?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values
- * to represent position of label relative to top-left
- * corner of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.distance
- */
- distance?: number;
-
- /**
- * Rotate label, from -90 degree to 90, positive value
- * represents rotate anti-clockwise.
- *
- * See:
- * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rotate
- */
- rotate?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.offset
- */
- offset?: any[];
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of
- * `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4,
- * 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich`
- * property. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`,
- * `verticalAlign` in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when
- * using background image, or auto adapted by
- * default.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4,
- * 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding:
- * [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify
- * it.
- * You may want to use it in some cases like
- * make simple table or using background image
- * (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * `width` can also be percent string, like
- * `'100%'`, which represents the percent of
- * `contentWidth` (that is, the width without
- * `padding`) of its container box.
- * It is based on `contentWidth` because that
- * each text fregment is layout based on the
- * `content box`, where it makes no sense that
- * calculating width based on `outerWith` in
- * prectice.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like
- * using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle
- */
- itemStyle?: {
-
- /**
- * color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of
- * `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`,
- * or `'dotted'`. `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.opacity
- */
- opacity?: number;
- };
- };
-
- /**
- * tooltip settings in this series data.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip
- */
- tooltip?: {
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The position of the tooltip's floating layer, which would
- * follow the position of mouse by default.
- *
- * Options:
- *
- * + `Array`
- *
- * Display the position of tooltip's floating layer through
- * array, which supports absolute position and relative
- * percentage.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
- *
- * + `Function`
- *
- * Callback function in the following form:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
- *
- * **Parameters:**
- * point: Mouse position.
- * param: The same as formatter.
- * dom: The DOM object of tooltip.
- * rect: It is valid only when mouse is on graphic elements,
- * which stands for a bounding box with `x`, `y`, `width`,
- * and `height`.
- * size: The size of dom echarts container.
- * For example: `{contentSize: [width, height], viewSize:
- * [width, height]}`.
- *
- * **Return:**
- * Return value is an array standing for tooltip position,
- * which can be absolute pixels, or relative percentage.
- * Or can be an object, like `{left: 10, top: 30}`, or `{right:
- * '20%', bottom: 40}`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
- *
- * Or:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
- *
- * + `'inside'`
- *
- * Center position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'top'`
- *
- * Top position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'left'`
- *
- * Left position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'right'`
- *
- * Right position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'bottom'`
- *
- * Bottom position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.position
- */
- position?: any[] | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The content formatter of tooltip's floating layer which
- * supports string template and callback function.
- *
- * **1\. String template**
- *
- * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
- * and `{e}`, which stands for series name, data name and
- * data value and ect. When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is set to be `'axis'`, there may be data from multiple
- * series.
- * In this time, series index can be refered as `{a0}`,
- * `{a1}`, or `{a2}`.
- *
- * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
- * different series types:
- *
- * + Line (area) charts, bar (column) charts, K charts:
- * `{a}` for series name, `{b}` for category name, `{c}`
- * for data value, `{d}` for none;
- *
- * + Scatter (bubble) charts: `{a}` for series name, `{b}`
- * for data name, `{c}` for data value, `{d}` for none;
- *
- * + Map: `{a}` for series name, `{b}` for area name, `{c}`
- * for merging data, `{d}` for none;
- *
- * + Pie charts, gauge charts, funnel charts: `{a}` for
- * series name, `{b}` for data item name, `{c}` for data
- * value, `{d}` for percentage.
- *
- * **Example:**
- *
- * ```
- * formatter: '{b0}: {c0}
{b1}: {c1}'
- *
- * ```
- *
- * **2\. Callback function**
- *
- * The format of callback function:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
- *
- * The first parameter `params` is the data that the formatter
- * needs. Its format is shown as follows:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
- *
- * When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'axis'`, or when tooltip is triggered by
- * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
- * , `params` is the data array of multiple series.
- * The content of each item of the array is the same as
- * above. Besides,
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
- *
- * **Note:** Using array to present all the parameters in
- * ECharts 2.x is not supported anymore.
- *
- * The second parameter `ticket` is the asynchronous callback
- * flag which should be used along with the third parameter
- * `callback` when it is used.
- *
- * The third parameter `callback` is asynchronous callback.
- * When the content of tooltip is acquired asynchronously,
- * `ticket` and `htm` as introduced above can be used to
- * update tooltip with callback.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.formatter
- */
- formatter?: Function | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The background color of tooltip's floating layer.
- *
- *
- * @default
- * "rgba(50,50,50,0.7)"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.backgroundColor
- */
- backgroundColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border color of tooltip's floating layer.
- *
- *
- * @default
- * '#333'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.borderColor
- */
- borderColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border width of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.borderWidth
- */
- borderWidth?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The floating layer of tooltip space around content.
- * The unit is px.
- * Default values for each position are 5.
- * And they can be set to different values with left, right,
- * top, and bottom.
- *
- * Examples:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.padding
- */
- padding?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The text syle of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle
- */
- textStyle?: {
-
- /**
- * text color.
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 14
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip.textStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * Extra CSS style for floating layer.
- * The following is an example for adding shadow.
- *
- * ```
- * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
- *
- * ```
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.extraCssText
- */
- extraCssText?: string;
- };
- };
+ data?: (
+ (void | number | string | SeriesEffectScatter.DataObject)[]
+ | (void | number | string | SeriesEffectScatter.DataObject)[][]
+ );
/**
* Mark point in a chart.
@@ -16788,5 +14508,2292 @@ declare namespace echarts {
extraCssText?: string;
};
}
+
+ namespace SeriesEffectScatter {
+ interface DataObject {
+
+ /**
+ * Symbol of single data.
+ *
+ * Icon types provided by ECharts includes `'circle'`, `'rect'`,
+ * `'roundRect'`, `'triangle'`, `'diamond'`, `'pin'`, `'arrow'`,
+ * `'none'`
+ *
+ * It can be set to an image with `'image://url'` , in which
+ * URL is the link to an image, or `dataURI` of an image.
+ *
+ * An image URL example:
+ *
+ * ```
+ * 'image://http://xxx.xxx.xxx/a/b.png'
+ *
+ * ```
+ *
+ * A `dataURI` example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data)
+ *
+ * Icons can be set to arbitrary vector path via `'path://'`
+ * in ECharts.
+ * As compared with raster image, vector paths prevent from
+ * jagging and blurring when scaled, and have a better control
+ * over changing colors.
+ * Size of vectoer icon will be adapted automatically.
+ * Refer to
+ * [SVG PathData](http://www.w3.org/TR/SVG/paths.html#PathData)
+ * for more information about format of path.
+ * You may export vector paths from tools like Adobe Illustrator.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data)
+ *
+ *
+ * @default
+ * "circle"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.symbol
+ */
+ symbol?: string;
+
+ /**
+ * single data symbol size.
+ * It can be set to single numbers like `10`, or use an array
+ * to represent width and height.
+ * For example, `[20, 10]` means symbol width is `20`, and height
+ * is`10`.
+ *
+ *
+ * @default
+ * 4
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.symbolSize
+ */
+ symbolSize?: any[] | number;
+
+ /**
+ * Rotate degree of single data symbol.
+ * Note that when `symbol` is set to be `'arrow'` in `markLine`,
+ * `symbolRotate` value will be ignored, and compulsively use
+ * tangent angle.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.symbolRotate
+ */
+ symbolRotate?: number;
+
+ /**
+ * Whether to keep aspect for symbols in the form of `path://`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.symbolKeepAspect
+ */
+ symbolKeepAspect?: boolean;
+
+ /**
+ * Offset of single data symbol relative to original position.
+ * By default, symbol will be put in the center position of
+ * data.
+ * But if symbol is from user-defined vector path or image,
+ * you may not expect symbol to be in center.
+ * In this case, you may use this attribute to set offset to
+ * default position.
+ * It can be in absolute pixel value, or in relative percentage
+ * value.
+ *
+ * For example, `[0, '50%']` means to move upside side position
+ * of symbol height.
+ * It can be used to make the arrow in the bottom to be at data
+ * position when symbol is pin.
+ *
+ *
+ * @default
+ * [0, 0]
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.symbolOffset
+ */
+ symbolOffset?: any[];
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values to
+ * represent position of label relative to top-left corner
+ * of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * "inside"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Rotate label, from -90 degree to 90, positive value represents
+ * rotate anti-clockwise.
+ *
+ * See:
+ * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rotate
+ */
+ rotate?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent level
+ * will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight` in
+ * parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
+ * right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`, which
+ * represents the percent of `contentWidth` (that is, the
+ * width without `padding`) of its container box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on `outerWith`
+ * in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich` property.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when using
+ * background image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4,
+ * 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3,
+ * 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make
+ * simple table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth`
+ * (that is, the width without `padding`) of its
+ * container box.
+ * It is based on `contentWidth` because that each
+ * text fregment is layout based on the `content
+ * box`, where it makes no sense that calculating
+ * width based on `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using
+ * background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for example
+ * `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
+ * `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will not
+ * be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values
+ * to represent position of label relative to top-left
+ * corner of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Rotate label, from -90 degree to 90, positive value
+ * represents rotate anti-clockwise.
+ *
+ * See:
+ * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rotate
+ */
+ rotate?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of
+ * `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4,
+ * 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich`
+ * property. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`,
+ * `verticalAlign` in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when
+ * using background image, or auto adapted by
+ * default.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4,
+ * 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding:
+ * [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify
+ * it.
+ * You may want to use it in some cases like
+ * make simple table or using background image
+ * (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * `width` can also be percent string, like
+ * `'100%'`, which represents the percent of
+ * `contentWidth` (that is, the width without
+ * `padding`) of its container box.
+ * It is based on `contentWidth` because that
+ * each text fregment is layout based on the
+ * `content box`, where it makes no sense that
+ * calculating width based on `outerWith` in
+ * prectice.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like
+ * using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of
+ * `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`,
+ * or `'dotted'`. `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.emphasis.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+ };
+
+ /**
+ * tooltip settings in this series data.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip
+ */
+ tooltip?: {
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The position of the tooltip's floating layer, which would
+ * follow the position of mouse by default.
+ *
+ * Options:
+ *
+ * + `Array`
+ *
+ * Display the position of tooltip's floating layer through
+ * array, which supports absolute position and relative
+ * percentage.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
+ *
+ * + `Function`
+ *
+ * Callback function in the following form:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
+ *
+ * **Parameters:**
+ * point: Mouse position.
+ * param: The same as formatter.
+ * dom: The DOM object of tooltip.
+ * rect: It is valid only when mouse is on graphic elements,
+ * which stands for a bounding box with `x`, `y`, `width`,
+ * and `height`.
+ * size: The size of dom echarts container.
+ * For example: `{contentSize: [width, height], viewSize:
+ * [width, height]}`.
+ *
+ * **Return:**
+ * Return value is an array standing for tooltip position,
+ * which can be absolute pixels, or relative percentage.
+ * Or can be an object, like `{left: 10, top: 30}`, or `{right:
+ * '20%', bottom: 40}`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
+ *
+ * Or:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
+ *
+ * + `'inside'`
+ *
+ * Center position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'top'`
+ *
+ * Top position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'left'`
+ *
+ * Left position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'right'`
+ *
+ * Right position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'bottom'`
+ *
+ * Bottom position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.position
+ */
+ position?: any[] | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The content formatter of tooltip's floating layer which
+ * supports string template and callback function.
+ *
+ * **1\. String template**
+ *
+ * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
+ * and `{e}`, which stands for series name, data name and
+ * data value and ect. When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is set to be `'axis'`, there may be data from multiple
+ * series.
+ * In this time, series index can be refered as `{a0}`,
+ * `{a1}`, or `{a2}`.
+ *
+ * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
+ * different series types:
+ *
+ * + Line (area) charts, bar (column) charts, K charts:
+ * `{a}` for series name, `{b}` for category name, `{c}`
+ * for data value, `{d}` for none;
+ *
+ * + Scatter (bubble) charts: `{a}` for series name, `{b}`
+ * for data name, `{c}` for data value, `{d}` for none;
+ *
+ * + Map: `{a}` for series name, `{b}` for area name, `{c}`
+ * for merging data, `{d}` for none;
+ *
+ * + Pie charts, gauge charts, funnel charts: `{a}` for
+ * series name, `{b}` for data item name, `{c}` for data
+ * value, `{d}` for percentage.
+ *
+ * **Example:**
+ *
+ * ```
+ * formatter: '{b0}: {c0}
{b1}: {c1}'
+ *
+ * ```
+ *
+ * **2\. Callback function**
+ *
+ * The format of callback function:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
+ *
+ * The first parameter `params` is the data that the formatter
+ * needs. Its format is shown as follows:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
+ *
+ * When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'axis'`, or when tooltip is triggered by
+ * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
+ * , `params` is the data array of multiple series.
+ * The content of each item of the array is the same as
+ * above. Besides,
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
+ *
+ * **Note:** Using array to present all the parameters in
+ * ECharts 2.x is not supported anymore.
+ *
+ * The second parameter `ticket` is the asynchronous callback
+ * flag which should be used along with the third parameter
+ * `callback` when it is used.
+ *
+ * The third parameter `callback` is asynchronous callback.
+ * When the content of tooltip is acquired asynchronously,
+ * `ticket` and `htm` as introduced above can be used to
+ * update tooltip with callback.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The background color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * "rgba(50,50,50,0.7)"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.backgroundColor
+ */
+ backgroundColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * '#333'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border width of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The floating layer of tooltip space around content.
+ * The unit is px.
+ * Default values for each position are 5.
+ * And they can be set to different values with left, right,
+ * top, and bottom.
+ *
+ * Examples:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip)
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.padding
+ */
+ padding?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The text syle of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle
+ */
+ textStyle?: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 14
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.effectScatter.data.tooltip.textStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.textStyle.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * Extra CSS style for floating layer.
+ * The following is an example for adding shadow.
+ *
+ * ```
+ * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
+ *
+ * ```
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-effectScatter.data.tooltip.extraCssText
+ */
+ extraCssText?: string;
+ };
+ }
+ }
}
}
diff --git a/types/echarts/options/series/funnel.d.ts b/types/echarts/options/series/funnel.d.ts
index a43b8f3960..185c484c0d 100644
--- a/types/echarts/options/series/funnel.d.ts
+++ b/types/echarts/options/series/funnel.d.ts
@@ -2337,2524 +2337,11 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data
*/
- data?: {
-
- /**
- * the name of data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.name
- */
- name?: string;
-
- /**
- * data value.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.value
- */
- value?: number;
-
- /**
- * Graphic style of , `emphasis` is the style when it is highlighted,
- * like being hovered by mouse, or highlighted via legend connect.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle
- */
- itemStyle?: {
-
- /**
- * color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for example
- * `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
- * `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will not
- * be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * The label configuration of a single data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label
- */
- label?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Options:**
- *
- * + `'left'`
- *
- * Left side of funnel chart.
- * The corresponding trapezoid would be related to through
- * [visual guide line](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.labelLine)
- * .
- *
- * + `'right'`
- *
- * Right side of funnel chart.
- * The corresponding trapezoid would be related to through
- * [visual guide line](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.labelLine)
- * .
- *
- * + `'inside'`
- *
- * Inside the trapezoid of funnel chart.
- *
- * + `'inner'` equals to `'inside'`.
- *
- * + `'center'` equals to `'inside'`.
- *
- *
- * @default
- * "outside"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.position
- */
- position?: string;
-
- /**
- * text color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent level
- * will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight` in
- * parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
- * right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`, which
- * represents the percent of `contentWidth` (that is, the
- * width without `padding`) of its container box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on `outerWith`
- * in prectice.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich` property.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when using
- * background image, or auto adapted by default.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4,
- * 4]`.
- * + `padding: [3, 4]`: represents `padding: [3,
- * 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make
- * simple table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth`
- * (that is, the width without `padding`) of its
- * container box.
- * It is based on `contentWidth` because that each
- * text fregment is layout based on the `content
- * box`, where it makes no sense that calculating
- * width based on `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using
- * background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine
- */
- labelLine?: {
-
- /**
- * Whether to show visual guide line.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.show
- */
- show?: boolean;
-
- /**
- * The length of the first part from visual guide line.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.length
- */
- length?: number;
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle
- */
- lineStyle?: {
-
- /**
- * Line color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.labelLine.lineStyle)
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.color
- */
- color?: string;
-
- /**
- * line width.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.width
- */
- width?: number;
-
- /**
- * line type.
- *
- * Options are:
- *
- * + `'solid'`
- * + `'dashed'`
- * + `'dotted'`
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.type
- */
- type?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.labelLine.lineStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * The style of visual guide line in emphasis status.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis
- */
- emphasis?: {
-
- /**
- * Whether to show visual guide line.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.show
- */
- show?: boolean;
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle
- */
- lineStyle?: {
-
- /**
- * Line color.
- *
- * > Color can be represented in RGB, for example
- * `'rgb(128, 128, 128)'`.
- * RGBA can be used when you need alpha channel,
- * for example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported
- * besides single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.labelLine.emphasis.lineStyle)
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.color
- */
- color?: string;
-
- /**
- * line width.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.width
- */
- width?: number;
-
- /**
- * line type.
- *
- * Options are:
- *
- * + `'solid'`
- * + `'dashed'`
- * + `'dotted'`
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.type
- */
- type?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.labelLine.emphasis.lineStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of
- * shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of
- * shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component
- * will not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.opacity
- */
- opacity?: number;
- };
- };
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis
- */
- emphasis?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle
- */
- itemStyle?: {
-
- /**
- * color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of
- * `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`,
- * or `'dotted'`. `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label
- */
- label?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.show
- */
- show?: boolean;
-
- /**
- * text color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of
- * `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4,
- * 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich`
- * property. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`,
- * `verticalAlign` in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when
- * using background image, or auto adapted by
- * default.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4,
- * 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding:
- * [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify
- * it.
- * You may want to use it in some cases like
- * make simple table or using background image
- * (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * `width` can also be percent string, like
- * `'100%'`, which represents the percent of
- * `contentWidth` (that is, the width without
- * `padding`) of its container box.
- * It is based on `contentWidth` because that
- * each text fregment is layout based on the
- * `content box`, where it makes no sense that
- * calculating width based on `outerWith` in
- * prectice.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like
- * using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine
- */
- labelLine?: {
-
- /**
- * Whether to show visual guide line.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.show
- */
- show?: boolean;
-
- /**
- * The length of the first part from visual guide line.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.length
- */
- length?: number;
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle
- */
- lineStyle?: {
-
- /**
- * Line color.
- *
- * > Color can be represented in RGB, for example
- * `'rgb(128, 128, 128)'`.
- * RGBA can be used when you need alpha channel,
- * for example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported
- * besides single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.labelLine.lineStyle)
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.color
- */
- color?: string;
-
- /**
- * line width.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.width
- */
- width?: number;
-
- /**
- * line type.
- *
- * Options are:
- *
- * + `'solid'`
- * + `'dashed'`
- * + `'dotted'`
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.type
- */
- type?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.labelLine.lineStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of
- * shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of
- * shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component
- * will not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * The style of visual guide line in emphasis status.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis
- */
- emphasis?: {
-
- /**
- * Whether to show visual guide line.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.show
- */
- show?: boolean;
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle
- */
- lineStyle?: {
-
- /**
- * Line color.
- *
- * > Color can be represented in RGB, for example
- * `'rgb(128, 128, 128)'`.
- * RGBA can be used when you need alpha channel,
- * for example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for
- * example `'#ccc'`.
- * Gradient color and texture are also supported
- * besides single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.labelLine.emphasis.lineStyle)
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.color
- */
- color?: string;
-
- /**
- * line width.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.width
- */
- width?: number;
-
- /**
- * line type.
- *
- * Options are:
- *
- * + `'solid'`
- * + `'dashed'`
- * + `'dotted'`
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.type
- */
- type?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with
- * `shadowColor`,`shadowOffsetX`, `shadowOffsetY`
- * to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.labelLine.emphasis.lineStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color.
- * Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction
- * of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction
- * of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component
- * will not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.opacity
- */
- opacity?: number;
- };
- };
- };
- };
-
- /**
- * tooltip settings in this series data.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip
- */
- tooltip?: {
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The position of the tooltip's floating layer, which would
- * follow the position of mouse by default.
- *
- * Options:
- *
- * + `Array`
- *
- * Display the position of tooltip's floating layer through
- * array, which supports absolute position and relative
- * percentage.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
- *
- * + `Function`
- *
- * Callback function in the following form:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
- *
- * **Parameters:**
- * point: Mouse position.
- * param: The same as formatter.
- * dom: The DOM object of tooltip.
- * rect: It is valid only when mouse is on graphic elements,
- * which stands for a bounding box with `x`, `y`, `width`,
- * and `height`.
- * size: The size of dom echarts container.
- * For example: `{contentSize: [width, height], viewSize:
- * [width, height]}`.
- *
- * **Return:**
- * Return value is an array standing for tooltip position,
- * which can be absolute pixels, or relative percentage.
- * Or can be an object, like `{left: 10, top: 30}`, or `{right:
- * '20%', bottom: 40}`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
- *
- * Or:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
- *
- * + `'inside'`
- *
- * Center position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'top'`
- *
- * Top position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'left'`
- *
- * Left position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'right'`
- *
- * Right position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'bottom'`
- *
- * Bottom position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.position
- */
- position?: any[] | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The content formatter of tooltip's floating layer which
- * supports string template and callback function.
- *
- * **1\. String template**
- *
- * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
- * and `{e}`, which stands for series name, data name and
- * data value and ect. When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is set to be `'axis'`, there may be data from multiple
- * series.
- * In this time, series index can be refered as `{a0}`,
- * `{a1}`, or `{a2}`.
- *
- * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
- * different series types:
- *
- * + Line (area) charts, bar (column) charts, K charts:
- * `{a}` for series name, `{b}` for category name, `{c}`
- * for data value, `{d}` for none;
- *
- * + Scatter (bubble) charts: `{a}` for series name, `{b}`
- * for data name, `{c}` for data value, `{d}` for none;
- *
- * + Map: `{a}` for series name, `{b}` for area name, `{c}`
- * for merging data, `{d}` for none;
- *
- * + Pie charts, gauge charts, funnel charts: `{a}` for
- * series name, `{b}` for data item name, `{c}` for data
- * value, `{d}` for percentage.
- *
- * **Example:**
- *
- * ```
- * formatter: '{b0}: {c0}
{b1}: {c1}'
- *
- * ```
- *
- * **2\. Callback function**
- *
- * The format of callback function:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
- *
- * The first parameter `params` is the data that the formatter
- * needs. Its format is shown as follows:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
- *
- * When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'axis'`, or when tooltip is triggered by
- * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
- * , `params` is the data array of multiple series.
- * The content of each item of the array is the same as
- * above. Besides,
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
- *
- * **Note:** Using array to present all the parameters in
- * ECharts 2.x is not supported anymore.
- *
- * The second parameter `ticket` is the asynchronous callback
- * flag which should be used along with the third parameter
- * `callback` when it is used.
- *
- * The third parameter `callback` is asynchronous callback.
- * When the content of tooltip is acquired asynchronously,
- * `ticket` and `htm` as introduced above can be used to
- * update tooltip with callback.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.formatter
- */
- formatter?: Function | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The background color of tooltip's floating layer.
- *
- *
- * @default
- * "rgba(50,50,50,0.7)"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.backgroundColor
- */
- backgroundColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border color of tooltip's floating layer.
- *
- *
- * @default
- * '#333'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.borderColor
- */
- borderColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border width of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.borderWidth
- */
- borderWidth?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The floating layer of tooltip space around content.
- * The unit is px.
- * Default values for each position are 5.
- * And they can be set to different values with left, right,
- * top, and bottom.
- *
- * Examples:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.padding
- */
- padding?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The text syle of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle
- */
- textStyle?: {
-
- /**
- * text color.
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 14
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip.textStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * Extra CSS style for floating layer.
- * The following is an example for adding shadow.
- *
- * ```
- * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
- *
- * ```
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.extraCssText
- */
- extraCssText?: string;
- };
- };
+ data?: (
+ number[]
+ | number[][]
+ | SeriesFunnel.DataObject[]
+ );
/**
* Mark point in a chart.
@@ -16484,5 +13971,2526 @@ declare namespace echarts {
extraCssText?: string;
};
}
+
+ namespace SeriesFunnel {
+ interface DataObject {
+
+ /**
+ * the name of data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.name
+ */
+ name?: string;
+
+ /**
+ * data value.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.value
+ */
+ value?: number;
+
+ /**
+ * Graphic style of , `emphasis` is the style when it is highlighted,
+ * like being hovered by mouse, or highlighted via legend connect.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for example
+ * `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
+ * `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will not
+ * be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * The label configuration of a single data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label
+ */
+ label?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Options:**
+ *
+ * + `'left'`
+ *
+ * Left side of funnel chart.
+ * The corresponding trapezoid would be related to through
+ * [visual guide line](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.labelLine)
+ * .
+ *
+ * + `'right'`
+ *
+ * Right side of funnel chart.
+ * The corresponding trapezoid would be related to through
+ * [visual guide line](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.labelLine)
+ * .
+ *
+ * + `'inside'`
+ *
+ * Inside the trapezoid of funnel chart.
+ *
+ * + `'inner'` equals to `'inside'`.
+ *
+ * + `'center'` equals to `'inside'`.
+ *
+ *
+ * @default
+ * "outside"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.position
+ */
+ position?: string;
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent level
+ * will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight` in
+ * parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
+ * right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`, which
+ * represents the percent of `contentWidth` (that is, the
+ * width without `padding`) of its container box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on `outerWith`
+ * in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich` property.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when using
+ * background image, or auto adapted by default.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4,
+ * 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3,
+ * 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make
+ * simple table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth`
+ * (that is, the width without `padding`) of its
+ * container box.
+ * It is based on `contentWidth` because that each
+ * text fregment is layout based on the `content
+ * box`, where it makes no sense that calculating
+ * width based on `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using
+ * background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine
+ */
+ labelLine?: {
+
+ /**
+ * Whether to show visual guide line.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.show
+ */
+ show?: boolean;
+
+ /**
+ * The length of the first part from visual guide line.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.length
+ */
+ length?: number;
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle
+ */
+ lineStyle?: {
+
+ /**
+ * Line color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.labelLine.lineStyle)
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.color
+ */
+ color?: string;
+
+ /**
+ * line width.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.width
+ */
+ width?: number;
+
+ /**
+ * line type.
+ *
+ * Options are:
+ *
+ * + `'solid'`
+ * + `'dashed'`
+ * + `'dotted'`
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.type
+ */
+ type?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.labelLine.lineStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.lineStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * The style of visual guide line in emphasis status.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * Whether to show visual guide line.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.show
+ */
+ show?: boolean;
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle
+ */
+ lineStyle?: {
+
+ /**
+ * Line color.
+ *
+ * > Color can be represented in RGB, for example
+ * `'rgb(128, 128, 128)'`.
+ * RGBA can be used when you need alpha channel,
+ * for example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported
+ * besides single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.labelLine.emphasis.lineStyle)
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.color
+ */
+ color?: string;
+
+ /**
+ * line width.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.width
+ */
+ width?: number;
+
+ /**
+ * line type.
+ *
+ * Options are:
+ *
+ * + `'solid'`
+ * + `'dashed'`
+ * + `'dotted'`
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.type
+ */
+ type?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.labelLine.emphasis.lineStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of
+ * shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of
+ * shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component
+ * will not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.labelLine.emphasis.lineStyle.opacity
+ */
+ opacity?: number;
+ };
+ };
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of
+ * `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`,
+ * or `'dotted'`. `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label
+ */
+ label?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.show
+ */
+ show?: boolean;
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of
+ * `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4,
+ * 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich`
+ * property. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`,
+ * `verticalAlign` in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when
+ * using background image, or auto adapted by
+ * default.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4,
+ * 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding:
+ * [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify
+ * it.
+ * You may want to use it in some cases like
+ * make simple table or using background image
+ * (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * `width` can also be percent string, like
+ * `'100%'`, which represents the percent of
+ * `contentWidth` (that is, the width without
+ * `padding`) of its container box.
+ * It is based on `contentWidth` because that
+ * each text fregment is layout based on the
+ * `content box`, where it makes no sense that
+ * calculating width based on `outerWith` in
+ * prectice.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like
+ * using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine
+ */
+ labelLine?: {
+
+ /**
+ * Whether to show visual guide line.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.show
+ */
+ show?: boolean;
+
+ /**
+ * The length of the first part from visual guide line.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.length
+ */
+ length?: number;
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle
+ */
+ lineStyle?: {
+
+ /**
+ * Line color.
+ *
+ * > Color can be represented in RGB, for example
+ * `'rgb(128, 128, 128)'`.
+ * RGBA can be used when you need alpha channel,
+ * for example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported
+ * besides single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.labelLine.lineStyle)
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.color
+ */
+ color?: string;
+
+ /**
+ * line width.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.width
+ */
+ width?: number;
+
+ /**
+ * line type.
+ *
+ * Options are:
+ *
+ * + `'solid'`
+ * + `'dashed'`
+ * + `'dotted'`
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.type
+ */
+ type?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.labelLine.lineStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of
+ * shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of
+ * shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component
+ * will not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.lineStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * The style of visual guide line in emphasis status.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * Whether to show visual guide line.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.show
+ */
+ show?: boolean;
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle
+ */
+ lineStyle?: {
+
+ /**
+ * Line color.
+ *
+ * > Color can be represented in RGB, for example
+ * `'rgb(128, 128, 128)'`.
+ * RGBA can be used when you need alpha channel,
+ * for example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for
+ * example `'#ccc'`.
+ * Gradient color and texture are also supported
+ * besides single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.labelLine.emphasis.lineStyle)
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.color
+ */
+ color?: string;
+
+ /**
+ * line width.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.width
+ */
+ width?: number;
+
+ /**
+ * line type.
+ *
+ * Options are:
+ *
+ * + `'solid'`
+ * + `'dashed'`
+ * + `'dotted'`
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.type
+ */
+ type?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with
+ * `shadowColor`,`shadowOffsetX`, `shadowOffsetY`
+ * to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.emphasis.labelLine.emphasis.lineStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color.
+ * Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction
+ * of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction
+ * of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component
+ * will not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.emphasis.labelLine.emphasis.lineStyle.opacity
+ */
+ opacity?: number;
+ };
+ };
+ };
+ };
+
+ /**
+ * tooltip settings in this series data.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip
+ */
+ tooltip?: {
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The position of the tooltip's floating layer, which would
+ * follow the position of mouse by default.
+ *
+ * Options:
+ *
+ * + `Array`
+ *
+ * Display the position of tooltip's floating layer through
+ * array, which supports absolute position and relative
+ * percentage.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
+ *
+ * + `Function`
+ *
+ * Callback function in the following form:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
+ *
+ * **Parameters:**
+ * point: Mouse position.
+ * param: The same as formatter.
+ * dom: The DOM object of tooltip.
+ * rect: It is valid only when mouse is on graphic elements,
+ * which stands for a bounding box with `x`, `y`, `width`,
+ * and `height`.
+ * size: The size of dom echarts container.
+ * For example: `{contentSize: [width, height], viewSize:
+ * [width, height]}`.
+ *
+ * **Return:**
+ * Return value is an array standing for tooltip position,
+ * which can be absolute pixels, or relative percentage.
+ * Or can be an object, like `{left: 10, top: 30}`, or `{right:
+ * '20%', bottom: 40}`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
+ *
+ * Or:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
+ *
+ * + `'inside'`
+ *
+ * Center position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'top'`
+ *
+ * Top position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'left'`
+ *
+ * Left position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'right'`
+ *
+ * Right position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'bottom'`
+ *
+ * Bottom position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.position
+ */
+ position?: any[] | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The content formatter of tooltip's floating layer which
+ * supports string template and callback function.
+ *
+ * **1\. String template**
+ *
+ * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
+ * and `{e}`, which stands for series name, data name and
+ * data value and ect. When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is set to be `'axis'`, there may be data from multiple
+ * series.
+ * In this time, series index can be refered as `{a0}`,
+ * `{a1}`, or `{a2}`.
+ *
+ * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
+ * different series types:
+ *
+ * + Line (area) charts, bar (column) charts, K charts:
+ * `{a}` for series name, `{b}` for category name, `{c}`
+ * for data value, `{d}` for none;
+ *
+ * + Scatter (bubble) charts: `{a}` for series name, `{b}`
+ * for data name, `{c}` for data value, `{d}` for none;
+ *
+ * + Map: `{a}` for series name, `{b}` for area name, `{c}`
+ * for merging data, `{d}` for none;
+ *
+ * + Pie charts, gauge charts, funnel charts: `{a}` for
+ * series name, `{b}` for data item name, `{c}` for data
+ * value, `{d}` for percentage.
+ *
+ * **Example:**
+ *
+ * ```
+ * formatter: '{b0}: {c0}
{b1}: {c1}'
+ *
+ * ```
+ *
+ * **2\. Callback function**
+ *
+ * The format of callback function:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
+ *
+ * The first parameter `params` is the data that the formatter
+ * needs. Its format is shown as follows:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
+ *
+ * When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'axis'`, or when tooltip is triggered by
+ * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
+ * , `params` is the data array of multiple series.
+ * The content of each item of the array is the same as
+ * above. Besides,
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
+ *
+ * **Note:** Using array to present all the parameters in
+ * ECharts 2.x is not supported anymore.
+ *
+ * The second parameter `ticket` is the asynchronous callback
+ * flag which should be used along with the third parameter
+ * `callback` when it is used.
+ *
+ * The third parameter `callback` is asynchronous callback.
+ * When the content of tooltip is acquired asynchronously,
+ * `ticket` and `htm` as introduced above can be used to
+ * update tooltip with callback.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The background color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * "rgba(50,50,50,0.7)"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.backgroundColor
+ */
+ backgroundColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * '#333'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border width of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The floating layer of tooltip space around content.
+ * The unit is px.
+ * Default values for each position are 5.
+ * And they can be set to different values with left, right,
+ * top, and bottom.
+ *
+ * Examples:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip)
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.padding
+ */
+ padding?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The text syle of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle
+ */
+ textStyle?: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 14
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.funnel.data.tooltip.textStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.textStyle.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * Extra CSS style for floating layer.
+ * The following is an example for adding shadow.
+ *
+ * ```
+ * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
+ *
+ * ```
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-funnel.data.tooltip.extraCssText
+ */
+ extraCssText?: string;
+ };
+ }
+ }
}
}
diff --git a/types/echarts/options/series/graph.d.ts b/types/echarts/options/series/graph.d.ts
index bbfa4ad84f..784a6f6d6b 100644
--- a/types/echarts/options/series/graph.d.ts
+++ b/types/echarts/options/series/graph.d.ts
@@ -5831,2341 +5831,7 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data
*/
- data?: {
-
- /**
- * Name of data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.name
- */
- name?: string;
-
- /**
- * `x` value of node position.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.x
- */
- x?: number;
-
- /**
- * `y` value of node position.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.y
- */
- y?: number;
-
- /**
- * If node are fixed when doing force directed layout.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.fixed
- */
- fixed?: boolean;
-
- /**
- * Value of data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.value
- */
- value?: any[] | number;
-
- /**
- * Index of category which the data item belongs to.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.category
- */
- category?: number;
-
- /**
- * Symbol of node of this category.
- *
- * Icon types provided by ECharts includes `'circle'`, `'rect'`,
- * `'roundRect'`, `'triangle'`, `'diamond'`, `'pin'`, `'arrow'`,
- * `'none'`
- *
- * It can be set to an image with `'image://url'` , in which
- * URL is the link to an image, or `dataURI` of an image.
- *
- * An image URL example:
- *
- * ```
- * 'image://http://xxx.xxx.xxx/a/b.png'
- *
- * ```
- *
- * A `dataURI` example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data)
- *
- * Icons can be set to arbitrary vector path via `'path://'`
- * in ECharts.
- * As compared with raster image, vector paths prevent from
- * jagging and blurring when scaled, and have a better control
- * over changing colors.
- * Size of vectoer icon will be adapted automatically.
- * Refer to
- * [SVG PathData](http://www.w3.org/TR/SVG/paths.html#PathData)
- * for more information about format of path.
- * You may export vector paths from tools like Adobe Illustrator.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.symbol
- */
- symbol?: string;
-
- /**
- * node of this category symbol size.
- * It can be set to single numbers like `10`, or use an array
- * to represent width and height.
- * For example, `[20, 10]` means symbol width is `20`, and height
- * is`10`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.symbolSize
- */
- symbolSize?: any[] | number;
-
- /**
- * Rotate degree of node of this category symbol.
- * Note that when `symbol` is set to be `'arrow'` in `markLine`,
- * `symbolRotate` value will be ignored, and compulsively use
- * tangent angle.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.symbolRotate
- */
- symbolRotate?: number;
-
- /**
- * Whether to keep aspect for symbols in the form of `path://`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.symbolKeepAspect
- */
- symbolKeepAspect?: boolean;
-
- /**
- * Offset of node of this category symbol relative to original
- * position.
- * By default, symbol will be put in the center position of
- * data.
- * But if symbol is from user-defined vector path or image,
- * you may not expect symbol to be in center.
- * In this case, you may use this attribute to set offset to
- * default position.
- * It can be in absolute pixel value, or in relative percentage
- * value.
- *
- * For example, `[0, '50%']` means to move upside side position
- * of symbol height.
- * It can be used to make the arrow in the bottom to be at data
- * position when symbol is pin.
- *
- *
- * @default
- * [0, 0]
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.symbolOffset
- */
- symbolOffset?: any[];
-
- /**
- * The style of this node.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle
- */
- itemStyle?: {
-
- /**
- * color. Color is taken from
- * [option.color Palette](https://ecomfe.github.io/echarts-doc/public/en/option.html#color)
- * by default.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for example
- * `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
- * `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will not
- * be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * The label style of this node.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values to
- * represent position of label relative to top-left corner
- * of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.distance
- */
- distance?: number;
-
- /**
- * Rotate label, from -90 degree to 90, positive value represents
- * rotate anti-clockwise.
- *
- * See:
- * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rotate
- */
- rotate?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.offset
- */
- offset?: any[];
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent level
- * will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight` in
- * parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
- * right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`, which
- * represents the percent of `contentWidth` (that is, the
- * width without `padding`) of its container box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on `outerWith`
- * in prectice.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich` property.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when using
- * background image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4,
- * 4]`.
- * + `padding: [3, 4]`: represents `padding: [3,
- * 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make
- * simple table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth`
- * (that is, the width without `padding`) of its
- * container box.
- * It is based on `contentWidth` because that each
- * text fregment is layout based on the `content
- * box`, where it makes no sense that calculating
- * width based on `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using
- * background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis
- */
- emphasis?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle
- */
- itemStyle?: {
-
- /**
- * color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of
- * `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`,
- * or `'dotted'`. `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values
- * to represent position of label relative to top-left
- * corner of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.distance
- */
- distance?: number;
-
- /**
- * Rotate label, from -90 degree to 90, positive value
- * represents rotate anti-clockwise.
- *
- * See:
- * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rotate
- */
- rotate?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.offset
- */
- offset?: any[];
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of
- * `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4,
- * 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich`
- * property. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`,
- * `verticalAlign` in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when
- * using background image, or auto adapted by
- * default.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4,
- * 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding:
- * [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify
- * it.
- * You may want to use it in some cases like
- * make simple table or using background image
- * (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * `width` can also be percent string, like
- * `'100%'`, which represents the percent of
- * `contentWidth` (that is, the width without
- * `padding`) of its container box.
- * It is based on `contentWidth` because that
- * each text fregment is layout based on the
- * `content box`, where it makes no sense that
- * calculating width based on `outerWith` in
- * prectice.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like
- * using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
- };
-
- /**
- * tooltip settings in this series data.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip
- */
- tooltip?: {
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The position of the tooltip's floating layer, which would
- * follow the position of mouse by default.
- *
- * Options:
- *
- * + `Array`
- *
- * Display the position of tooltip's floating layer through
- * array, which supports absolute position and relative
- * percentage.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
- *
- * + `Function`
- *
- * Callback function in the following form:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
- *
- * **Parameters:**
- * point: Mouse position.
- * param: The same as formatter.
- * dom: The DOM object of tooltip.
- * rect: It is valid only when mouse is on graphic elements,
- * which stands for a bounding box with `x`, `y`, `width`,
- * and `height`.
- * size: The size of dom echarts container.
- * For example: `{contentSize: [width, height], viewSize:
- * [width, height]}`.
- *
- * **Return:**
- * Return value is an array standing for tooltip position,
- * which can be absolute pixels, or relative percentage.
- * Or can be an object, like `{left: 10, top: 30}`, or `{right:
- * '20%', bottom: 40}`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
- *
- * Or:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
- *
- * + `'inside'`
- *
- * Center position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'top'`
- *
- * Top position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'left'`
- *
- * Left position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'right'`
- *
- * Right position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'bottom'`
- *
- * Bottom position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.position
- */
- position?: any[] | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The content formatter of tooltip's floating layer which
- * supports string template and callback function.
- *
- * **1\. String template**
- *
- * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
- * and `{e}`, which stands for series name, data name and
- * data value and ect. When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is set to be `'axis'`, there may be data from multiple
- * series.
- * In this time, series index can be refered as `{a0}`,
- * `{a1}`, or `{a2}`.
- *
- * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
- * different series types:
- *
- * + Line (area) charts, bar (column) charts, K charts:
- * `{a}` for series name, `{b}` for category name, `{c}`
- * for data value, `{d}` for none;
- *
- * + Scatter (bubble) charts: `{a}` for series name, `{b}`
- * for data name, `{c}` for data value, `{d}` for none;
- *
- * + Map: `{a}` for series name, `{b}` for area name, `{c}`
- * for merging data, `{d}` for none;
- *
- * + Pie charts, gauge charts, funnel charts: `{a}` for
- * series name, `{b}` for data item name, `{c}` for data
- * value, `{d}` for percentage.
- *
- * **Example:**
- *
- * ```
- * formatter: '{b0}: {c0}
{b1}: {c1}'
- *
- * ```
- *
- * **2\. Callback function**
- *
- * The format of callback function:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
- *
- * The first parameter `params` is the data that the formatter
- * needs. Its format is shown as follows:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
- *
- * When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'axis'`, or when tooltip is triggered by
- * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
- * , `params` is the data array of multiple series.
- * The content of each item of the array is the same as
- * above. Besides,
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
- *
- * **Note:** Using array to present all the parameters in
- * ECharts 2.x is not supported anymore.
- *
- * The second parameter `ticket` is the asynchronous callback
- * flag which should be used along with the third parameter
- * `callback` when it is used.
- *
- * The third parameter `callback` is asynchronous callback.
- * When the content of tooltip is acquired asynchronously,
- * `ticket` and `htm` as introduced above can be used to
- * update tooltip with callback.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.formatter
- */
- formatter?: Function | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The background color of tooltip's floating layer.
- *
- *
- * @default
- * "rgba(50,50,50,0.7)"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.backgroundColor
- */
- backgroundColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border color of tooltip's floating layer.
- *
- *
- * @default
- * '#333'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.borderColor
- */
- borderColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border width of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.borderWidth
- */
- borderWidth?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The floating layer of tooltip space around content.
- * The unit is px.
- * Default values for each position are 5.
- * And they can be set to different values with left, right,
- * top, and bottom.
- *
- * Examples:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.padding
- */
- padding?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The text syle of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle
- */
- textStyle?: {
-
- /**
- * text color.
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 14
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip.textStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * Extra CSS style for floating layer.
- * The following is an example for adding shadow.
- *
- * ```
- * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
- *
- * ```
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.extraCssText
- */
- extraCssText?: string;
- };
- };
+ data?: SeriesGraph.DataObject[];
/**
* Alias of
@@ -22088,5 +19754,2343 @@ declare namespace echarts {
extraCssText?: string;
};
}
+
+ namespace SeriesGraph {
+ interface DataObject {
+
+ /**
+ * Name of data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.name
+ */
+ name?: string;
+
+ /**
+ * `x` value of node position.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.x
+ */
+ x?: number;
+
+ /**
+ * `y` value of node position.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.y
+ */
+ y?: number;
+
+ /**
+ * If node are fixed when doing force directed layout.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.fixed
+ */
+ fixed?: boolean;
+
+ /**
+ * Value of data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.value
+ */
+ value?: any[] | number;
+
+ /**
+ * Index of category which the data item belongs to.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.category
+ */
+ category?: number;
+
+ /**
+ * Symbol of node of this category.
+ *
+ * Icon types provided by ECharts includes `'circle'`, `'rect'`,
+ * `'roundRect'`, `'triangle'`, `'diamond'`, `'pin'`, `'arrow'`,
+ * `'none'`
+ *
+ * It can be set to an image with `'image://url'` , in which
+ * URL is the link to an image, or `dataURI` of an image.
+ *
+ * An image URL example:
+ *
+ * ```
+ * 'image://http://xxx.xxx.xxx/a/b.png'
+ *
+ * ```
+ *
+ * A `dataURI` example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data)
+ *
+ * Icons can be set to arbitrary vector path via `'path://'`
+ * in ECharts.
+ * As compared with raster image, vector paths prevent from
+ * jagging and blurring when scaled, and have a better control
+ * over changing colors.
+ * Size of vectoer icon will be adapted automatically.
+ * Refer to
+ * [SVG PathData](http://www.w3.org/TR/SVG/paths.html#PathData)
+ * for more information about format of path.
+ * You may export vector paths from tools like Adobe Illustrator.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.symbol
+ */
+ symbol?: string;
+
+ /**
+ * node of this category symbol size.
+ * It can be set to single numbers like `10`, or use an array
+ * to represent width and height.
+ * For example, `[20, 10]` means symbol width is `20`, and height
+ * is`10`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.symbolSize
+ */
+ symbolSize?: any[] | number;
+
+ /**
+ * Rotate degree of node of this category symbol.
+ * Note that when `symbol` is set to be `'arrow'` in `markLine`,
+ * `symbolRotate` value will be ignored, and compulsively use
+ * tangent angle.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.symbolRotate
+ */
+ symbolRotate?: number;
+
+ /**
+ * Whether to keep aspect for symbols in the form of `path://`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.symbolKeepAspect
+ */
+ symbolKeepAspect?: boolean;
+
+ /**
+ * Offset of node of this category symbol relative to original
+ * position.
+ * By default, symbol will be put in the center position of
+ * data.
+ * But if symbol is from user-defined vector path or image,
+ * you may not expect symbol to be in center.
+ * In this case, you may use this attribute to set offset to
+ * default position.
+ * It can be in absolute pixel value, or in relative percentage
+ * value.
+ *
+ * For example, `[0, '50%']` means to move upside side position
+ * of symbol height.
+ * It can be used to make the arrow in the bottom to be at data
+ * position when symbol is pin.
+ *
+ *
+ * @default
+ * [0, 0]
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.symbolOffset
+ */
+ symbolOffset?: any[];
+
+ /**
+ * The style of this node.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color. Color is taken from
+ * [option.color Palette](https://ecomfe.github.io/echarts-doc/public/en/option.html#color)
+ * by default.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for example
+ * `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
+ * `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will not
+ * be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * The label style of this node.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values to
+ * represent position of label relative to top-left corner
+ * of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Rotate label, from -90 degree to 90, positive value represents
+ * rotate anti-clockwise.
+ *
+ * See:
+ * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rotate
+ */
+ rotate?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent level
+ * will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight` in
+ * parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
+ * right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`, which
+ * represents the percent of `contentWidth` (that is, the
+ * width without `padding`) of its container box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on `outerWith`
+ * in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich` property.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when using
+ * background image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4,
+ * 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3,
+ * 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make
+ * simple table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth`
+ * (that is, the width without `padding`) of its
+ * container box.
+ * It is based on `contentWidth` because that each
+ * text fregment is layout based on the `content
+ * box`, where it makes no sense that calculating
+ * width based on `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using
+ * background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of
+ * `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`,
+ * or `'dotted'`. `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values
+ * to represent position of label relative to top-left
+ * corner of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Rotate label, from -90 degree to 90, positive value
+ * represents rotate anti-clockwise.
+ *
+ * See:
+ * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rotate
+ */
+ rotate?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of
+ * `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4,
+ * 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich`
+ * property. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`,
+ * `verticalAlign` in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when
+ * using background image, or auto adapted by
+ * default.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4,
+ * 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding:
+ * [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify
+ * it.
+ * You may want to use it in some cases like
+ * make simple table or using background image
+ * (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * `width` can also be percent string, like
+ * `'100%'`, which represents the percent of
+ * `contentWidth` (that is, the width without
+ * `padding`) of its container box.
+ * It is based on `contentWidth` because that
+ * each text fregment is layout based on the
+ * `content box`, where it makes no sense that
+ * calculating width based on `outerWith` in
+ * prectice.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like
+ * using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+ };
+
+ /**
+ * tooltip settings in this series data.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip
+ */
+ tooltip?: {
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The position of the tooltip's floating layer, which would
+ * follow the position of mouse by default.
+ *
+ * Options:
+ *
+ * + `Array`
+ *
+ * Display the position of tooltip's floating layer through
+ * array, which supports absolute position and relative
+ * percentage.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
+ *
+ * + `Function`
+ *
+ * Callback function in the following form:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
+ *
+ * **Parameters:**
+ * point: Mouse position.
+ * param: The same as formatter.
+ * dom: The DOM object of tooltip.
+ * rect: It is valid only when mouse is on graphic elements,
+ * which stands for a bounding box with `x`, `y`, `width`,
+ * and `height`.
+ * size: The size of dom echarts container.
+ * For example: `{contentSize: [width, height], viewSize:
+ * [width, height]}`.
+ *
+ * **Return:**
+ * Return value is an array standing for tooltip position,
+ * which can be absolute pixels, or relative percentage.
+ * Or can be an object, like `{left: 10, top: 30}`, or `{right:
+ * '20%', bottom: 40}`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
+ *
+ * Or:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
+ *
+ * + `'inside'`
+ *
+ * Center position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'top'`
+ *
+ * Top position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'left'`
+ *
+ * Left position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'right'`
+ *
+ * Right position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'bottom'`
+ *
+ * Bottom position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.position
+ */
+ position?: any[] | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The content formatter of tooltip's floating layer which
+ * supports string template and callback function.
+ *
+ * **1\. String template**
+ *
+ * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
+ * and `{e}`, which stands for series name, data name and
+ * data value and ect. When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is set to be `'axis'`, there may be data from multiple
+ * series.
+ * In this time, series index can be refered as `{a0}`,
+ * `{a1}`, or `{a2}`.
+ *
+ * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
+ * different series types:
+ *
+ * + Line (area) charts, bar (column) charts, K charts:
+ * `{a}` for series name, `{b}` for category name, `{c}`
+ * for data value, `{d}` for none;
+ *
+ * + Scatter (bubble) charts: `{a}` for series name, `{b}`
+ * for data name, `{c}` for data value, `{d}` for none;
+ *
+ * + Map: `{a}` for series name, `{b}` for area name, `{c}`
+ * for merging data, `{d}` for none;
+ *
+ * + Pie charts, gauge charts, funnel charts: `{a}` for
+ * series name, `{b}` for data item name, `{c}` for data
+ * value, `{d}` for percentage.
+ *
+ * **Example:**
+ *
+ * ```
+ * formatter: '{b0}: {c0}
{b1}: {c1}'
+ *
+ * ```
+ *
+ * **2\. Callback function**
+ *
+ * The format of callback function:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
+ *
+ * The first parameter `params` is the data that the formatter
+ * needs. Its format is shown as follows:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
+ *
+ * When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'axis'`, or when tooltip is triggered by
+ * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
+ * , `params` is the data array of multiple series.
+ * The content of each item of the array is the same as
+ * above. Besides,
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
+ *
+ * **Note:** Using array to present all the parameters in
+ * ECharts 2.x is not supported anymore.
+ *
+ * The second parameter `ticket` is the asynchronous callback
+ * flag which should be used along with the third parameter
+ * `callback` when it is used.
+ *
+ * The third parameter `callback` is asynchronous callback.
+ * When the content of tooltip is acquired asynchronously,
+ * `ticket` and `htm` as introduced above can be used to
+ * update tooltip with callback.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The background color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * "rgba(50,50,50,0.7)"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.backgroundColor
+ */
+ backgroundColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * '#333'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border width of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The floating layer of tooltip space around content.
+ * The unit is px.
+ * Default values for each position are 5.
+ * And they can be set to different values with left, right,
+ * top, and bottom.
+ *
+ * Examples:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip)
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.padding
+ */
+ padding?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The text syle of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle
+ */
+ textStyle?: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 14
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.graph.data.tooltip.textStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.textStyle.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * Extra CSS style for floating layer.
+ * The following is an example for adding shadow.
+ *
+ * ```
+ * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
+ *
+ * ```
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.tooltip.extraCssText
+ */
+ extraCssText?: string;
+ };
+ }
+ }
}
}
diff --git a/types/echarts/options/series/heatmap.d.ts b/types/echarts/options/series/heatmap.d.ts
index 1976c77ad3..af38c31e17 100644
--- a/types/echarts/options/series/heatmap.d.ts
+++ b/types/echarts/options/series/heatmap.d.ts
@@ -2015,1766 +2015,10 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data
*/
- data?: {
-
- /**
- * Name of data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.name
- */
- name?: string;
-
- /**
- * Value of data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.value
- */
- value?: any[];
-
- /**
- * It is valid with
- * [coordinateSystem](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.coordinateSystem)
- * of 'cartesian2d' value.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values to
- * represent position of label relative to top-left corner
- * of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * "inside"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.distance
- */
- distance?: number;
-
- /**
- * Rotate label, from -90 degree to 90, positive value represents
- * rotate anti-clockwise.
- *
- * See:
- * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rotate
- */
- rotate?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.offset
- */
- offset?: any[];
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent level
- * will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight` in
- * parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
- * right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`, which
- * represents the percent of `contentWidth` (that is, the
- * width without `padding`) of its container box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on `outerWith`
- * in prectice.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich` property.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when using
- * background image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4,
- * 4]`.
- * + `padding: [3, 4]`: represents `padding: [3,
- * 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make
- * simple table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth`
- * (that is, the width without `padding`) of its
- * container box.
- * It is based on `contentWidth` because that each
- * text fregment is layout based on the `content
- * box`, where it makes no sense that calculating
- * width based on `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using
- * background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * Style of a single data point. It is valid with
- * [coordinateSystem](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.coordinateSystem)
- * of 'cartesian2d' value.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle
- */
- itemStyle?: {
-
- /**
- * color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for example
- * `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
- * `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will not
- * be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis
- */
- emphasis?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle
- */
- itemStyle?: {
-
- /**
- * color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of
- * `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`,
- * or `'dotted'`. `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values
- * to represent position of label relative to top-left
- * corner of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * "inside"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.distance
- */
- distance?: number;
-
- /**
- * Rotate label, from -90 degree to 90, positive value
- * represents rotate anti-clockwise.
- *
- * See:
- * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rotate
- */
- rotate?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.offset
- */
- offset?: any[];
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of
- * `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4,
- * 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich`
- * property. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`,
- * `verticalAlign` in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when
- * using background image, or auto adapted by
- * default.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4,
- * 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding:
- * [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify
- * it.
- * You may want to use it in some cases like
- * make simple table or using background image
- * (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * `width` can also be percent string, like
- * `'100%'`, which represents the percent of
- * `contentWidth` (that is, the width without
- * `padding`) of its container box.
- * It is based on `contentWidth` because that
- * each text fregment is layout based on the
- * `content box`, where it makes no sense that
- * calculating width based on `outerWith` in
- * prectice.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like
- * using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
- };
- };
+ data?: (
+ (void | number | string | SeriesHeatmap.DataObject)[]
+ | (void | number | string | SeriesHeatmap.DataObject)[][]
+ );
/**
* Mark point in a chart.
@@ -15344,5 +13588,1768 @@ declare namespace echarts {
extraCssText?: string;
};
}
+
+ namespace SeriesHeatmap {
+ interface DataObject {
+
+ /**
+ * Name of data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.name
+ */
+ name?: string;
+
+ /**
+ * Value of data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.value
+ */
+ value?: any[];
+
+ /**
+ * It is valid with
+ * [coordinateSystem](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.coordinateSystem)
+ * of 'cartesian2d' value.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values to
+ * represent position of label relative to top-left corner
+ * of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * "inside"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Rotate label, from -90 degree to 90, positive value represents
+ * rotate anti-clockwise.
+ *
+ * See:
+ * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rotate
+ */
+ rotate?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent level
+ * will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight` in
+ * parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
+ * right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`, which
+ * represents the percent of `contentWidth` (that is, the
+ * width without `padding`) of its container box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on `outerWith`
+ * in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich` property.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when using
+ * background image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4,
+ * 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3,
+ * 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make
+ * simple table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth`
+ * (that is, the width without `padding`) of its
+ * container box.
+ * It is based on `contentWidth` because that each
+ * text fregment is layout based on the `content
+ * box`, where it makes no sense that calculating
+ * width based on `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using
+ * background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * Style of a single data point. It is valid with
+ * [coordinateSystem](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.coordinateSystem)
+ * of 'cartesian2d' value.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for example
+ * `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
+ * `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will not
+ * be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of
+ * `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`,
+ * or `'dotted'`. `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values
+ * to represent position of label relative to top-left
+ * corner of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * "inside"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Rotate label, from -90 degree to 90, positive value
+ * represents rotate anti-clockwise.
+ *
+ * See:
+ * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rotate
+ */
+ rotate?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of
+ * `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4,
+ * 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich`
+ * property. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`,
+ * `verticalAlign` in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when
+ * using background image, or auto adapted by
+ * default.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4,
+ * 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding:
+ * [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify
+ * it.
+ * You may want to use it in some cases like
+ * make simple table or using background image
+ * (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * `width` can also be percent string, like
+ * `'100%'`, which represents the percent of
+ * `contentWidth` (that is, the width without
+ * `padding`) of its container box.
+ * It is based on `contentWidth` because that
+ * each text fregment is layout based on the
+ * `content box`, where it makes no sense that
+ * calculating width based on `outerWith` in
+ * prectice.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like
+ * using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-heatmap.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+ };
+ }
+ }
}
}
diff --git a/types/echarts/options/series/line.d.ts b/types/echarts/options/series/line.d.ts
index 60fcd01e65..7d9a546fae 100644
--- a/types/echarts/options/series/line.d.ts
+++ b/types/echarts/options/series/line.d.ts
@@ -2701,2273 +2701,10 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data
*/
- data?: {
-
- /**
- * The name of data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.name
- */
- name?: string;
-
- /**
- * The value of a single data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.value
- */
- value?: number;
-
- /**
- * Symbol of single data.
- *
- * Icon types provided by ECharts includes `'circle'`, `'rect'`,
- * `'roundRect'`, `'triangle'`, `'diamond'`, `'pin'`, `'arrow'`,
- * `'none'`
- *
- * It can be set to an image with `'image://url'` , in which
- * URL is the link to an image, or `dataURI` of an image.
- *
- * An image URL example:
- *
- * ```
- * 'image://http://xxx.xxx.xxx/a/b.png'
- *
- * ```
- *
- * A `dataURI` example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data)
- *
- * Icons can be set to arbitrary vector path via `'path://'`
- * in ECharts.
- * As compared with raster image, vector paths prevent from
- * jagging and blurring when scaled, and have a better control
- * over changing colors.
- * Size of vectoer icon will be adapted automatically.
- * Refer to
- * [SVG PathData](http://www.w3.org/TR/SVG/paths.html#PathData)
- * for more information about format of path.
- * You may export vector paths from tools like Adobe Illustrator.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data)
- *
- *
- * @default
- * "circle"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.symbol
- */
- symbol?: string;
-
- /**
- * single data symbol size.
- * It can be set to single numbers like `10`, or use an array
- * to represent width and height.
- * For example, `[20, 10]` means symbol width is `20`, and height
- * is`10`.
- *
- *
- * @default
- * 4
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.symbolSize
- */
- symbolSize?: any[] | number;
-
- /**
- * Rotate degree of single data symbol.
- * Note that when `symbol` is set to be `'arrow'` in `markLine`,
- * `symbolRotate` value will be ignored, and compulsively use
- * tangent angle.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.symbolRotate
- */
- symbolRotate?: number;
-
- /**
- * Whether to keep aspect for symbols in the form of `path://`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.symbolKeepAspect
- */
- symbolKeepAspect?: boolean;
-
- /**
- * Offset of single data symbol relative to original position.
- * By default, symbol will be put in the center position of
- * data.
- * But if symbol is from user-defined vector path or image,
- * you may not expect symbol to be in center.
- * In this case, you may use this attribute to set offset to
- * default position.
- * It can be in absolute pixel value, or in relative percentage
- * value.
- *
- * For example, `[0, '50%']` means to move upside side position
- * of symbol height.
- * It can be used to make the arrow in the bottom to be at data
- * position when symbol is pin.
- *
- *
- * @default
- * [0, 0]
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.symbolOffset
- */
- symbolOffset?: any[];
-
- /**
- * The style of the text of single data point.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values to
- * represent position of label relative to top-left corner
- * of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * "top"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.distance
- */
- distance?: number;
-
- /**
- * Rotate label, from -90 degree to 90, positive value represents
- * rotate anti-clockwise.
- *
- * See:
- * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rotate
- */
- rotate?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.offset
- */
- offset?: any[];
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent level
- * will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight` in
- * parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
- * right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`, which
- * represents the percent of `contentWidth` (that is, the
- * width without `padding`) of its container box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on `outerWith`
- * in prectice.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich` property.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when using
- * background image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4,
- * 4]`.
- * + `padding: [3, 4]`: represents `padding: [3,
- * 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make
- * simple table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth`
- * (that is, the width without `padding`) of its
- * container box.
- * It is based on `contentWidth` because that each
- * text fregment is layout based on the `content
- * box`, where it makes no sense that calculating
- * width based on `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using
- * background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * The style of the symbol of single data point.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle
- */
- itemStyle?: {
-
- /**
- * Bar color..
- *
- *
- * @default
- * "auto"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.color
- */
- color?: string;
-
- /**
- * The bodrder color of bar.
- *
- *
- * @default
- * '#000'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.barBorderColor
- */
- barBorderColor?: string;
-
- /**
- * The bodrder width of bar. defaults to have no border.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.barBorderWidth
- */
- barBorderWidth?: number;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will not
- * be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis
- */
- emphasis?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle
- */
- itemStyle?: {
-
- /**
- * Bar color..
- *
- *
- * @default
- * "auto"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.color
- */
- color?: string;
-
- /**
- * The bodrder color of bar.
- *
- *
- * @default
- * '#000'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.barBorderColor
- */
- barBorderColor?: string;
-
- /**
- * The bodrder width of bar.
- * defaults to have no border.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.barBorderWidth
- */
- barBorderWidth?: number;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values
- * to represent position of label relative to top-left
- * corner of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.distance
- */
- distance?: number;
-
- /**
- * Rotate label, from -90 degree to 90, positive value
- * represents rotate anti-clockwise.
- *
- * See:
- * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rotate
- */
- rotate?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.offset
- */
- offset?: any[];
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of
- * `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4,
- * 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich`
- * property. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`,
- * `verticalAlign` in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when
- * using background image, or auto adapted by
- * default.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4,
- * 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding:
- * [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify
- * it.
- * You may want to use it in some cases like
- * make simple table or using background image
- * (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * `width` can also be percent string, like
- * `'100%'`, which represents the percent of
- * `contentWidth` (that is, the width without
- * `padding`) of its container box.
- * It is based on `contentWidth` because that
- * each text fregment is layout based on the
- * `content box`, where it makes no sense that
- * calculating width based on `outerWith` in
- * prectice.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like
- * using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
- };
-
- /**
- * tooltip settings in this series data.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip
- */
- tooltip?: {
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The position of the tooltip's floating layer, which would
- * follow the position of mouse by default.
- *
- * Options:
- *
- * + `Array`
- *
- * Display the position of tooltip's floating layer through
- * array, which supports absolute position and relative
- * percentage.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
- *
- * + `Function`
- *
- * Callback function in the following form:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
- *
- * **Parameters:**
- * point: Mouse position.
- * param: The same as formatter.
- * dom: The DOM object of tooltip.
- * rect: It is valid only when mouse is on graphic elements,
- * which stands for a bounding box with `x`, `y`, `width`,
- * and `height`.
- * size: The size of dom echarts container.
- * For example: `{contentSize: [width, height], viewSize:
- * [width, height]}`.
- *
- * **Return:**
- * Return value is an array standing for tooltip position,
- * which can be absolute pixels, or relative percentage.
- * Or can be an object, like `{left: 10, top: 30}`, or `{right:
- * '20%', bottom: 40}`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
- *
- * Or:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
- *
- * + `'inside'`
- *
- * Center position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'top'`
- *
- * Top position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'left'`
- *
- * Left position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'right'`
- *
- * Right position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'bottom'`
- *
- * Bottom position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.position
- */
- position?: any[] | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The content formatter of tooltip's floating layer which
- * supports string template and callback function.
- *
- * **1\. String template**
- *
- * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
- * and `{e}`, which stands for series name, data name and
- * data value and ect. When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is set to be `'axis'`, there may be data from multiple
- * series.
- * In this time, series index can be refered as `{a0}`,
- * `{a1}`, or `{a2}`.
- *
- * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
- * different series types:
- *
- * + Line (area) charts, bar (column) charts, K charts:
- * `{a}` for series name, `{b}` for category name, `{c}`
- * for data value, `{d}` for none;
- *
- * + Scatter (bubble) charts: `{a}` for series name, `{b}`
- * for data name, `{c}` for data value, `{d}` for none;
- *
- * + Map: `{a}` for series name, `{b}` for area name, `{c}`
- * for merging data, `{d}` for none;
- *
- * + Pie charts, gauge charts, funnel charts: `{a}` for
- * series name, `{b}` for data item name, `{c}` for data
- * value, `{d}` for percentage.
- *
- * **Example:**
- *
- * ```
- * formatter: '{b0}: {c0}
{b1}: {c1}'
- *
- * ```
- *
- * **2\. Callback function**
- *
- * The format of callback function:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
- *
- * The first parameter `params` is the data that the formatter
- * needs. Its format is shown as follows:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
- *
- * When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'axis'`, or when tooltip is triggered by
- * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
- * , `params` is the data array of multiple series.
- * The content of each item of the array is the same as
- * above. Besides,
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
- *
- * **Note:** Using array to present all the parameters in
- * ECharts 2.x is not supported anymore.
- *
- * The second parameter `ticket` is the asynchronous callback
- * flag which should be used along with the third parameter
- * `callback` when it is used.
- *
- * The third parameter `callback` is asynchronous callback.
- * When the content of tooltip is acquired asynchronously,
- * `ticket` and `htm` as introduced above can be used to
- * update tooltip with callback.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.formatter
- */
- formatter?: Function | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The background color of tooltip's floating layer.
- *
- *
- * @default
- * "rgba(50,50,50,0.7)"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.backgroundColor
- */
- backgroundColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border color of tooltip's floating layer.
- *
- *
- * @default
- * '#333'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.borderColor
- */
- borderColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border width of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.borderWidth
- */
- borderWidth?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The floating layer of tooltip space around content.
- * The unit is px.
- * Default values for each position are 5.
- * And they can be set to different values with left, right,
- * top, and bottom.
- *
- * Examples:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.padding
- */
- padding?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The text syle of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle
- */
- textStyle?: {
-
- /**
- * text color.
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 14
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip.textStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * Extra CSS style for floating layer.
- * The following is an example for adding shadow.
- *
- * ```
- * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
- *
- * ```
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.extraCssText
- */
- extraCssText?: string;
- };
- };
+ data?: (
+ (void | string | number | SeriesLine.DataObject)[]
+ | (void | string | number | SeriesLine.DataObject)[][]
+ );
/**
* Mark point in a chart.
@@ -17078,5 +14815,2275 @@ declare namespace echarts {
extraCssText?: string;
};
}
+
+ namespace SeriesLine {
+ interface DataObject {
+
+ /**
+ * The name of data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.name
+ */
+ name?: string;
+
+ /**
+ * The value of a single data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.value
+ */
+ value?: number;
+
+ /**
+ * Symbol of single data.
+ *
+ * Icon types provided by ECharts includes `'circle'`, `'rect'`,
+ * `'roundRect'`, `'triangle'`, `'diamond'`, `'pin'`, `'arrow'`,
+ * `'none'`
+ *
+ * It can be set to an image with `'image://url'` , in which
+ * URL is the link to an image, or `dataURI` of an image.
+ *
+ * An image URL example:
+ *
+ * ```
+ * 'image://http://xxx.xxx.xxx/a/b.png'
+ *
+ * ```
+ *
+ * A `dataURI` example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data)
+ *
+ * Icons can be set to arbitrary vector path via `'path://'`
+ * in ECharts.
+ * As compared with raster image, vector paths prevent from
+ * jagging and blurring when scaled, and have a better control
+ * over changing colors.
+ * Size of vectoer icon will be adapted automatically.
+ * Refer to
+ * [SVG PathData](http://www.w3.org/TR/SVG/paths.html#PathData)
+ * for more information about format of path.
+ * You may export vector paths from tools like Adobe Illustrator.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data)
+ *
+ *
+ * @default
+ * "circle"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.symbol
+ */
+ symbol?: string;
+
+ /**
+ * single data symbol size.
+ * It can be set to single numbers like `10`, or use an array
+ * to represent width and height.
+ * For example, `[20, 10]` means symbol width is `20`, and height
+ * is`10`.
+ *
+ *
+ * @default
+ * 4
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.symbolSize
+ */
+ symbolSize?: any[] | number;
+
+ /**
+ * Rotate degree of single data symbol.
+ * Note that when `symbol` is set to be `'arrow'` in `markLine`,
+ * `symbolRotate` value will be ignored, and compulsively use
+ * tangent angle.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.symbolRotate
+ */
+ symbolRotate?: number;
+
+ /**
+ * Whether to keep aspect for symbols in the form of `path://`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.symbolKeepAspect
+ */
+ symbolKeepAspect?: boolean;
+
+ /**
+ * Offset of single data symbol relative to original position.
+ * By default, symbol will be put in the center position of
+ * data.
+ * But if symbol is from user-defined vector path or image,
+ * you may not expect symbol to be in center.
+ * In this case, you may use this attribute to set offset to
+ * default position.
+ * It can be in absolute pixel value, or in relative percentage
+ * value.
+ *
+ * For example, `[0, '50%']` means to move upside side position
+ * of symbol height.
+ * It can be used to make the arrow in the bottom to be at data
+ * position when symbol is pin.
+ *
+ *
+ * @default
+ * [0, 0]
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.symbolOffset
+ */
+ symbolOffset?: any[];
+
+ /**
+ * The style of the text of single data point.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values to
+ * represent position of label relative to top-left corner
+ * of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * "top"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Rotate label, from -90 degree to 90, positive value represents
+ * rotate anti-clockwise.
+ *
+ * See:
+ * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rotate
+ */
+ rotate?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent level
+ * will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight` in
+ * parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
+ * right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`, which
+ * represents the percent of `contentWidth` (that is, the
+ * width without `padding`) of its container box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on `outerWith`
+ * in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich` property.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when using
+ * background image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4,
+ * 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3,
+ * 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make
+ * simple table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth`
+ * (that is, the width without `padding`) of its
+ * container box.
+ * It is based on `contentWidth` because that each
+ * text fregment is layout based on the `content
+ * box`, where it makes no sense that calculating
+ * width based on `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using
+ * background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * The style of the symbol of single data point.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * Bar color..
+ *
+ *
+ * @default
+ * "auto"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * The bodrder color of bar.
+ *
+ *
+ * @default
+ * '#000'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.barBorderColor
+ */
+ barBorderColor?: string;
+
+ /**
+ * The bodrder width of bar. defaults to have no border.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.barBorderWidth
+ */
+ barBorderWidth?: number;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will not
+ * be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * Bar color..
+ *
+ *
+ * @default
+ * "auto"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * The bodrder color of bar.
+ *
+ *
+ * @default
+ * '#000'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.barBorderColor
+ */
+ barBorderColor?: string;
+
+ /**
+ * The bodrder width of bar.
+ * defaults to have no border.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.barBorderWidth
+ */
+ barBorderWidth?: number;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values
+ * to represent position of label relative to top-left
+ * corner of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Rotate label, from -90 degree to 90, positive value
+ * represents rotate anti-clockwise.
+ *
+ * See:
+ * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rotate
+ */
+ rotate?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of
+ * `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4,
+ * 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich`
+ * property. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`,
+ * `verticalAlign` in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when
+ * using background image, or auto adapted by
+ * default.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4,
+ * 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding:
+ * [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify
+ * it.
+ * You may want to use it in some cases like
+ * make simple table or using background image
+ * (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * `width` can also be percent string, like
+ * `'100%'`, which represents the percent of
+ * `contentWidth` (that is, the width without
+ * `padding`) of its container box.
+ * It is based on `contentWidth` because that
+ * each text fregment is layout based on the
+ * `content box`, where it makes no sense that
+ * calculating width based on `outerWith` in
+ * prectice.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like
+ * using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+ };
+
+ /**
+ * tooltip settings in this series data.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip
+ */
+ tooltip?: {
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The position of the tooltip's floating layer, which would
+ * follow the position of mouse by default.
+ *
+ * Options:
+ *
+ * + `Array`
+ *
+ * Display the position of tooltip's floating layer through
+ * array, which supports absolute position and relative
+ * percentage.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
+ *
+ * + `Function`
+ *
+ * Callback function in the following form:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
+ *
+ * **Parameters:**
+ * point: Mouse position.
+ * param: The same as formatter.
+ * dom: The DOM object of tooltip.
+ * rect: It is valid only when mouse is on graphic elements,
+ * which stands for a bounding box with `x`, `y`, `width`,
+ * and `height`.
+ * size: The size of dom echarts container.
+ * For example: `{contentSize: [width, height], viewSize:
+ * [width, height]}`.
+ *
+ * **Return:**
+ * Return value is an array standing for tooltip position,
+ * which can be absolute pixels, or relative percentage.
+ * Or can be an object, like `{left: 10, top: 30}`, or `{right:
+ * '20%', bottom: 40}`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
+ *
+ * Or:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
+ *
+ * + `'inside'`
+ *
+ * Center position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'top'`
+ *
+ * Top position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'left'`
+ *
+ * Left position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'right'`
+ *
+ * Right position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'bottom'`
+ *
+ * Bottom position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.position
+ */
+ position?: any[] | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The content formatter of tooltip's floating layer which
+ * supports string template and callback function.
+ *
+ * **1\. String template**
+ *
+ * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
+ * and `{e}`, which stands for series name, data name and
+ * data value and ect. When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is set to be `'axis'`, there may be data from multiple
+ * series.
+ * In this time, series index can be refered as `{a0}`,
+ * `{a1}`, or `{a2}`.
+ *
+ * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
+ * different series types:
+ *
+ * + Line (area) charts, bar (column) charts, K charts:
+ * `{a}` for series name, `{b}` for category name, `{c}`
+ * for data value, `{d}` for none;
+ *
+ * + Scatter (bubble) charts: `{a}` for series name, `{b}`
+ * for data name, `{c}` for data value, `{d}` for none;
+ *
+ * + Map: `{a}` for series name, `{b}` for area name, `{c}`
+ * for merging data, `{d}` for none;
+ *
+ * + Pie charts, gauge charts, funnel charts: `{a}` for
+ * series name, `{b}` for data item name, `{c}` for data
+ * value, `{d}` for percentage.
+ *
+ * **Example:**
+ *
+ * ```
+ * formatter: '{b0}: {c0}
{b1}: {c1}'
+ *
+ * ```
+ *
+ * **2\. Callback function**
+ *
+ * The format of callback function:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
+ *
+ * The first parameter `params` is the data that the formatter
+ * needs. Its format is shown as follows:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
+ *
+ * When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'axis'`, or when tooltip is triggered by
+ * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
+ * , `params` is the data array of multiple series.
+ * The content of each item of the array is the same as
+ * above. Besides,
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
+ *
+ * **Note:** Using array to present all the parameters in
+ * ECharts 2.x is not supported anymore.
+ *
+ * The second parameter `ticket` is the asynchronous callback
+ * flag which should be used along with the third parameter
+ * `callback` when it is used.
+ *
+ * The third parameter `callback` is asynchronous callback.
+ * When the content of tooltip is acquired asynchronously,
+ * `ticket` and `htm` as introduced above can be used to
+ * update tooltip with callback.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The background color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * "rgba(50,50,50,0.7)"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.backgroundColor
+ */
+ backgroundColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * '#333'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border width of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The floating layer of tooltip space around content.
+ * The unit is px.
+ * Default values for each position are 5.
+ * And they can be set to different values with left, right,
+ * top, and bottom.
+ *
+ * Examples:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip)
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.padding
+ */
+ padding?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The text syle of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle
+ */
+ textStyle?: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 14
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.line.data.tooltip.textStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.textStyle.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * Extra CSS style for floating layer.
+ * The following is an example for adding shadow.
+ *
+ * ```
+ * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
+ *
+ * ```
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-line.data.tooltip.extraCssText
+ */
+ extraCssText?: string;
+ };
+ }
+ }
}
}
diff --git a/types/echarts/options/series/lines.d.ts b/types/echarts/options/series/lines.d.ts
index fd740d69e6..957acf0ac7 100644
--- a/types/echarts/options/series/lines.d.ts
+++ b/types/echarts/options/series/lines.d.ts
@@ -2022,1693 +2022,7 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data
*/
- data?: {
-
- /**
- * the name of data.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.name
- */
- name?: string;
-
- /**
- * An array includes two ore more than two coordinates.
- * Each coordinate could be `[x, y]` in
- * [rectangular coordinate](https://ecomfe.github.io/echarts-doc/public/en/option.html#grid)
- * and `[lng, lat]` in
- * [geographic coordinate](https://ecomfe.github.io/echarts-doc/public/en/option.html#geo)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.coords
- */
- coords?: any[];
-
- /**
- * The line style of this data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle
- */
- lineStyle?: {
-
- /**
- * Line color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for example
- * `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.lineStyle)
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.color
- */
- color?: string;
-
- /**
- * line width.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.width
- */
- width?: number;
-
- /**
- * line type.
- *
- * Options are:
- *
- * + `'solid'`
- * + `'dashed'`
- * + `'dotted'`
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.type
- */
- type?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.lineStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will not
- * be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.opacity
- */
- opacity?: number;
-
- /**
- * Edge curvature, which supports value from 0 to 1.
- * The larger the value, the greater the curvature.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.curveness
- */
- curveness?: number;
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.show
- */
- show?: boolean;
-
- /**
- * the position of label, options:
- *
- * + `'start'`
- * + `'middle'`
- * + `'end'`
- *
- *
- * @default
- * "end"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.position
- */
- position?: string;
-
- /**
- * Data label formatter, which supports string template
- * and callback function.
- * In either form, `\n` is supported to represent a new
- * line.
- *
- * **String template**
- *
- * Model variation includes:
- *
- * + `{a}`: series name.
- * + `{b}`: the name of a data item.
- * + `{c}`: the value of a data item.
- * + `{d}`: the percent.
- * + `{@xxx}: the value of a dimension named`'xxx'`, for
- * example,`{@product}`refers the value of`'product'\` dimension。
- * + `{@[n]}: the value of a dimension at the index of`n`,
- * for example,`{@\[3\]}\` refers the value at dimensions\[3\].
- *
- * **example:**
- *
- * ```
- * formatter: '{b}: {d}'
- *
- * ```
- *
- * **Callback function**
- *
- * Callback function is in form of:
- *
- * ```
- * (params: Object|Array) => string
- *
- * ```
- *
- * where `params` is the single dataset needed by formatter,
- * which is formed as:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.formatter
- */
- formatter?: Function | string;
-
- /**
- * text color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent level
- * will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight` in
- * parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
- * right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`, which
- * represents the percent of `contentWidth` (that is, the
- * width without `padding`) of its container box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on `outerWith`
- * in prectice.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich` property.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when using
- * background image, or auto adapted by default.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4,
- * 4]`.
- * + `padding: [3, 4]`: represents `padding: [3,
- * 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make
- * simple table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth`
- * (that is, the width without `padding`) of its
- * container box.
- * It is based on `contentWidth` because that each
- * text fregment is layout based on the `content
- * box`, where it makes no sense that calculating
- * width based on `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using
- * background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis
- */
- emphasis?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle
- */
- lineStyle?: {
-
- /**
- * Line color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.lineStyle)
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.color
- */
- color?: string;
-
- /**
- * line width.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.width
- */
- width?: number;
-
- /**
- * line type.
- *
- * Options are:
- *
- * + `'solid'`
- * + `'dashed'`
- * + `'dotted'`
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.type
- */
- type?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.lineStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.opacity
- */
- opacity?: number;
-
- /**
- * Edge curvature, which supports value from 0 to 1.
- * The larger the value, the greater the curvature.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.curveness
- */
- curveness?: number;
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.show
- */
- show?: boolean;
-
- /**
- * the position of label, options:
- *
- * + `'start'`
- * + `'middle'`
- * + `'end'`
- *
- *
- * @default
- * "end"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.position
- */
- position?: string;
-
- /**
- * Data label formatter, which supports string template
- * and callback function.
- * In either form, `\n` is supported to represent a
- * new line.
- *
- * **String template**
- *
- * Model variation includes:
- *
- * + `{a}`: series name.
- * + `{b}`: the name of a data item.
- * + `{c}`: the value of a data item.
- * + `{d}`: the percent.
- * + `{@xxx}: the value of a dimension named`'xxx'`,
- * for example,`{@product}`refers the value of`'product'\`
- * dimension。
- * + `{@[n]}: the value of a dimension at the index
- * of`n`, for example,`{@\[3\]}\` refers the value at
- * dimensions\[3\].
- *
- * **example:**
- *
- * ```
- * formatter: '{b}: {d}'
- *
- * ```
- *
- * **Callback function**
- *
- * Callback function is in form of:
- *
- * ```
- * (params: Object|Array) => string
- *
- * ```
- *
- * where `params` is the single dataset needed by formatter,
- * which is formed as:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.formatter
- */
- formatter?: Function | string;
-
- /**
- * text color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of
- * `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4,
- * 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich`
- * property. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`,
- * `verticalAlign` in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when
- * using background image, or auto adapted by
- * default.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4,
- * 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding:
- * [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify
- * it.
- * You may want to use it in some cases like
- * make simple table or using background image
- * (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * `width` can also be percent string, like
- * `'100%'`, which represents the percent of
- * `contentWidth` (that is, the width without
- * `padding`) of its container box.
- * It is based on `contentWidth` because that
- * each text fregment is layout based on the
- * `content box`, where it makes no sense that
- * calculating width based on `outerWith` in
- * prectice.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like
- * using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
- };
- };
+ data?: SeriesLines.DataObject[];
/**
* Mark point in a chart.
@@ -14927,5 +13241,1697 @@ declare namespace echarts {
*/
animationDelayUpdate?: Function | number;
}
+
+ namespace SeriesLines {
+ interface DataObject {
+
+ /**
+ * the name of data.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.name
+ */
+ name?: string;
+
+ children: [DataObject];
+
+ /**
+ * An array includes two ore more than two coordinates.
+ * Each coordinate could be `[x, y]` in
+ * [rectangular coordinate](https://ecomfe.github.io/echarts-doc/public/en/option.html#grid)
+ * and `[lng, lat]` in
+ * [geographic coordinate](https://ecomfe.github.io/echarts-doc/public/en/option.html#geo)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.coords
+ */
+ coords?: any[];
+
+ /**
+ * The line style of this data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle
+ */
+ lineStyle?: {
+
+ /**
+ * Line color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for example
+ * `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.lineStyle)
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.color
+ */
+ color?: string;
+
+ /**
+ * line width.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.width
+ */
+ width?: number;
+
+ /**
+ * line type.
+ *
+ * Options are:
+ *
+ * + `'solid'`
+ * + `'dashed'`
+ * + `'dotted'`
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.type
+ */
+ type?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.lineStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will not
+ * be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.opacity
+ */
+ opacity?: number;
+
+ /**
+ * Edge curvature, which supports value from 0 to 1.
+ * The larger the value, the greater the curvature.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.lineStyle.curveness
+ */
+ curveness?: number;
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.show
+ */
+ show?: boolean;
+
+ /**
+ * the position of label, options:
+ *
+ * + `'start'`
+ * + `'middle'`
+ * + `'end'`
+ *
+ *
+ * @default
+ * "end"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.position
+ */
+ position?: string;
+
+ /**
+ * Data label formatter, which supports string template
+ * and callback function.
+ * In either form, `\n` is supported to represent a new
+ * line.
+ *
+ * **String template**
+ *
+ * Model variation includes:
+ *
+ * + `{a}`: series name.
+ * + `{b}`: the name of a data item.
+ * + `{c}`: the value of a data item.
+ * + `{d}`: the percent.
+ * + `{@xxx}: the value of a dimension named`'xxx'`, for
+ * example,`{@product}`refers the value of`'product'\` dimension。
+ * + `{@[n]}: the value of a dimension at the index of`n`,
+ * for example,`{@\[3\]}\` refers the value at dimensions\[3\].
+ *
+ * **example:**
+ *
+ * ```
+ * formatter: '{b}: {d}'
+ *
+ * ```
+ *
+ * **Callback function**
+ *
+ * Callback function is in form of:
+ *
+ * ```
+ * (params: Object|Array) => string
+ *
+ * ```
+ *
+ * where `params` is the single dataset needed by formatter,
+ * which is formed as:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent level
+ * will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight` in
+ * parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
+ * right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`, which
+ * represents the percent of `contentWidth` (that is, the
+ * width without `padding`) of its container box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on `outerWith`
+ * in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich` property.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when using
+ * background image, or auto adapted by default.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4,
+ * 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3,
+ * 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make
+ * simple table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth`
+ * (that is, the width without `padding`) of its
+ * container box.
+ * It is based on `contentWidth` because that each
+ * text fregment is layout based on the `content
+ * box`, where it makes no sense that calculating
+ * width based on `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using
+ * background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle
+ */
+ lineStyle?: {
+
+ /**
+ * Line color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.lineStyle)
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.color
+ */
+ color?: string;
+
+ /**
+ * line width.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.width
+ */
+ width?: number;
+
+ /**
+ * line type.
+ *
+ * Options are:
+ *
+ * + `'solid'`
+ * + `'dashed'`
+ * + `'dotted'`
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.type
+ */
+ type?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.lineStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.opacity
+ */
+ opacity?: number;
+
+ /**
+ * Edge curvature, which supports value from 0 to 1.
+ * The larger the value, the greater the curvature.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.lineStyle.curveness
+ */
+ curveness?: number;
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.show
+ */
+ show?: boolean;
+
+ /**
+ * the position of label, options:
+ *
+ * + `'start'`
+ * + `'middle'`
+ * + `'end'`
+ *
+ *
+ * @default
+ * "end"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.position
+ */
+ position?: string;
+
+ /**
+ * Data label formatter, which supports string template
+ * and callback function.
+ * In either form, `\n` is supported to represent a
+ * new line.
+ *
+ * **String template**
+ *
+ * Model variation includes:
+ *
+ * + `{a}`: series name.
+ * + `{b}`: the name of a data item.
+ * + `{c}`: the value of a data item.
+ * + `{d}`: the percent.
+ * + `{@xxx}: the value of a dimension named`'xxx'`,
+ * for example,`{@product}`refers the value of`'product'\`
+ * dimension。
+ * + `{@[n]}: the value of a dimension at the index
+ * of`n`, for example,`{@\[3\]}\` refers the value at
+ * dimensions\[3\].
+ *
+ * **example:**
+ *
+ * ```
+ * formatter: '{b}: {d}'
+ *
+ * ```
+ *
+ * **Callback function**
+ *
+ * Callback function is in form of:
+ *
+ * ```
+ * (params: Object|Array) => string
+ *
+ * ```
+ *
+ * where `params` is the single dataset needed by formatter,
+ * which is formed as:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of
+ * `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4,
+ * 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich`
+ * property. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`,
+ * `verticalAlign` in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when
+ * using background image, or auto adapted by
+ * default.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4,
+ * 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding:
+ * [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify
+ * it.
+ * You may want to use it in some cases like
+ * make simple table or using background image
+ * (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * `width` can also be percent string, like
+ * `'100%'`, which represents the percent of
+ * `contentWidth` (that is, the width without
+ * `padding`) of its container box.
+ * It is based on `contentWidth` because that
+ * each text fregment is layout based on the
+ * `content box`, where it makes no sense that
+ * calculating width based on `outerWith` in
+ * prectice.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like
+ * using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-lines.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+ };
+ }
+ }
}
}
diff --git a/types/echarts/options/series/map.d.ts b/types/echarts/options/series/map.d.ts
index 417d9c3518..12da2b5697 100644
--- a/types/echarts/options/series/map.d.ts
+++ b/types/echarts/options/series/map.d.ts
@@ -2294,2257 +2294,7 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data
*/
- data?: {
-
- /**
- * The name of the map area where the data belongs to, such
- * as `'China'` or `'United Kingdom'` .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.name
- */
- name?: string;
-
- /**
- * The numerical value of this area.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.value
- */
- value?: number;
-
- /**
- * Whether the are selected.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.selected
- */
- selected?: boolean;
-
- /**
- * Style of item polygon
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle
- */
- itemStyle?: {
-
- /**
- * Color of the area.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor
- */
- areaColor?: {
-
- /**
- * color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.itemStyle.areaColor)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of
- * `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`,
- * or `'dotted'`. `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.itemStyle.areaColor)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.opacity
- */
- opacity?: number;
- };
- };
-
- /**
- * Text label of , to explain some data information about graphic
- * item like value, name and so on.
- * `label` is placed under `itemStyle` in ECharts 2.x.
- * In ECharts 3, to make the configuration structure flatter,
- * `label`is taken to be at the same level with `itemStyle`,
- * and has `emphasis` as `itemStyle` does.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values to
- * represent position of label relative to top-left corner
- * of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * "bottom"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.distance
- */
- distance?: number;
-
- /**
- * Rotate label, from -90 degree to 90, positive value represents
- * rotate anti-clockwise.
- *
- * See:
- * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rotate
- */
- rotate?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.offset
- */
- offset?: any[];
-
- /**
- * Data label formatter, which supports string template
- * and callback function.
- * In either form, `\n` is supported to represent a new
- * line.
- *
- * **String template**
- *
- * Model variation includes:
- *
- * + `{a}`: series name.
- * + `{b}`: the name of a data item.
- * + `{c}`: the value of a data item.
- * + `{@xxx}: the value of a dimension named`'xxx'`, for
- * example,`{@product}`refers the value of`'product'\` dimension。
- * + `{@[n]}: the value of a dimension at the index of`n`,
- * for example,`{@\[3\]}\` refers the value at dimensions\[3\].
- *
- * **example:**
- *
- * ```
- * formatter: '{b}: {@score}'
- *
- * ```
- *
- * **Callback function**
- *
- * Callback function is in form of:
- *
- * ```
- * (params: Object|Array) => string
- *
- * ```
- *
- * where `params` is the single dataset needed by formatter,
- * which is formed as:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.formatter
- */
- formatter?: Function | string;
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight` in
- * parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
- * right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`, which
- * represents the percent of `contentWidth` (that is, the
- * width without `padding`) of its container box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on `outerWith`
- * in prectice.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich` property.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when using
- * background image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4,
- * 4]`.
- * + `padding: [3, 4]`: represents `padding: [3,
- * 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make
- * simple table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth`
- * (that is, the width without `padding`) of its
- * container box.
- * It is based on `contentWidth` because that each
- * text fregment is layout based on the `content
- * box`, where it makes no sense that calculating
- * width based on `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using
- * background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis
- */
- emphasis?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle
- */
- itemStyle?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.areaColor
- */
- areaColor?: string;
-
- /**
- * color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of
- * `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`,
- * or `'dotted'`. `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values
- * to represent position of label relative to top-left
- * corner of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.distance
- */
- distance?: number;
-
- /**
- * Rotate label, from -90 degree to 90, positive value
- * represents rotate anti-clockwise.
- *
- * See:
- * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rotate
- */
- rotate?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.offset
- */
- offset?: any[];
-
- /**
- * Data label formatter, which supports string template
- * and callback function.
- * In either form, `\n` is supported to represent a
- * new line.
- *
- * **String template**
- *
- * Model variation includes:
- *
- * + `{a}`: series name.
- * + `{b}`: the name of a data item.
- * + `{c}`: the value of a data item.
- * + `{@xxx}: the value of a dimension named`'xxx'`,
- * for example,`{@product}`refers the value of`'product'\`
- * dimension。
- * + `{@[n]}: the value of a dimension at the index
- * of`n`, for example,`{@\[3\]}\` refers the value at
- * dimensions\[3\].
- *
- * **example:**
- *
- * ```
- * formatter: '{b}: {@score}'
- *
- * ```
- *
- * **Callback function**
- *
- * Callback function is in form of:
- *
- * ```
- * (params: Object|Array) => string
- *
- * ```
- *
- * where `params` is the single dataset needed by formatter,
- * which is formed as:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.formatter
- */
- formatter?: Function | string;
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of
- * `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4,
- * 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich`
- * property. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`,
- * `verticalAlign` in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when
- * using background image, or auto adapted by
- * default.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4,
- * 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding:
- * [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify
- * it.
- * You may want to use it in some cases like
- * make simple table or using background image
- * (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * `width` can also be percent string, like
- * `'100%'`, which represents the percent of
- * `contentWidth` (that is, the width without
- * `padding`) of its container box.
- * It is based on `contentWidth` because that
- * each text fregment is layout based on the
- * `content box`, where it makes no sense that
- * calculating width based on `outerWith` in
- * prectice.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like
- * using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
- };
-
- /**
- * tooltip settings in this series data.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip
- */
- tooltip?: {
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The position of the tooltip's floating layer, which would
- * follow the position of mouse by default.
- *
- * Options:
- *
- * + `Array`
- *
- * Display the position of tooltip's floating layer through
- * array, which supports absolute position and relative
- * percentage.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
- *
- * + `Function`
- *
- * Callback function in the following form:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
- *
- * **Parameters:**
- * point: Mouse position.
- * param: The same as formatter.
- * dom: The DOM object of tooltip.
- * rect: It is valid only when mouse is on graphic elements,
- * which stands for a bounding box with `x`, `y`, `width`,
- * and `height`.
- * size: The size of dom echarts container.
- * For example: `{contentSize: [width, height], viewSize:
- * [width, height]}`.
- *
- * **Return:**
- * Return value is an array standing for tooltip position,
- * which can be absolute pixels, or relative percentage.
- * Or can be an object, like `{left: 10, top: 30}`, or `{right:
- * '20%', bottom: 40}`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
- *
- * Or:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
- *
- * + `'inside'`
- *
- * Center position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'top'`
- *
- * Top position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'left'`
- *
- * Left position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'right'`
- *
- * Right position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'bottom'`
- *
- * Bottom position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.position
- */
- position?: any[] | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The content formatter of tooltip's floating layer which
- * supports string template and callback function.
- *
- * **1\. String template**
- *
- * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
- * and `{e}`, which stands for series name, data name and
- * data value and ect. When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is set to be `'axis'`, there may be data from multiple
- * series.
- * In this time, series index can be refered as `{a0}`,
- * `{a1}`, or `{a2}`.
- *
- * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
- * different series types:
- *
- * + Line (area) charts, bar (column) charts, K charts:
- * `{a}` for series name, `{b}` for category name, `{c}`
- * for data value, `{d}` for none;
- *
- * + Scatter (bubble) charts: `{a}` for series name, `{b}`
- * for data name, `{c}` for data value, `{d}` for none;
- *
- * + Map: `{a}` for series name, `{b}` for area name, `{c}`
- * for merging data, `{d}` for none;
- *
- * + Pie charts, gauge charts, funnel charts: `{a}` for
- * series name, `{b}` for data item name, `{c}` for data
- * value, `{d}` for percentage.
- *
- * **Example:**
- *
- * ```
- * formatter: '{b0}: {c0}
{b1}: {c1}'
- *
- * ```
- *
- * **2\. Callback function**
- *
- * The format of callback function:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
- *
- * The first parameter `params` is the data that the formatter
- * needs. Its format is shown as follows:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
- *
- * When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'axis'`, or when tooltip is triggered by
- * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
- * , `params` is the data array of multiple series.
- * The content of each item of the array is the same as
- * above. Besides,
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
- *
- * **Note:** Using array to present all the parameters in
- * ECharts 2.x is not supported anymore.
- *
- * The second parameter `ticket` is the asynchronous callback
- * flag which should be used along with the third parameter
- * `callback` when it is used.
- *
- * The third parameter `callback` is asynchronous callback.
- * When the content of tooltip is acquired asynchronously,
- * `ticket` and `htm` as introduced above can be used to
- * update tooltip with callback.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.formatter
- */
- formatter?: Function | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The background color of tooltip's floating layer.
- *
- *
- * @default
- * "rgba(50,50,50,0.7)"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.backgroundColor
- */
- backgroundColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border color of tooltip's floating layer.
- *
- *
- * @default
- * '#333'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.borderColor
- */
- borderColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border width of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.borderWidth
- */
- borderWidth?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The floating layer of tooltip space around content.
- * The unit is px.
- * Default values for each position are 5.
- * And they can be set to different values with left, right,
- * top, and bottom.
- *
- * Examples:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.padding
- */
- padding?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The text syle of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle
- */
- textStyle?: {
-
- /**
- * text color.
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 14
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip.textStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * Extra CSS style for floating layer.
- * The following is an example for adding shadow.
- *
- * ```
- * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
- *
- * ```
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.extraCssText
- */
- extraCssText?: string;
- };
- };
+ data?: (number | SeriesMap.DataObject)[];
/**
* Mark point in a chart.
@@ -16398,5 +14148,2259 @@ declare namespace echarts {
extraCssText?: string;
};
}
+
+ namespace SeriesMap {
+ interface DataObject {
+
+ /**
+ * The name of the map area where the data belongs to, such
+ * as `'China'` or `'United Kingdom'` .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.name
+ */
+ name?: string;
+
+ /**
+ * The numerical value of this area.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.value
+ */
+ value?: number;
+
+ /**
+ * Whether the are selected.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.selected
+ */
+ selected?: boolean;
+
+ /**
+ * Style of item polygon
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * Color of the area.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor
+ */
+ areaColor?: {
+
+ /**
+ * color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.itemStyle.areaColor)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of
+ * `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`,
+ * or `'dotted'`. `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.itemStyle.areaColor)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.itemStyle.areaColor.opacity
+ */
+ opacity?: number;
+ };
+ };
+
+ /**
+ * Text label of , to explain some data information about graphic
+ * item like value, name and so on.
+ * `label` is placed under `itemStyle` in ECharts 2.x.
+ * In ECharts 3, to make the configuration structure flatter,
+ * `label`is taken to be at the same level with `itemStyle`,
+ * and has `emphasis` as `itemStyle` does.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values to
+ * represent position of label relative to top-left corner
+ * of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * "bottom"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Rotate label, from -90 degree to 90, positive value represents
+ * rotate anti-clockwise.
+ *
+ * See:
+ * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rotate
+ */
+ rotate?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * Data label formatter, which supports string template
+ * and callback function.
+ * In either form, `\n` is supported to represent a new
+ * line.
+ *
+ * **String template**
+ *
+ * Model variation includes:
+ *
+ * + `{a}`: series name.
+ * + `{b}`: the name of a data item.
+ * + `{c}`: the value of a data item.
+ * + `{@xxx}: the value of a dimension named`'xxx'`, for
+ * example,`{@product}`refers the value of`'product'\` dimension。
+ * + `{@[n]}: the value of a dimension at the index of`n`,
+ * for example,`{@\[3\]}\` refers the value at dimensions\[3\].
+ *
+ * **example:**
+ *
+ * ```
+ * formatter: '{b}: {@score}'
+ *
+ * ```
+ *
+ * **Callback function**
+ *
+ * Callback function is in form of:
+ *
+ * ```
+ * (params: Object|Array) => string
+ *
+ * ```
+ *
+ * where `params` is the single dataset needed by formatter,
+ * which is formed as:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight` in
+ * parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
+ * right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`, which
+ * represents the percent of `contentWidth` (that is, the
+ * width without `padding`) of its container box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on `outerWith`
+ * in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich` property.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when using
+ * background image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4,
+ * 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3,
+ * 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make
+ * simple table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth`
+ * (that is, the width without `padding`) of its
+ * container box.
+ * It is based on `contentWidth` because that each
+ * text fregment is layout based on the `content
+ * box`, where it makes no sense that calculating
+ * width based on `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using
+ * background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.areaColor
+ */
+ areaColor?: string;
+
+ /**
+ * color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of
+ * `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`,
+ * or `'dotted'`. `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values
+ * to represent position of label relative to top-left
+ * corner of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Rotate label, from -90 degree to 90, positive value
+ * represents rotate anti-clockwise.
+ *
+ * See:
+ * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rotate
+ */
+ rotate?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * Data label formatter, which supports string template
+ * and callback function.
+ * In either form, `\n` is supported to represent a
+ * new line.
+ *
+ * **String template**
+ *
+ * Model variation includes:
+ *
+ * + `{a}`: series name.
+ * + `{b}`: the name of a data item.
+ * + `{c}`: the value of a data item.
+ * + `{@xxx}: the value of a dimension named`'xxx'`,
+ * for example,`{@product}`refers the value of`'product'\`
+ * dimension。
+ * + `{@[n]}: the value of a dimension at the index
+ * of`n`, for example,`{@\[3\]}\` refers the value at
+ * dimensions\[3\].
+ *
+ * **example:**
+ *
+ * ```
+ * formatter: '{b}: {@score}'
+ *
+ * ```
+ *
+ * **Callback function**
+ *
+ * Callback function is in form of:
+ *
+ * ```
+ * (params: Object|Array) => string
+ *
+ * ```
+ *
+ * where `params` is the single dataset needed by formatter,
+ * which is formed as:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of
+ * `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4,
+ * 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich`
+ * property. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`,
+ * `verticalAlign` in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when
+ * using background image, or auto adapted by
+ * default.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4,
+ * 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding:
+ * [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify
+ * it.
+ * You may want to use it in some cases like
+ * make simple table or using background image
+ * (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * `width` can also be percent string, like
+ * `'100%'`, which represents the percent of
+ * `contentWidth` (that is, the width without
+ * `padding`) of its container box.
+ * It is based on `contentWidth` because that
+ * each text fregment is layout based on the
+ * `content box`, where it makes no sense that
+ * calculating width based on `outerWith` in
+ * prectice.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like
+ * using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+ };
+
+ /**
+ * tooltip settings in this series data.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip
+ */
+ tooltip?: {
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The position of the tooltip's floating layer, which would
+ * follow the position of mouse by default.
+ *
+ * Options:
+ *
+ * + `Array`
+ *
+ * Display the position of tooltip's floating layer through
+ * array, which supports absolute position and relative
+ * percentage.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
+ *
+ * + `Function`
+ *
+ * Callback function in the following form:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
+ *
+ * **Parameters:**
+ * point: Mouse position.
+ * param: The same as formatter.
+ * dom: The DOM object of tooltip.
+ * rect: It is valid only when mouse is on graphic elements,
+ * which stands for a bounding box with `x`, `y`, `width`,
+ * and `height`.
+ * size: The size of dom echarts container.
+ * For example: `{contentSize: [width, height], viewSize:
+ * [width, height]}`.
+ *
+ * **Return:**
+ * Return value is an array standing for tooltip position,
+ * which can be absolute pixels, or relative percentage.
+ * Or can be an object, like `{left: 10, top: 30}`, or `{right:
+ * '20%', bottom: 40}`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
+ *
+ * Or:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
+ *
+ * + `'inside'`
+ *
+ * Center position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'top'`
+ *
+ * Top position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'left'`
+ *
+ * Left position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'right'`
+ *
+ * Right position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'bottom'`
+ *
+ * Bottom position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.position
+ */
+ position?: any[] | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The content formatter of tooltip's floating layer which
+ * supports string template and callback function.
+ *
+ * **1\. String template**
+ *
+ * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
+ * and `{e}`, which stands for series name, data name and
+ * data value and ect. When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is set to be `'axis'`, there may be data from multiple
+ * series.
+ * In this time, series index can be refered as `{a0}`,
+ * `{a1}`, or `{a2}`.
+ *
+ * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
+ * different series types:
+ *
+ * + Line (area) charts, bar (column) charts, K charts:
+ * `{a}` for series name, `{b}` for category name, `{c}`
+ * for data value, `{d}` for none;
+ *
+ * + Scatter (bubble) charts: `{a}` for series name, `{b}`
+ * for data name, `{c}` for data value, `{d}` for none;
+ *
+ * + Map: `{a}` for series name, `{b}` for area name, `{c}`
+ * for merging data, `{d}` for none;
+ *
+ * + Pie charts, gauge charts, funnel charts: `{a}` for
+ * series name, `{b}` for data item name, `{c}` for data
+ * value, `{d}` for percentage.
+ *
+ * **Example:**
+ *
+ * ```
+ * formatter: '{b0}: {c0}
{b1}: {c1}'
+ *
+ * ```
+ *
+ * **2\. Callback function**
+ *
+ * The format of callback function:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
+ *
+ * The first parameter `params` is the data that the formatter
+ * needs. Its format is shown as follows:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
+ *
+ * When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'axis'`, or when tooltip is triggered by
+ * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
+ * , `params` is the data array of multiple series.
+ * The content of each item of the array is the same as
+ * above. Besides,
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
+ *
+ * **Note:** Using array to present all the parameters in
+ * ECharts 2.x is not supported anymore.
+ *
+ * The second parameter `ticket` is the asynchronous callback
+ * flag which should be used along with the third parameter
+ * `callback` when it is used.
+ *
+ * The third parameter `callback` is asynchronous callback.
+ * When the content of tooltip is acquired asynchronously,
+ * `ticket` and `htm` as introduced above can be used to
+ * update tooltip with callback.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The background color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * "rgba(50,50,50,0.7)"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.backgroundColor
+ */
+ backgroundColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * '#333'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border width of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The floating layer of tooltip space around content.
+ * The unit is px.
+ * Default values for each position are 5.
+ * And they can be set to different values with left, right,
+ * top, and bottom.
+ *
+ * Examples:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip)
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.padding
+ */
+ padding?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The text syle of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle
+ */
+ textStyle?: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 14
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.map.data.tooltip.textStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.textStyle.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * Extra CSS style for floating layer.
+ * The following is an example for adding shadow.
+ *
+ * ```
+ * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
+ *
+ * ```
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-map.data.tooltip.extraCssText
+ */
+ extraCssText?: string;
+ };
+ }
+ }
}
}
diff --git a/types/echarts/options/series/parallel.d.ts b/types/echarts/options/series/parallel.d.ts
index e7c6784902..a54f29aeb2 100644
--- a/types/echarts/options/series/parallel.d.ts
+++ b/types/echarts/options/series/parallel.d.ts
@@ -487,237 +487,10 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data
*/
- data?: {
-
- /**
- * The name of a data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.name
- */
- name?: string;
-
- /**
- * The value of a data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.value
- */
- value?: any[];
-
- /**
- * Line style.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.lineStyle
- */
- lineStyle?: object;
-
- /**
- * Line color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for example
- * `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example `'#ccc'`.
- * Gradient color and texture are also supported besides single
- * colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.parallel.data)
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.color
- */
- color?: string;
-
- /**
- * line width.
- *
- *
- * @default
- * 2
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.width
- */
- width?: number;
-
- /**
- * line type.
- *
- * Options are:
- *
- * + `'solid'`
- * + `'dashed'`
- * + `'dotted'`
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.type
- */
- type?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.parallel.data)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will not be
- * drawn when set to 0.
- *
- *
- * @default
- * 0.45
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.opacity
- */
- opacity?: number;
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis
- */
- emphasis?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle
- */
- lineStyle?: {
-
- /**
- * Line color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.parallel.data.emphasis.lineStyle)
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.color
- */
- color?: string;
-
- /**
- * line width.
- *
- *
- * @default
- * 2
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.width
- */
- width?: number;
-
- /**
- * line type.
- *
- * Options are:
- *
- * + `'solid'`
- * + `'dashed'`
- * + `'dotted'`
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.type
- */
- type?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.parallel.data.emphasis.lineStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @default
- * 0.45
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.opacity
- */
- opacity?: number;
- };
- };
- };
+ data?: (
+ (number | string | SeriesParallel.DataObject)[]
+ | (number | string | SeriesParallel.DataObject)[][]
+ );
/**
* `zlevel` value of all graghical elements in parallel.
@@ -1325,5 +1098,239 @@ declare namespace echarts {
extraCssText?: string;
};
}
+
+ namespace SeriesParallel {
+ interface DataObject {
+
+ /**
+ * The name of a data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.name
+ */
+ name?: string;
+
+ /**
+ * The value of a data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.value
+ */
+ value?: any[];
+
+ /**
+ * Line style.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.lineStyle
+ */
+ lineStyle?: object;
+
+ /**
+ * Line color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for example
+ * `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example `'#ccc'`.
+ * Gradient color and texture are also supported besides single
+ * colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.parallel.data)
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.color
+ */
+ color?: string;
+
+ /**
+ * line width.
+ *
+ *
+ * @default
+ * 2
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.width
+ */
+ width?: number;
+
+ /**
+ * line type.
+ *
+ * Options are:
+ *
+ * + `'solid'`
+ * + `'dashed'`
+ * + `'dotted'`
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.type
+ */
+ type?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.parallel.data)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will not be
+ * drawn when set to 0.
+ *
+ *
+ * @default
+ * 0.45
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.opacity
+ */
+ opacity?: number;
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle
+ */
+ lineStyle?: {
+
+ /**
+ * Line color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.parallel.data.emphasis.lineStyle)
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.color
+ */
+ color?: string;
+
+ /**
+ * line width.
+ *
+ *
+ * @default
+ * 2
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.width
+ */
+ width?: number;
+
+ /**
+ * line type.
+ *
+ * Options are:
+ *
+ * + `'solid'`
+ * + `'dashed'`
+ * + `'dotted'`
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.type
+ */
+ type?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.parallel.data.emphasis.lineStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @default
+ * 0.45
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-parallel.data.emphasis.lineStyle.opacity
+ */
+ opacity?: number;
+ };
+ };
+ }
+ }
}
}
diff --git a/types/echarts/options/series/pictorial-bar.d.ts b/types/echarts/options/series/pictorial-bar.d.ts
index c91e2eb3ba..83f19c0d65 100644
--- a/types/echarts/options/series/pictorial-bar.d.ts
+++ b/types/echarts/options/series/pictorial-bar.d.ts
@@ -2952,2894 +2952,10 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data
*/
- data?: {
-
- /**
- * The name of data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.name
- */
- name?: string;
-
- /**
- * The value of a single data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.value
- */
- value?: number;
-
- /**
- * Specify the type of graphic elements.
- *
- * Icon types provided by ECharts includes `'circle'`, `'rect'`,
- * `'roundRect'`, `'triangle'`, `'diamond'`, `'pin'`, `'arrow'`,
- * `'none'`
- *
- * It can be set to an image with `'image://url'` , in which
- * URL is the link to an image, or `dataURI` of an image.
- *
- * An image URL example:
- *
- * ```
- * 'image://http://xxx.xxx.xxx/a/b.png'
- *
- * ```
- *
- * A `dataURI` example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * Icons can be set to arbitrary vector path via `'path://'`
- * in ECharts.
- * As compared with raster image, vector paths prevent from
- * jagging and blurring when scaled, and have a better control
- * over changing colors.
- * Size of vectoer icon will be adapted automatically.
- * Refer to
- * [SVG PathData](http://www.w3.org/TR/SVG/paths.html#PathData)
- * for more information about format of path.
- * You may export vector paths from tools like Adobe Illustrator.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * This attribute can be set at the
- * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbol)
- * , where all data items in the series will be affected by
- * this attribute. And this attribute can also be set at
- * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbol)
- * in
- * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
- * , where only the data item is affected by this attribute.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @default
- * "circle"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbol
- */
- symbol?: string;
-
- /**
- * Symbol size.
- *
- * It can be set as a array, which means \[width, height\].
- * For example, `[20, 10]` means width `20` and height `10`.
- * It can also be set as a single number, like `10`, which is
- * equivalent to `[10, 10]`.
- *
- * Absolute value can be used (like `10`), or percent value
- * can be used (like `'120%'`, `['55%', 23]`).
- *
- * When percent value is used, final size of the graphic element
- * is calculated based on its
- * [reference bar](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar)
- * .
- *
- * For example, there is a reference bar based on x axis (that
- * is, it is a vertical bar), and
- * [symbolSize](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolSize)
- * is set as `['30%', '50%']`, the final size of its graphic
- * elements is:
- *
- * + width: ` * 30%`。
- * + height:
- * + If
- * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
- * is used: ` * 50%`.
- * + If
- * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
- * is not used: ` * 50%`.
- *
- * Analogously, the case that based on y axis can be obtained
- * by exchanging them.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * This attribute can be set at the
- * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolSize)
- * , where all data items in the series will be affected by
- * this attribute. And this attribute can also be set at
- * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolSize)
- * in
- * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
- * , where only the data item is affected by this attribute.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @default
- * ['100%', '100%']
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolSize
- */
- symbolSize?: any[] | number;
-
- /**
- * Specify the location of the graphic elements.
- * Optional values:
- *
- * + `'start'`: The edge of graphic element inscribes with the
- * start of the reference bar.
- * + `'end'`: The edge of graphic element inscribes with the
- * end of the reference bar.
- * + `'center'`: The graphic element is at the center of the
- * reference bar.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * This attribute can be set at the
- * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolPosition)
- * , where all data items in the series will be affected by
- * this attribute. And this attribute can also be set at
- * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolPosition)
- * in
- * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
- * , where only the data item is affected by this attribute.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @default
- * "start"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolPosition
- */
- symbolPosition?: string;
-
- /**
- * Specify the offset of graphic element according to its original
- * position.
- * Adopting `symbolOffset` is the final step in layout, which
- * enables adjustment of graphic element position.
- *
- * A absolute value can be set (like `10`), or a percent value
- * can be set (like `'120%'`、`['55%', 23]`), which is based
- * on its
- * [symbolSize](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolSize)
- * .
- *
- * For example, `[0, '-50%']` means the graphic element will
- * be adjusted upward half of the size of itself.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * This attribute can be set at the
- * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolOffset)
- * , where all data items in the series will be affected by
- * this attribute. And this attribute can also be set at
- * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolOffset)
- * in
- * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
- * , where only the data item is affected by this attribute.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @default
- * [0, 0]
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolOffset
- */
- symbolOffset?: any[];
-
- /**
- * The degree of the rotation of a graphic element.
- *
- * Notice, `symbolRotate` will not affect the position of the
- * graphic element, but just rotating by its center.
- *
- * This attribute can be set at the
- * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRotate)
- * , where all data items in the series will be affected by
- * this attribute. And this attribute can also be set at
- * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolRotate)
- * in
- * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
- * , where only the data item is affected by this attribute.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolRotate
- */
- symbolRotate?: number;
-
- /**
- * Whether to repeat a graphic element. Optional values:
- *
- * + `false`/`null`/`undefined`: Do not repeat, that is, each
- * graphic element represents a data item.
- * + `true`: Repeat, that is, a group of repeated graphic elements
- * represent a data item.
- * The repeat times is calculated according to
- * [data](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data)
- * .
- * + a number: Repeat, that is a group of repeated graphic elements
- * represent a data item.
- * The repeat times is always the given number.
- * + `'fixed'`: Repeat, that is a group of repeated graphic
- * elements represent a data item.
- * The repeat times is calcuated according to
- * [symbolBoundingData](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolBoundingData)
- * , that is, the repeat times has nothing to do with
- * [data](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data)
- *
- *
- * The setting is useful when graphic elements are used as background.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * This attribute can be set at the
- * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
- * , where all data items in the series will be affected by
- * this attribute. And this attribute can also be set at
- * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolRepeat)
- * in
- * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
- * , where only the data item is affected by this attribute.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolRepeat
- */
- symbolRepeat?: boolean | number | string;
-
- /**
- * When
- * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
- * is used, `symbolRepeatDirection` specifies the render order
- * of the repeatd graphic elements.
- * The setting is useful in these cases below:
- *
- * + If
- * [symbolMargin](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolMargin)
- * is set as a negative value, repeated elements will overlap
- * with each other.
- * `symbolRepeatDirection` can be used to specify the order
- * of overlap.
- *
- * + If
- * [animationDelay](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.animationDelay)
- * or
- * [animationDelayUpdate](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.animationDelayUpdate)
- * is used, `symbolRepeatDirection` specifies the order of index.
- *
- * Optional values can be `'start'` and `'end'`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * This attribute can be set at the
- * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeatDirection)
- * , where all data items in the series will be affected by
- * this attribute. And this attribute can also be set at
- * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolRepeatDirection)
- * in
- * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
- * , where only the data item is affected by this attribute.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @default
- * "start"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolRepeatDirection
- */
- symbolRepeatDirection?: string;
-
- /**
- * Specify margin of both sides of a graphic element.
- * ("both sides" means the two sides in the direction of its
- * value axis). It works only when
- * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
- * is used.
- *
- * Absolute value can be used (like `20`), or percent value
- * can be used (like `'-30%'`), which is based on its
- * [symbolSize](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolSize)
- * .
- *
- * `symbolMargin` can be positive value or negative value, which
- * enables overlap of graphic elements when
- * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
- * is used.
- *
- * A `"!"` can be appended on the end of the value, like `"30%!"`
- * or `25!`, which means a extra blank will be added on the
- * both ends, otherwise the graphic elements on both ends will
- * reach the boundary by default.
- *
- * Notice:
- *
- * + When
- * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
- * is `true`/`'fixed'`: The given `symbolMargin` is just a reference
- * value.
- * The final gap of graphic elements will be calculated according
- * to
- * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
- * , `symbolMargin` and
- * [symbolBoundingData](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolBoundingData)
- * .
- * + When
- * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
- * is set as a number: `symbolMargin` does not work any more.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * This attribute can be set at the
- * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolMargin)
- * , where all data items in the series will be affected by
- * this attribute. And this attribute can also be set at
- * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolMargin)
- * in
- * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
- * , where only the data item is affected by this attribute.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolMargin
- */
- symbolMargin?: number | string;
-
- /**
- * Whether to clip graphic elements.
- *
- * + `false`/null/undefined: The whole graphic elements represent
- * the size of value.
- * + `true`: The clipped graphic elements reperent the size
- * of value.
- *
- * `symbolClip` is usually used in this case: both "amont value"
- * and "current value" should be displayed.
- * In this case, tow series can be used.
- * One for background, using complete graphic elements, while
- * another for current value, using clipped graphic elements.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * Notice, in the example above,
- *
- * + The same
- * [symbolBoundingData](https://ecomfe.github.io/echarts-doc/public/en/option.html#series.pictorialBar.symbolBoundingData)
- * is used in "background series" and "current value seires",
- * which makes their graphic elements are the same size.
- * + A bigger
- * [z](https://ecomfe.github.io/echarts-doc/public/en/option.html#series.pictorialBar.z)
- * is set on "current value series", which makes it is over
- * "background series".
- *
- * This attribute can be set at the
- * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolClip)
- * , where all data items in the series will be affected by
- * this attribute. And this attribute can also be set at
- * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolClip)
- * in
- * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
- * , where only the data item is affected by this attribute.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolClip
- */
- symbolClip?: boolean;
-
- /**
- * Defines a bounding area availble for the graphic elements.
- * This setting gives a data, which will then be translated
- * to a coordinate on the coordinate system.
- * The coordinate specifies the bounding.
- * Namely, if `symbolBoundingData` is set, the final size (or
- * layout) of the graphic elements depend on the `symbolBoundingData`.
- *
- * When reference bar is horizontal, `symbolBoundingData` is
- * coresponding to x axis, while reference bar is vertical,
- * `symbolBoundingData` is coresponding to y axis.
- *
- * Rule:
- *
- * + If
- * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
- * is not used:
- *
- * `symbolBoundingData` is the same as the size of reference
- * bar by default.
- * The size of the graphic element is detemined by `symbolBoundingData`.
- * For example, if reference bar is vertical, its data is `24`,
- * `symbolSize` is set as `[30, '50%']`, `symbolBoundingData`
- * is set as `124`, the final size of the graphic element will
- * be `124 * 50% = 62`.
- * If `symbolBoundingData` is not set, the final size will be
- * `24 * 50% = 12`.
- *
- * + If
- * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
- * is used:
- *
- * `symbolBoundingData` is the extreme value of the coordinate
- * system.
- * `symbolBoundingData` defines a bounding area, where repeated
- * graphic elements layout according to
- * [symbolMargin](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolMargin)
- * and
- * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
- * and
- * [symbolSize](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolSize)
- *
- *
- * Both these settings determine the gap size of the repeated
- * graphic elements.
- *
- * `symbolBoundingData` is usually used in these cases:
- *
- * + When
- * [symbolCilp](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolClip)
- * is used:
- *
- * And a series is used to display "amont value", while another
- * series is used to display "current value".
- * `symbolBoundingData` can be used to ensure that the graphic
- * elements of these two series are at the same size.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * + When
- * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
- * is used:
- *
- * `symbolBoundingData` can be use to ensure the gaps of the
- * elements in different bars are the same.
- * Of cource, you can do not set `symbolBoundingData`, whose
- * default value is a stable value (extreme value of the coordinate
- * system).
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * `symbolBoundingData` can also be an array, such as `[-40,
- * 60]`, which specifies both negative and positive symbolBoundingData.
- *
- * Check this example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * This attribute can be set at the
- * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolBoundingData)
- * , where all data items in the series will be affected by
- * this attribute. And this attribute can also be set at
- * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolBoundingData)
- * in
- * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
- * , where only the data item is affected by this attribute.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolBoundingData
- */
- symbolBoundingData?: number;
-
- /**
- * Image can be used as the pattern of graphic elements.
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * `symbolPatternSize` specifies the size of pattern image.
- * For example, if `symbolPatternSize` is `400`, the pattern
- * image will be displayed at the size of `400px * 400px`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * This attribute can be set at the
- * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolPatternSize)
- * , where all data items in the series will be affected by
- * this attribute. And this attribute can also be set at
- * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolPatternSize)
- * in
- * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
- * , where only the data item is affected by this attribute.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @default
- * 400
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolPatternSize
- */
- symbolPatternSize?: number;
-
- /**
- * Specify the relationship of overlap between gaphic elements.
- * A bigger value means higher.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.z
- */
- z?: number;
-
- /**
- * Whether to enable hover animation.
- *
- * This attribute can be set at the
- * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.hoverAnimation)
- * , where all data items in the series will be affected by
- * this attribute. And this attribute can also be set at
- * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.hoverAnimation)
- * in
- * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
- * , where only the data item is affected by this attribute.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.hoverAnimation
- */
- hoverAnimation?: boolean;
-
- /**
- * Whether to enable animation.
- *
- *
- * @default
- * "true"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animation
- */
- animation?: boolean;
-
- /**
- * Whether to set graphic number threshold to animation.
- * Animation will be disabled when graphic number is larger
- * than threshold.
- *
- *
- * @default
- * 2000
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animationThreshold
- */
- animationThreshold?: number;
-
- /**
- * Duration of the first animation, which supports callback
- * function for different data to have different animation effect:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @default
- * 1000
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animationDuration
- */
- animationDuration?: Function | number;
-
- /**
- * Easing method used for the first animation.
- * Varied easing effects can be found at
- * [easing effect example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=line-easing)
- * .
- *
- *
- * @default
- * "cubicOut"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animationEasing
- */
- animationEasing?: string;
-
- /**
- * Time for animation to complete, which supports callback function
- * for different data to have different animation effect:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @default
- * 300
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animationDurationUpdate
- */
- animationDurationUpdate?: Function | number;
-
- /**
- * Easing method used for animation.
- *
- *
- * @default
- * "cubicOut"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animationEasingUpdate
- */
- animationEasingUpdate?: string;
-
- /**
- * Specify the delay time before animation start.
- * Callback function can be used, where different delay time
- * can be used on different element.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animationDelay
- */
- animationDelay?: Function | number;
-
- /**
- * Specify the delay time before update animation.
- * Callback function can be used, where different delay time
- * can be used on different element.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animationDelayUpdate
- */
- animationDelayUpdate?: Function | number;
-
- /**
- * The style setting of the text label in a single bar.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values to
- * represent position of label relative to top-left corner
- * of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * "inside"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.distance
- */
- distance?: number;
-
- /**
- * Rotate label, from -90 degree to 90, positive value represents
- * rotate anti-clockwise.
- *
- * See:
- * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rotate
- */
- rotate?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.offset
- */
- offset?: any[];
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent level
- * will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight` in
- * parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
- * right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`, which
- * represents the percent of `contentWidth` (that is, the
- * width without `padding`) of its container box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on `outerWith`
- * in prectice.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich` property.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when using
- * background image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4,
- * 4]`.
- * + `padding: [3, 4]`: represents `padding: [3,
- * 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make
- * simple table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth`
- * (that is, the width without `padding`) of its
- * container box.
- * It is based on `contentWidth` because that each
- * text fregment is layout based on the `content
- * box`, where it makes no sense that calculating
- * width based on `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using
- * background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle
- */
- itemStyle?: {
-
- /**
- * color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for example
- * `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
- * `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will not
- * be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis
- */
- emphasis?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values
- * to represent position of label relative to top-left
- * corner of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.distance
- */
- distance?: number;
-
- /**
- * Rotate label, from -90 degree to 90, positive value
- * represents rotate anti-clockwise.
- *
- * See:
- * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rotate
- */
- rotate?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.offset
- */
- offset?: any[];
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of
- * `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4,
- * 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich`
- * property. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`,
- * `verticalAlign` in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when
- * using background image, or auto adapted by
- * default.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4,
- * 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding:
- * [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify
- * it.
- * You may want to use it in some cases like
- * make simple table or using background image
- * (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * `width` can also be percent string, like
- * `'100%'`, which represents the percent of
- * `contentWidth` (that is, the width without
- * `padding`) of its container box.
- * It is based on `contentWidth` because that
- * each text fregment is layout based on the
- * `content box`, where it makes no sense that
- * calculating width based on `outerWith` in
- * prectice.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like
- * using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle
- */
- itemStyle?: {
-
- /**
- * color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of
- * `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`,
- * or `'dotted'`. `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.opacity
- */
- opacity?: number;
- };
- };
-
- /**
- * tooltip settings in this series data.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip
- */
- tooltip?: {
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The position of the tooltip's floating layer, which would
- * follow the position of mouse by default.
- *
- * Options:
- *
- * + `Array`
- *
- * Display the position of tooltip's floating layer through
- * array, which supports absolute position and relative
- * percentage.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
- *
- * + `Function`
- *
- * Callback function in the following form:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
- *
- * **Parameters:**
- * point: Mouse position.
- * param: The same as formatter.
- * dom: The DOM object of tooltip.
- * rect: It is valid only when mouse is on graphic elements,
- * which stands for a bounding box with `x`, `y`, `width`,
- * and `height`.
- * size: The size of dom echarts container.
- * For example: `{contentSize: [width, height], viewSize:
- * [width, height]}`.
- *
- * **Return:**
- * Return value is an array standing for tooltip position,
- * which can be absolute pixels, or relative percentage.
- * Or can be an object, like `{left: 10, top: 30}`, or `{right:
- * '20%', bottom: 40}`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
- *
- * Or:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
- *
- * + `'inside'`
- *
- * Center position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'top'`
- *
- * Top position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'left'`
- *
- * Left position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'right'`
- *
- * Right position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'bottom'`
- *
- * Bottom position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.position
- */
- position?: any[] | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The content formatter of tooltip's floating layer which
- * supports string template and callback function.
- *
- * **1\. String template**
- *
- * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
- * and `{e}`, which stands for series name, data name and
- * data value and ect. When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is set to be `'axis'`, there may be data from multiple
- * series.
- * In this time, series index can be refered as `{a0}`,
- * `{a1}`, or `{a2}`.
- *
- * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
- * different series types:
- *
- * + Line (area) charts, bar (column) charts, K charts:
- * `{a}` for series name, `{b}` for category name, `{c}`
- * for data value, `{d}` for none;
- *
- * + Scatter (bubble) charts: `{a}` for series name, `{b}`
- * for data name, `{c}` for data value, `{d}` for none;
- *
- * + Map: `{a}` for series name, `{b}` for area name, `{c}`
- * for merging data, `{d}` for none;
- *
- * + Pie charts, gauge charts, funnel charts: `{a}` for
- * series name, `{b}` for data item name, `{c}` for data
- * value, `{d}` for percentage.
- *
- * **Example:**
- *
- * ```
- * formatter: '{b0}: {c0}
{b1}: {c1}'
- *
- * ```
- *
- * **2\. Callback function**
- *
- * The format of callback function:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
- *
- * The first parameter `params` is the data that the formatter
- * needs. Its format is shown as follows:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
- *
- * When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'axis'`, or when tooltip is triggered by
- * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
- * , `params` is the data array of multiple series.
- * The content of each item of the array is the same as
- * above. Besides,
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
- *
- * **Note:** Using array to present all the parameters in
- * ECharts 2.x is not supported anymore.
- *
- * The second parameter `ticket` is the asynchronous callback
- * flag which should be used along with the third parameter
- * `callback` when it is used.
- *
- * The third parameter `callback` is asynchronous callback.
- * When the content of tooltip is acquired asynchronously,
- * `ticket` and `htm` as introduced above can be used to
- * update tooltip with callback.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.formatter
- */
- formatter?: Function | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The background color of tooltip's floating layer.
- *
- *
- * @default
- * "rgba(50,50,50,0.7)"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.backgroundColor
- */
- backgroundColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border color of tooltip's floating layer.
- *
- *
- * @default
- * '#333'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.borderColor
- */
- borderColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border width of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.borderWidth
- */
- borderWidth?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The floating layer of tooltip space around content.
- * The unit is px.
- * Default values for each position are 5.
- * And they can be set to different values with left, right,
- * top, and bottom.
- *
- * Examples:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.padding
- */
- padding?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The text syle of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle
- */
- textStyle?: {
-
- /**
- * text color.
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 14
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip.textStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * Extra CSS style for floating layer.
- * The following is an example for adding shadow.
- *
- * ```
- * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
- *
- * ```
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.extraCssText
- */
- extraCssText?: string;
- };
- };
+ data?: (
+ (void | number | string | SeriesPictorialBar.DataObject)[]
+ | (void | number | string | SeriesPictorialBar.DataObject)[][]
+ );
/**
* Mark point in a chart.
@@ -17953,5 +15069,2896 @@ declare namespace echarts {
extraCssText?: string;
};
}
+
+ namespace SeriesPictorialBar {
+ interface DataObject {
+
+ /**
+ * The name of data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.name
+ */
+ name?: string;
+
+ /**
+ * The value of a single data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.value
+ */
+ value?: number;
+
+ /**
+ * Specify the type of graphic elements.
+ *
+ * Icon types provided by ECharts includes `'circle'`, `'rect'`,
+ * `'roundRect'`, `'triangle'`, `'diamond'`, `'pin'`, `'arrow'`,
+ * `'none'`
+ *
+ * It can be set to an image with `'image://url'` , in which
+ * URL is the link to an image, or `dataURI` of an image.
+ *
+ * An image URL example:
+ *
+ * ```
+ * 'image://http://xxx.xxx.xxx/a/b.png'
+ *
+ * ```
+ *
+ * A `dataURI` example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * Icons can be set to arbitrary vector path via `'path://'`
+ * in ECharts.
+ * As compared with raster image, vector paths prevent from
+ * jagging and blurring when scaled, and have a better control
+ * over changing colors.
+ * Size of vectoer icon will be adapted automatically.
+ * Refer to
+ * [SVG PathData](http://www.w3.org/TR/SVG/paths.html#PathData)
+ * for more information about format of path.
+ * You may export vector paths from tools like Adobe Illustrator.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * This attribute can be set at the
+ * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbol)
+ * , where all data items in the series will be affected by
+ * this attribute. And this attribute can also be set at
+ * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbol)
+ * in
+ * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
+ * , where only the data item is affected by this attribute.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @default
+ * "circle"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbol
+ */
+ symbol?: string;
+
+ /**
+ * Symbol size.
+ *
+ * It can be set as a array, which means \[width, height\].
+ * For example, `[20, 10]` means width `20` and height `10`.
+ * It can also be set as a single number, like `10`, which is
+ * equivalent to `[10, 10]`.
+ *
+ * Absolute value can be used (like `10`), or percent value
+ * can be used (like `'120%'`, `['55%', 23]`).
+ *
+ * When percent value is used, final size of the graphic element
+ * is calculated based on its
+ * [reference bar](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar)
+ * .
+ *
+ * For example, there is a reference bar based on x axis (that
+ * is, it is a vertical bar), and
+ * [symbolSize](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolSize)
+ * is set as `['30%', '50%']`, the final size of its graphic
+ * elements is:
+ *
+ * + width: ` * 30%`。
+ * + height:
+ * + If
+ * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
+ * is used: ` * 50%`.
+ * + If
+ * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
+ * is not used: ` * 50%`.
+ *
+ * Analogously, the case that based on y axis can be obtained
+ * by exchanging them.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * This attribute can be set at the
+ * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolSize)
+ * , where all data items in the series will be affected by
+ * this attribute. And this attribute can also be set at
+ * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolSize)
+ * in
+ * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
+ * , where only the data item is affected by this attribute.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @default
+ * ['100%', '100%']
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolSize
+ */
+ symbolSize?: any[] | number;
+
+ /**
+ * Specify the location of the graphic elements.
+ * Optional values:
+ *
+ * + `'start'`: The edge of graphic element inscribes with the
+ * start of the reference bar.
+ * + `'end'`: The edge of graphic element inscribes with the
+ * end of the reference bar.
+ * + `'center'`: The graphic element is at the center of the
+ * reference bar.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * This attribute can be set at the
+ * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolPosition)
+ * , where all data items in the series will be affected by
+ * this attribute. And this attribute can also be set at
+ * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolPosition)
+ * in
+ * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
+ * , where only the data item is affected by this attribute.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @default
+ * "start"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolPosition
+ */
+ symbolPosition?: string;
+
+ /**
+ * Specify the offset of graphic element according to its original
+ * position.
+ * Adopting `symbolOffset` is the final step in layout, which
+ * enables adjustment of graphic element position.
+ *
+ * A absolute value can be set (like `10`), or a percent value
+ * can be set (like `'120%'`、`['55%', 23]`), which is based
+ * on its
+ * [symbolSize](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolSize)
+ * .
+ *
+ * For example, `[0, '-50%']` means the graphic element will
+ * be adjusted upward half of the size of itself.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * This attribute can be set at the
+ * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolOffset)
+ * , where all data items in the series will be affected by
+ * this attribute. And this attribute can also be set at
+ * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolOffset)
+ * in
+ * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
+ * , where only the data item is affected by this attribute.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @default
+ * [0, 0]
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolOffset
+ */
+ symbolOffset?: any[];
+
+ /**
+ * The degree of the rotation of a graphic element.
+ *
+ * Notice, `symbolRotate` will not affect the position of the
+ * graphic element, but just rotating by its center.
+ *
+ * This attribute can be set at the
+ * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRotate)
+ * , where all data items in the series will be affected by
+ * this attribute. And this attribute can also be set at
+ * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolRotate)
+ * in
+ * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
+ * , where only the data item is affected by this attribute.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolRotate
+ */
+ symbolRotate?: number;
+
+ /**
+ * Whether to repeat a graphic element. Optional values:
+ *
+ * + `false`/`null`/`undefined`: Do not repeat, that is, each
+ * graphic element represents a data item.
+ * + `true`: Repeat, that is, a group of repeated graphic elements
+ * represent a data item.
+ * The repeat times is calculated according to
+ * [data](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data)
+ * .
+ * + a number: Repeat, that is a group of repeated graphic elements
+ * represent a data item.
+ * The repeat times is always the given number.
+ * + `'fixed'`: Repeat, that is a group of repeated graphic
+ * elements represent a data item.
+ * The repeat times is calcuated according to
+ * [symbolBoundingData](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolBoundingData)
+ * , that is, the repeat times has nothing to do with
+ * [data](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data)
+ *
+ *
+ * The setting is useful when graphic elements are used as background.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * This attribute can be set at the
+ * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
+ * , where all data items in the series will be affected by
+ * this attribute. And this attribute can also be set at
+ * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolRepeat)
+ * in
+ * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
+ * , where only the data item is affected by this attribute.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolRepeat
+ */
+ symbolRepeat?: boolean | number | string;
+
+ /**
+ * When
+ * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
+ * is used, `symbolRepeatDirection` specifies the render order
+ * of the repeatd graphic elements.
+ * The setting is useful in these cases below:
+ *
+ * + If
+ * [symbolMargin](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolMargin)
+ * is set as a negative value, repeated elements will overlap
+ * with each other.
+ * `symbolRepeatDirection` can be used to specify the order
+ * of overlap.
+ *
+ * + If
+ * [animationDelay](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.animationDelay)
+ * or
+ * [animationDelayUpdate](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.animationDelayUpdate)
+ * is used, `symbolRepeatDirection` specifies the order of index.
+ *
+ * Optional values can be `'start'` and `'end'`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * This attribute can be set at the
+ * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeatDirection)
+ * , where all data items in the series will be affected by
+ * this attribute. And this attribute can also be set at
+ * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolRepeatDirection)
+ * in
+ * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
+ * , where only the data item is affected by this attribute.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @default
+ * "start"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolRepeatDirection
+ */
+ symbolRepeatDirection?: string;
+
+ /**
+ * Specify margin of both sides of a graphic element.
+ * ("both sides" means the two sides in the direction of its
+ * value axis). It works only when
+ * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
+ * is used.
+ *
+ * Absolute value can be used (like `20`), or percent value
+ * can be used (like `'-30%'`), which is based on its
+ * [symbolSize](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolSize)
+ * .
+ *
+ * `symbolMargin` can be positive value or negative value, which
+ * enables overlap of graphic elements when
+ * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
+ * is used.
+ *
+ * A `"!"` can be appended on the end of the value, like `"30%!"`
+ * or `25!`, which means a extra blank will be added on the
+ * both ends, otherwise the graphic elements on both ends will
+ * reach the boundary by default.
+ *
+ * Notice:
+ *
+ * + When
+ * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
+ * is `true`/`'fixed'`: The given `symbolMargin` is just a reference
+ * value.
+ * The final gap of graphic elements will be calculated according
+ * to
+ * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
+ * , `symbolMargin` and
+ * [symbolBoundingData](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolBoundingData)
+ * .
+ * + When
+ * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
+ * is set as a number: `symbolMargin` does not work any more.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * This attribute can be set at the
+ * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolMargin)
+ * , where all data items in the series will be affected by
+ * this attribute. And this attribute can also be set at
+ * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolMargin)
+ * in
+ * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
+ * , where only the data item is affected by this attribute.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolMargin
+ */
+ symbolMargin?: number | string;
+
+ /**
+ * Whether to clip graphic elements.
+ *
+ * + `false`/null/undefined: The whole graphic elements represent
+ * the size of value.
+ * + `true`: The clipped graphic elements reperent the size
+ * of value.
+ *
+ * `symbolClip` is usually used in this case: both "amont value"
+ * and "current value" should be displayed.
+ * In this case, tow series can be used.
+ * One for background, using complete graphic elements, while
+ * another for current value, using clipped graphic elements.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * Notice, in the example above,
+ *
+ * + The same
+ * [symbolBoundingData](https://ecomfe.github.io/echarts-doc/public/en/option.html#series.pictorialBar.symbolBoundingData)
+ * is used in "background series" and "current value seires",
+ * which makes their graphic elements are the same size.
+ * + A bigger
+ * [z](https://ecomfe.github.io/echarts-doc/public/en/option.html#series.pictorialBar.z)
+ * is set on "current value series", which makes it is over
+ * "background series".
+ *
+ * This attribute can be set at the
+ * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolClip)
+ * , where all data items in the series will be affected by
+ * this attribute. And this attribute can also be set at
+ * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolClip)
+ * in
+ * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
+ * , where only the data item is affected by this attribute.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolClip
+ */
+ symbolClip?: boolean;
+
+ /**
+ * Defines a bounding area availble for the graphic elements.
+ * This setting gives a data, which will then be translated
+ * to a coordinate on the coordinate system.
+ * The coordinate specifies the bounding.
+ * Namely, if `symbolBoundingData` is set, the final size (or
+ * layout) of the graphic elements depend on the `symbolBoundingData`.
+ *
+ * When reference bar is horizontal, `symbolBoundingData` is
+ * coresponding to x axis, while reference bar is vertical,
+ * `symbolBoundingData` is coresponding to y axis.
+ *
+ * Rule:
+ *
+ * + If
+ * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
+ * is not used:
+ *
+ * `symbolBoundingData` is the same as the size of reference
+ * bar by default.
+ * The size of the graphic element is detemined by `symbolBoundingData`.
+ * For example, if reference bar is vertical, its data is `24`,
+ * `symbolSize` is set as `[30, '50%']`, `symbolBoundingData`
+ * is set as `124`, the final size of the graphic element will
+ * be `124 * 50% = 62`.
+ * If `symbolBoundingData` is not set, the final size will be
+ * `24 * 50% = 12`.
+ *
+ * + If
+ * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
+ * is used:
+ *
+ * `symbolBoundingData` is the extreme value of the coordinate
+ * system.
+ * `symbolBoundingData` defines a bounding area, where repeated
+ * graphic elements layout according to
+ * [symbolMargin](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolMargin)
+ * and
+ * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
+ * and
+ * [symbolSize](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolSize)
+ *
+ *
+ * Both these settings determine the gap size of the repeated
+ * graphic elements.
+ *
+ * `symbolBoundingData` is usually used in these cases:
+ *
+ * + When
+ * [symbolCilp](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolClip)
+ * is used:
+ *
+ * And a series is used to display "amont value", while another
+ * series is used to display "current value".
+ * `symbolBoundingData` can be used to ensure that the graphic
+ * elements of these two series are at the same size.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * + When
+ * [symbolRepeat](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolRepeat)
+ * is used:
+ *
+ * `symbolBoundingData` can be use to ensure the gaps of the
+ * elements in different bars are the same.
+ * Of cource, you can do not set `symbolBoundingData`, whose
+ * default value is a stable value (extreme value of the coordinate
+ * system).
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * `symbolBoundingData` can also be an array, such as `[-40,
+ * 60]`, which specifies both negative and positive symbolBoundingData.
+ *
+ * Check this example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * This attribute can be set at the
+ * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolBoundingData)
+ * , where all data items in the series will be affected by
+ * this attribute. And this attribute can also be set at
+ * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolBoundingData)
+ * in
+ * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
+ * , where only the data item is affected by this attribute.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolBoundingData
+ */
+ symbolBoundingData?: number;
+
+ /**
+ * Image can be used as the pattern of graphic elements.
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * `symbolPatternSize` specifies the size of pattern image.
+ * For example, if `symbolPatternSize` is `400`, the pattern
+ * image will be displayed at the size of `400px * 400px`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * This attribute can be set at the
+ * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.symbolPatternSize)
+ * , where all data items in the series will be affected by
+ * this attribute. And this attribute can also be set at
+ * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolPatternSize)
+ * in
+ * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
+ * , where only the data item is affected by this attribute.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @default
+ * 400
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.symbolPatternSize
+ */
+ symbolPatternSize?: number;
+
+ /**
+ * Specify the relationship of overlap between gaphic elements.
+ * A bigger value means higher.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.z
+ */
+ z?: number;
+
+ /**
+ * Whether to enable hover animation.
+ *
+ * This attribute can be set at the
+ * [root level of a series](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.hoverAnimation)
+ * , where all data items in the series will be affected by
+ * this attribute. And this attribute can also be set at
+ * [each data item](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.hoverAnimation)
+ * in
+ * [series-pictorialBar.data](https://ecomfe.github.io/echarts-doc/public/en/option.htmlseries-pictorialBar.data)
+ * , where only the data item is affected by this attribute.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.hoverAnimation
+ */
+ hoverAnimation?: boolean;
+
+ /**
+ * Whether to enable animation.
+ *
+ *
+ * @default
+ * "true"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animation
+ */
+ animation?: boolean;
+
+ /**
+ * Whether to set graphic number threshold to animation.
+ * Animation will be disabled when graphic number is larger
+ * than threshold.
+ *
+ *
+ * @default
+ * 2000
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animationThreshold
+ */
+ animationThreshold?: number;
+
+ /**
+ * Duration of the first animation, which supports callback
+ * function for different data to have different animation effect:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @default
+ * 1000
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animationDuration
+ */
+ animationDuration?: Function | number;
+
+ /**
+ * Easing method used for the first animation.
+ * Varied easing effects can be found at
+ * [easing effect example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=line-easing)
+ * .
+ *
+ *
+ * @default
+ * "cubicOut"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animationEasing
+ */
+ animationEasing?: string;
+
+ /**
+ * Time for animation to complete, which supports callback function
+ * for different data to have different animation effect:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @default
+ * 300
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animationDurationUpdate
+ */
+ animationDurationUpdate?: Function | number;
+
+ /**
+ * Easing method used for animation.
+ *
+ *
+ * @default
+ * "cubicOut"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animationEasingUpdate
+ */
+ animationEasingUpdate?: string;
+
+ /**
+ * Specify the delay time before animation start.
+ * Callback function can be used, where different delay time
+ * can be used on different element.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animationDelay
+ */
+ animationDelay?: Function | number;
+
+ /**
+ * Specify the delay time before update animation.
+ * Callback function can be used, where different delay time
+ * can be used on different element.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.animationDelayUpdate
+ */
+ animationDelayUpdate?: Function | number;
+
+ /**
+ * The style setting of the text label in a single bar.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values to
+ * represent position of label relative to top-left corner
+ * of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * "inside"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Rotate label, from -90 degree to 90, positive value represents
+ * rotate anti-clockwise.
+ *
+ * See:
+ * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rotate
+ */
+ rotate?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent level
+ * will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight` in
+ * parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
+ * right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`, which
+ * represents the percent of `contentWidth` (that is, the
+ * width without `padding`) of its container box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on `outerWith`
+ * in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich` property.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when using
+ * background image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4,
+ * 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3,
+ * 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make
+ * simple table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth`
+ * (that is, the width without `padding`) of its
+ * container box.
+ * It is based on `contentWidth` because that each
+ * text fregment is layout based on the `content
+ * box`, where it makes no sense that calculating
+ * width based on `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using
+ * background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for example
+ * `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
+ * `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will not
+ * be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values
+ * to represent position of label relative to top-left
+ * corner of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Rotate label, from -90 degree to 90, positive value
+ * represents rotate anti-clockwise.
+ *
+ * See:
+ * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rotate
+ */
+ rotate?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of
+ * `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4,
+ * 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich`
+ * property. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`,
+ * `verticalAlign` in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when
+ * using background image, or auto adapted by
+ * default.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4,
+ * 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding:
+ * [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify
+ * it.
+ * You may want to use it in some cases like
+ * make simple table or using background image
+ * (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * `width` can also be percent string, like
+ * `'100%'`, which represents the percent of
+ * `contentWidth` (that is, the width without
+ * `padding`) of its container box.
+ * It is based on `contentWidth` because that
+ * each text fregment is layout based on the
+ * `content box`, where it makes no sense that
+ * calculating width based on `outerWith` in
+ * prectice.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like
+ * using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of
+ * `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`,
+ * or `'dotted'`. `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.emphasis.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+ };
+
+ /**
+ * tooltip settings in this series data.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip
+ */
+ tooltip?: {
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The position of the tooltip's floating layer, which would
+ * follow the position of mouse by default.
+ *
+ * Options:
+ *
+ * + `Array`
+ *
+ * Display the position of tooltip's floating layer through
+ * array, which supports absolute position and relative
+ * percentage.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
+ *
+ * + `Function`
+ *
+ * Callback function in the following form:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
+ *
+ * **Parameters:**
+ * point: Mouse position.
+ * param: The same as formatter.
+ * dom: The DOM object of tooltip.
+ * rect: It is valid only when mouse is on graphic elements,
+ * which stands for a bounding box with `x`, `y`, `width`,
+ * and `height`.
+ * size: The size of dom echarts container.
+ * For example: `{contentSize: [width, height], viewSize:
+ * [width, height]}`.
+ *
+ * **Return:**
+ * Return value is an array standing for tooltip position,
+ * which can be absolute pixels, or relative percentage.
+ * Or can be an object, like `{left: 10, top: 30}`, or `{right:
+ * '20%', bottom: 40}`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
+ *
+ * Or:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
+ *
+ * + `'inside'`
+ *
+ * Center position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'top'`
+ *
+ * Top position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'left'`
+ *
+ * Left position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'right'`
+ *
+ * Right position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'bottom'`
+ *
+ * Bottom position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.position
+ */
+ position?: any[] | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The content formatter of tooltip's floating layer which
+ * supports string template and callback function.
+ *
+ * **1\. String template**
+ *
+ * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
+ * and `{e}`, which stands for series name, data name and
+ * data value and ect. When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is set to be `'axis'`, there may be data from multiple
+ * series.
+ * In this time, series index can be refered as `{a0}`,
+ * `{a1}`, or `{a2}`.
+ *
+ * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
+ * different series types:
+ *
+ * + Line (area) charts, bar (column) charts, K charts:
+ * `{a}` for series name, `{b}` for category name, `{c}`
+ * for data value, `{d}` for none;
+ *
+ * + Scatter (bubble) charts: `{a}` for series name, `{b}`
+ * for data name, `{c}` for data value, `{d}` for none;
+ *
+ * + Map: `{a}` for series name, `{b}` for area name, `{c}`
+ * for merging data, `{d}` for none;
+ *
+ * + Pie charts, gauge charts, funnel charts: `{a}` for
+ * series name, `{b}` for data item name, `{c}` for data
+ * value, `{d}` for percentage.
+ *
+ * **Example:**
+ *
+ * ```
+ * formatter: '{b0}: {c0}
{b1}: {c1}'
+ *
+ * ```
+ *
+ * **2\. Callback function**
+ *
+ * The format of callback function:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
+ *
+ * The first parameter `params` is the data that the formatter
+ * needs. Its format is shown as follows:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
+ *
+ * When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'axis'`, or when tooltip is triggered by
+ * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
+ * , `params` is the data array of multiple series.
+ * The content of each item of the array is the same as
+ * above. Besides,
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
+ *
+ * **Note:** Using array to present all the parameters in
+ * ECharts 2.x is not supported anymore.
+ *
+ * The second parameter `ticket` is the asynchronous callback
+ * flag which should be used along with the third parameter
+ * `callback` when it is used.
+ *
+ * The third parameter `callback` is asynchronous callback.
+ * When the content of tooltip is acquired asynchronously,
+ * `ticket` and `htm` as introduced above can be used to
+ * update tooltip with callback.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The background color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * "rgba(50,50,50,0.7)"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.backgroundColor
+ */
+ backgroundColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * '#333'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border width of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The floating layer of tooltip space around content.
+ * The unit is px.
+ * Default values for each position are 5.
+ * And they can be set to different values with left, right,
+ * top, and bottom.
+ *
+ * Examples:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip)
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.padding
+ */
+ padding?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The text syle of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle
+ */
+ textStyle?: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 14
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.pictorialBar.data.tooltip.textStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.textStyle.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * Extra CSS style for floating layer.
+ * The following is an example for adding shadow.
+ *
+ * ```
+ * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
+ *
+ * ```
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pictorialBar.data.tooltip.extraCssText
+ */
+ extraCssText?: string;
+ };
+ }
+ }
}
}
diff --git a/types/echarts/options/series/pie.d.ts b/types/echarts/options/series/pie.d.ts
index b9f10c3c13..4abc6db90c 100644
--- a/types/echarts/options/series/pie.d.ts
+++ b/types/echarts/options/series/pie.d.ts
@@ -2257,7 +2257,11 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-pie.data
*/
- data?: SeriesPie.Data | SeriesPie.Data[];
+ data?: (
+ number[]
+ | number[][]
+ | SeriesPie.DataObject[]
+ );
/**
* Mark point in a chart.
@@ -13914,7 +13918,7 @@ declare namespace echarts {
}
namespace SeriesPie {
- interface Data {
+ interface DataObject {
/**
* The name of data item.
diff --git a/types/echarts/options/series/radar.d.ts b/types/echarts/options/series/radar.d.ts
index 7363bffef6..6b0c3ea63e 100644
--- a/types/echarts/options/series/radar.d.ts
+++ b/types/echarts/options/series/radar.d.ts
@@ -2349,7 +2349,617 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.data
*/
- data?: {
+ data?: SeriesRadar.DataObject[];
+
+ /**
+ * `zlevel` value of all graghical elements in radar chart.
+ *
+ * `zlevel` is used to make layers with Canvas.
+ * Graphical elements with different `zlevel` values will be placed
+ * in different Canvases, which is a common optimization technique.
+ * We can put those frequently changed elements (like those with
+ * animations) to a seperate `zlevel`.
+ * Notice that too many Canvases will increase memory cost, and
+ * should be used carefully on mobile phones to avoid crash.
+ *
+ * Canvases with bigger `zlevel` will be placed on Canvases with
+ * smaller `zlevel`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.zlevel
+ */
+ zlevel?: number;
+
+ /**
+ * `z` value of all graghical elements in radar chart, which controls
+ * order of drawing graphical components.
+ * Components with smaller `z` values may be overwritten by those
+ * with larger `z` values.
+ *
+ * `z` has a lower priority to `zlevel`, and will not create new
+ * Canvas.
+ *
+ *
+ * @default
+ * 2
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.z
+ */
+ z?: number;
+
+ /**
+ * Whether to ignore mouse events.
+ * Default value is false, for triggering and responding to mouse
+ * events.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.silent
+ */
+ silent?: boolean;
+
+ /**
+ * Whether to enable animation.
+ *
+ *
+ * @default
+ * "true"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animation
+ */
+ animation?: boolean;
+
+ /**
+ * Whether to set graphic number threshold to animation.
+ * Animation will be disabled when graphic number is larger than
+ * threshold.
+ *
+ *
+ * @default
+ * 2000
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animationThreshold
+ */
+ animationThreshold?: number;
+
+ /**
+ * Duration of the first animation, which supports callback function
+ * for different data to have different animation effect:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar)
+ *
+ *
+ * @default
+ * 1000
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animationDuration
+ */
+ animationDuration?: Function | number;
+
+ /**
+ * Easing method used for the first animation.
+ * Varied easing effects can be found at
+ * [easing effect example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=line-easing)
+ * .
+ *
+ *
+ * @default
+ * "cubicOut"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animationEasing
+ */
+ animationEasing?: string;
+
+ /**
+ * Delay before updating the first animation, which supports callback
+ * function for different data to have different animation effect.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar)
+ *
+ * See
+ * [this example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-animation-delay)
+ * for more information.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animationDelay
+ */
+ animationDelay?: Function | number;
+
+ /**
+ * Time for animation to complete, which supports callback function
+ * for different data to have different animation effect:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar)
+ *
+ *
+ * @default
+ * 300
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animationDurationUpdate
+ */
+ animationDurationUpdate?: Function | number;
+
+ /**
+ * Easing method used for animation.
+ *
+ *
+ * @default
+ * "cubicOut"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animationEasingUpdate
+ */
+ animationEasingUpdate?: string;
+
+ /**
+ * Delay before updating animation, which supports callback function
+ * for different data to have different animation effect.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar)
+ *
+ * See
+ * [this example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-animation-delay)
+ * for more information.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animationDelayUpdate
+ */
+ animationDelayUpdate?: Function | number;
+
+ /**
+ * tooltip settings in this series.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip
+ */
+ tooltip?: {
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The position of the tooltip's floating layer, which would
+ * follow the position of mouse by default.
+ *
+ * Options:
+ *
+ * + `Array`
+ *
+ * Display the position of tooltip's floating layer through
+ * array, which supports absolute position and relative percentage.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
+ *
+ * + `Function`
+ *
+ * Callback function in the following form:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
+ *
+ * **Parameters:**
+ * point: Mouse position.
+ * param: The same as formatter.
+ * dom: The DOM object of tooltip.
+ * rect: It is valid only when mouse is on graphic elements,
+ * which stands for a bounding box with `x`, `y`, `width`, and
+ * `height`.
+ * size: The size of dom echarts container.
+ * For example: `{contentSize: [width, height], viewSize: [width,
+ * height]}`.
+ *
+ * **Return:**
+ * Return value is an array standing for tooltip position, which
+ * can be absolute pixels, or relative percentage.
+ * Or can be an object, like `{left: 10, top: 30}`, or `{right:
+ * '20%', bottom: 40}`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
+ *
+ * Or:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
+ *
+ * + `'inside'`
+ *
+ * Center position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'top'`
+ *
+ * Top position of the graphic element where the mouse is in,
+ * which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'left'`
+ *
+ * Left position of the graphic element where the mouse is in,
+ * which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'right'`
+ *
+ * Right position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'bottom'`
+ *
+ * Bottom position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.position
+ */
+ position?: any[] | string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The content formatter of tooltip's floating layer which supports
+ * string template and callback function.
+ *
+ * **1\. String template**
+ *
+ * The template variables are `{a}`, `{b}`, `{c}`, `{d}` and
+ * `{e}`, which stands for series name, data name and data value
+ * and ect. When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is set to be `'axis'`, there may be data from multiple series.
+ * In this time, series index can be refered as `{a0}`, `{a1}`,
+ * or `{a2}`.
+ *
+ * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for different
+ * series types:
+ *
+ * + Line (area) charts, bar (column) charts, K charts: `{a}`
+ * for series name, `{b}` for category name, `{c}` for data
+ * value, `{d}` for none;
+ *
+ * + Scatter (bubble) charts: `{a}` for series name, `{b}` for
+ * data name, `{c}` for data value, `{d}` for none;
+ *
+ * + Map: `{a}` for series name, `{b}` for area name, `{c}`
+ * for merging data, `{d}` for none;
+ *
+ * + Pie charts, gauge charts, funnel charts: `{a}` for series
+ * name, `{b}` for data item name, `{c}` for data value, `{d}`
+ * for percentage.
+ *
+ * **Example:**
+ *
+ * ```
+ * formatter: '{b0}: {c0}
{b1}: {c1}'
+ *
+ * ```
+ *
+ * **2\. Callback function**
+ *
+ * The format of callback function:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
+ *
+ * The first parameter `params` is the data that the formatter
+ * needs. Its format is shown as follows:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
+ *
+ * When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'axis'`, or when tooltip is triggered by
+ * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
+ * , `params` is the data array of multiple series.
+ * The content of each item of the array is the same as above.
+ * Besides,
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
+ *
+ * **Note:** Using array to present all the parameters in ECharts
+ * 2.x is not supported anymore.
+ *
+ * The second parameter `ticket` is the asynchronous callback
+ * flag which should be used along with the third parameter
+ * `callback` when it is used.
+ *
+ * The third parameter `callback` is asynchronous callback.
+ * When the content of tooltip is acquired asynchronously, `ticket`
+ * and `htm` as introduced above can be used to update tooltip
+ * with callback.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The background color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * "rgba(50,50,50,0.7)"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.backgroundColor
+ */
+ backgroundColor?: string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * '#333'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border width of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The floating layer of tooltip space around content.
+ * The unit is px.
+ * Default values for each position are 5.
+ * And they can be set to different values with left, right,
+ * top, and bottom.
+ *
+ * Examples:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.padding
+ */
+ padding?: number;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The text syle of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle
+ */
+ textStyle?: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 14
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight` in
+ * parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip.textStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`, which
+ * represents the percent of `contentWidth` (that is, the
+ * width without `padding`) of its container box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on `outerWith`
+ * in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * Extra CSS style for floating layer.
+ * The following is an example for adding shadow.
+ *
+ * ```
+ * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
+ *
+ * ```
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.extraCssText
+ */
+ extraCssText?: string;
+ };
+ }
+
+ namespace SeriesRadar {
+ interface DataObject {
/**
* Data item name
@@ -2365,7 +2975,7 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.data.value
*/
- value?: number;
+ value?: number | number[];
/**
* Symbol of single data.
@@ -4969,613 +5579,7 @@ declare namespace echarts {
*/
extraCssText?: string;
};
- };
-
- /**
- * `zlevel` value of all graghical elements in radar chart.
- *
- * `zlevel` is used to make layers with Canvas.
- * Graphical elements with different `zlevel` values will be placed
- * in different Canvases, which is a common optimization technique.
- * We can put those frequently changed elements (like those with
- * animations) to a seperate `zlevel`.
- * Notice that too many Canvases will increase memory cost, and
- * should be used carefully on mobile phones to avoid crash.
- *
- * Canvases with bigger `zlevel` will be placed on Canvases with
- * smaller `zlevel`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.zlevel
- */
- zlevel?: number;
-
- /**
- * `z` value of all graghical elements in radar chart, which controls
- * order of drawing graphical components.
- * Components with smaller `z` values may be overwritten by those
- * with larger `z` values.
- *
- * `z` has a lower priority to `zlevel`, and will not create new
- * Canvas.
- *
- *
- * @default
- * 2
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.z
- */
- z?: number;
-
- /**
- * Whether to ignore mouse events.
- * Default value is false, for triggering and responding to mouse
- * events.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.silent
- */
- silent?: boolean;
-
- /**
- * Whether to enable animation.
- *
- *
- * @default
- * "true"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animation
- */
- animation?: boolean;
-
- /**
- * Whether to set graphic number threshold to animation.
- * Animation will be disabled when graphic number is larger than
- * threshold.
- *
- *
- * @default
- * 2000
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animationThreshold
- */
- animationThreshold?: number;
-
- /**
- * Duration of the first animation, which supports callback function
- * for different data to have different animation effect:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar)
- *
- *
- * @default
- * 1000
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animationDuration
- */
- animationDuration?: Function | number;
-
- /**
- * Easing method used for the first animation.
- * Varied easing effects can be found at
- * [easing effect example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=line-easing)
- * .
- *
- *
- * @default
- * "cubicOut"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animationEasing
- */
- animationEasing?: string;
-
- /**
- * Delay before updating the first animation, which supports callback
- * function for different data to have different animation effect.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar)
- *
- * See
- * [this example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-animation-delay)
- * for more information.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animationDelay
- */
- animationDelay?: Function | number;
-
- /**
- * Time for animation to complete, which supports callback function
- * for different data to have different animation effect:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar)
- *
- *
- * @default
- * 300
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animationDurationUpdate
- */
- animationDurationUpdate?: Function | number;
-
- /**
- * Easing method used for animation.
- *
- *
- * @default
- * "cubicOut"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animationEasingUpdate
- */
- animationEasingUpdate?: string;
-
- /**
- * Delay before updating animation, which supports callback function
- * for different data to have different animation effect.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar)
- *
- * See
- * [this example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-animation-delay)
- * for more information.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.animationDelayUpdate
- */
- animationDelayUpdate?: Function | number;
-
- /**
- * tooltip settings in this series.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip
- */
- tooltip?: {
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The position of the tooltip's floating layer, which would
- * follow the position of mouse by default.
- *
- * Options:
- *
- * + `Array`
- *
- * Display the position of tooltip's floating layer through
- * array, which supports absolute position and relative percentage.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
- *
- * + `Function`
- *
- * Callback function in the following form:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
- *
- * **Parameters:**
- * point: Mouse position.
- * param: The same as formatter.
- * dom: The DOM object of tooltip.
- * rect: It is valid only when mouse is on graphic elements,
- * which stands for a bounding box with `x`, `y`, `width`, and
- * `height`.
- * size: The size of dom echarts container.
- * For example: `{contentSize: [width, height], viewSize: [width,
- * height]}`.
- *
- * **Return:**
- * Return value is an array standing for tooltip position, which
- * can be absolute pixels, or relative percentage.
- * Or can be an object, like `{left: 10, top: 30}`, or `{right:
- * '20%', bottom: 40}`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
- *
- * Or:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
- *
- * + `'inside'`
- *
- * Center position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'top'`
- *
- * Top position of the graphic element where the mouse is in,
- * which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'left'`
- *
- * Left position of the graphic element where the mouse is in,
- * which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'right'`
- *
- * Right position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'bottom'`
- *
- * Bottom position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.position
- */
- position?: any[] | string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The content formatter of tooltip's floating layer which supports
- * string template and callback function.
- *
- * **1\. String template**
- *
- * The template variables are `{a}`, `{b}`, `{c}`, `{d}` and
- * `{e}`, which stands for series name, data name and data value
- * and ect. When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is set to be `'axis'`, there may be data from multiple series.
- * In this time, series index can be refered as `{a0}`, `{a1}`,
- * or `{a2}`.
- *
- * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for different
- * series types:
- *
- * + Line (area) charts, bar (column) charts, K charts: `{a}`
- * for series name, `{b}` for category name, `{c}` for data
- * value, `{d}` for none;
- *
- * + Scatter (bubble) charts: `{a}` for series name, `{b}` for
- * data name, `{c}` for data value, `{d}` for none;
- *
- * + Map: `{a}` for series name, `{b}` for area name, `{c}`
- * for merging data, `{d}` for none;
- *
- * + Pie charts, gauge charts, funnel charts: `{a}` for series
- * name, `{b}` for data item name, `{c}` for data value, `{d}`
- * for percentage.
- *
- * **Example:**
- *
- * ```
- * formatter: '{b0}: {c0}
{b1}: {c1}'
- *
- * ```
- *
- * **2\. Callback function**
- *
- * The format of callback function:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
- *
- * The first parameter `params` is the data that the formatter
- * needs. Its format is shown as follows:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
- *
- * When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'axis'`, or when tooltip is triggered by
- * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
- * , `params` is the data array of multiple series.
- * The content of each item of the array is the same as above.
- * Besides,
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
- *
- * **Note:** Using array to present all the parameters in ECharts
- * 2.x is not supported anymore.
- *
- * The second parameter `ticket` is the asynchronous callback
- * flag which should be used along with the third parameter
- * `callback` when it is used.
- *
- * The third parameter `callback` is asynchronous callback.
- * When the content of tooltip is acquired asynchronously, `ticket`
- * and `htm` as introduced above can be used to update tooltip
- * with callback.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.formatter
- */
- formatter?: Function | string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The background color of tooltip's floating layer.
- *
- *
- * @default
- * "rgba(50,50,50,0.7)"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.backgroundColor
- */
- backgroundColor?: string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border color of tooltip's floating layer.
- *
- *
- * @default
- * '#333'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.borderColor
- */
- borderColor?: string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border width of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.borderWidth
- */
- borderWidth?: number;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The floating layer of tooltip space around content.
- * The unit is px.
- * Default values for each position are 5.
- * And they can be set to different values with left, right,
- * top, and bottom.
- *
- * Examples:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip)
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.padding
- */
- padding?: number;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The text syle of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle
- */
- textStyle?: {
-
- /**
- * text color.
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 14
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight` in
- * parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.radar.tooltip.textStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`, which
- * represents the percent of `contentWidth` (that is, the
- * width without `padding`) of its container box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on `outerWith`
- * in prectice.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.textStyle.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * Extra CSS style for floating layer.
- * The following is an example for adding shadow.
- *
- * ```
- * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
- *
- * ```
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-radar.tooltip.extraCssText
- */
- extraCssText?: string;
- };
+ }
}
}
}
diff --git a/types/echarts/options/series/sankey.d.ts b/types/echarts/options/series/sankey.d.ts
index e2e09407ad..a845ff2161 100644
--- a/types/echarts/options/series/sankey.d.ts
+++ b/types/echarts/options/series/sankey.d.ts
@@ -2252,7 +2252,802 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.data
*/
- data?: {
+ data?: (
+ (number | SeriesSankey.DataObject)[]
+ | (number | SeriesSankey.DataObject)[][]
+ );
+
+ /**
+ * Equals to
+ * [data](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.data)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.nodes
+ */
+ nodes?: any[];
+
+ /**
+ * The links between nodes.
+ * **Notes: The Sankey diagram theoretically only supports Directed
+ * Acyclic Graph(DAG), so please make sure that there is no cycle
+ * in the links.** For instance:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links
+ */
+ links?: {
+
+ /**
+ * The
+ * [name of source node](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.name)
+ * of edge
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.source
+ */
+ source?: string;
+
+ /**
+ * The
+ * [name of target node](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.name)
+ * of edge
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.target
+ */
+ target?: string;
+
+ /**
+ * The value of edge, which decides the width of edge.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.value
+ */
+ value?: number;
+
+ /**
+ * The line stlye of edge.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle
+ */
+ lineStyle?: {
+
+ /**
+ * The color of the edge in sankey graphs.
+ *
+ *
+ * @default
+ * "'#314656"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle.color
+ */
+ color?: string;
+
+ /**
+ * The opacity of the edge in sankey graph.
+ *
+ *
+ * @default
+ * 0.2
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle.opacity
+ */
+ opacity?: number;
+
+ /**
+ * The curveness of the edge in sankey graph.
+ *
+ *
+ * @default
+ * 0.5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle.curveness
+ */
+ curveness?: number;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.links.lineStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle
+ */
+ lineStyle?: {
+
+ /**
+ * The color of the edge in sankey graphs.
+ *
+ *
+ * @default
+ * "'#314656"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle.color
+ */
+ color?: string;
+
+ /**
+ * The opacity of the edge in sankey graph.
+ *
+ *
+ * @default
+ * 0.2
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle.opacity
+ */
+ opacity?: number;
+
+ /**
+ * The curveness of the edge in sankey graph.
+ *
+ *
+ * @default
+ * 0.5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle.curveness
+ */
+ curveness?: number;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.links.emphasis.lineStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * Equals to
+ * [links](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.edges
+ */
+ edges?: any[];
+
+ /**
+ * Whether to ignore mouse events.
+ * Default value is false, for triggering and responding to mouse
+ * events.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.silent
+ */
+ silent?: boolean;
+
+ /**
+ * Whether to enable animation.
+ *
+ *
+ * @default
+ * "true"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animation
+ */
+ animation?: boolean;
+
+ /**
+ * Whether to set graphic number threshold to animation.
+ * Animation will be disabled when graphic number is larger than
+ * threshold.
+ *
+ *
+ * @default
+ * 2000
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animationThreshold
+ */
+ animationThreshold?: number;
+
+ /**
+ * Duration of the first animation, which supports callback function
+ * for different data to have different animation effect:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey)
+ *
+ *
+ * @default
+ * 1000
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animationDuration
+ */
+ animationDuration?: Function | number;
+
+ /**
+ * Easing method used for the first animation.
+ * Varied easing effects can be found at
+ * [easing effect example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=line-easing)
+ * .
+ *
+ *
+ * @default
+ * "linear"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animationEasing
+ */
+ animationEasing?: string;
+
+ /**
+ * Delay before updating the first animation, which supports callback
+ * function for different data to have different animation effect.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey)
+ *
+ * See
+ * [this example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-animation-delay)
+ * for more information.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animationDelay
+ */
+ animationDelay?: Function | number;
+
+ /**
+ * Time for animation to complete, which supports callback function
+ * for different data to have different animation effect:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey)
+ *
+ *
+ * @default
+ * 300
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animationDurationUpdate
+ */
+ animationDurationUpdate?: Function | number;
+
+ /**
+ * Easing method used for animation.
+ *
+ *
+ * @default
+ * "cubicOut"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animationEasingUpdate
+ */
+ animationEasingUpdate?: string;
+
+ /**
+ * Delay before updating animation, which supports callback function
+ * for different data to have different animation effect.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey)
+ *
+ * See
+ * [this example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-animation-delay)
+ * for more information.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animationDelayUpdate
+ */
+ animationDelayUpdate?: Function | number;
+
+ /**
+ * tooltip settings in this series.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip
+ */
+ tooltip?: {
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The position of the tooltip's floating layer, which would
+ * follow the position of mouse by default.
+ *
+ * Options:
+ *
+ * + `Array`
+ *
+ * Display the position of tooltip's floating layer through
+ * array, which supports absolute position and relative percentage.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
+ *
+ * + `Function`
+ *
+ * Callback function in the following form:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
+ *
+ * **Parameters:**
+ * point: Mouse position.
+ * param: The same as formatter.
+ * dom: The DOM object of tooltip.
+ * rect: It is valid only when mouse is on graphic elements,
+ * which stands for a bounding box with `x`, `y`, `width`, and
+ * `height`.
+ * size: The size of dom echarts container.
+ * For example: `{contentSize: [width, height], viewSize: [width,
+ * height]}`.
+ *
+ * **Return:**
+ * Return value is an array standing for tooltip position, which
+ * can be absolute pixels, or relative percentage.
+ * Or can be an object, like `{left: 10, top: 30}`, or `{right:
+ * '20%', bottom: 40}`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
+ *
+ * Or:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
+ *
+ * + `'inside'`
+ *
+ * Center position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'top'`
+ *
+ * Top position of the graphic element where the mouse is in,
+ * which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'left'`
+ *
+ * Left position of the graphic element where the mouse is in,
+ * which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'right'`
+ *
+ * Right position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'bottom'`
+ *
+ * Bottom position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.position
+ */
+ position?: any[] | string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The content formatter of tooltip's floating layer which supports
+ * string template and callback function.
+ *
+ * **1\. String template**
+ *
+ * The template variables are `{a}`, `{b}`, `{c}`, `{d}` and
+ * `{e}`, which stands for series name, data name and data value
+ * and ect. When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is set to be `'axis'`, there may be data from multiple series.
+ * In this time, series index can be refered as `{a0}`, `{a1}`,
+ * or `{a2}`.
+ *
+ * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for different
+ * series types:
+ *
+ * + Line (area) charts, bar (column) charts, K charts: `{a}`
+ * for series name, `{b}` for category name, `{c}` for data
+ * value, `{d}` for none;
+ *
+ * + Scatter (bubble) charts: `{a}` for series name, `{b}` for
+ * data name, `{c}` for data value, `{d}` for none;
+ *
+ * + Map: `{a}` for series name, `{b}` for area name, `{c}`
+ * for merging data, `{d}` for none;
+ *
+ * + Pie charts, gauge charts, funnel charts: `{a}` for series
+ * name, `{b}` for data item name, `{c}` for data value, `{d}`
+ * for percentage.
+ *
+ * **Example:**
+ *
+ * ```
+ * formatter: '{b0}: {c0}
{b1}: {c1}'
+ *
+ * ```
+ *
+ * **2\. Callback function**
+ *
+ * The format of callback function:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
+ *
+ * The first parameter `params` is the data that the formatter
+ * needs. Its format is shown as follows:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
+ *
+ * When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'axis'`, or when tooltip is triggered by
+ * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
+ * , `params` is the data array of multiple series.
+ * The content of each item of the array is the same as above.
+ * Besides,
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
+ *
+ * **Note:** Using array to present all the parameters in ECharts
+ * 2.x is not supported anymore.
+ *
+ * The second parameter `ticket` is the asynchronous callback
+ * flag which should be used along with the third parameter
+ * `callback` when it is used.
+ *
+ * The third parameter `callback` is asynchronous callback.
+ * When the content of tooltip is acquired asynchronously, `ticket`
+ * and `htm` as introduced above can be used to update tooltip
+ * with callback.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The background color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * "rgba(50,50,50,0.7)"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.backgroundColor
+ */
+ backgroundColor?: string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * '#333'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border width of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The floating layer of tooltip space around content.
+ * The unit is px.
+ * Default values for each position are 5.
+ * And they can be set to different values with left, right,
+ * top, and bottom.
+ *
+ * Examples:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.padding
+ */
+ padding?: number;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The text syle of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle
+ */
+ textStyle?: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 14
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight` in
+ * parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip.textStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`, which
+ * represents the percent of `contentWidth` (that is, the
+ * width without `padding`) of its container box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on `outerWith`
+ * in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * Extra CSS style for floating layer.
+ * The following is an example for adding shadow.
+ *
+ * ```
+ * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
+ *
+ * ```
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.extraCssText
+ */
+ extraCssText?: string;
+ };
+ }
+
+ namespace SeriesSankey {
+ interface DataObject {
/**
* The name of data item.
@@ -4458,795 +5253,7 @@ declare namespace echarts {
*/
extraCssText?: string;
};
- };
-
- /**
- * Equals to
- * [data](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.data)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.nodes
- */
- nodes?: any[];
-
- /**
- * The links between nodes.
- * **Notes: The Sankey diagram theoretically only supports Directed
- * Acyclic Graph(DAG), so please make sure that there is no cycle
- * in the links.** For instance:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links
- */
- links?: {
-
- /**
- * The
- * [name of source node](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.name)
- * of edge
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.source
- */
- source?: string;
-
- /**
- * The
- * [name of target node](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-graph.data.name)
- * of edge
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.target
- */
- target?: string;
-
- /**
- * The value of edge, which decides the width of edge.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.value
- */
- value?: number;
-
- /**
- * The line stlye of edge.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle
- */
- lineStyle?: {
-
- /**
- * The color of the edge in sankey graphs.
- *
- *
- * @default
- * "'#314656"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle.color
- */
- color?: string;
-
- /**
- * The opacity of the edge in sankey graph.
- *
- *
- * @default
- * 0.2
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle.opacity
- */
- opacity?: number;
-
- /**
- * The curveness of the edge in sankey graph.
- *
- *
- * @default
- * 0.5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle.curveness
- */
- curveness?: number;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.links.lineStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.lineStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis
- */
- emphasis?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle
- */
- lineStyle?: {
-
- /**
- * The color of the edge in sankey graphs.
- *
- *
- * @default
- * "'#314656"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle.color
- */
- color?: string;
-
- /**
- * The opacity of the edge in sankey graph.
- *
- *
- * @default
- * 0.2
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle.opacity
- */
- opacity?: number;
-
- /**
- * The curveness of the edge in sankey graph.
- *
- *
- * @default
- * 0.5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle.curveness
- */
- curveness?: number;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.links.emphasis.lineStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links.emphasis.lineStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
- };
- };
- };
-
- /**
- * Equals to
- * [links](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.links)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.edges
- */
- edges?: any[];
-
- /**
- * Whether to ignore mouse events.
- * Default value is false, for triggering and responding to mouse
- * events.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.silent
- */
- silent?: boolean;
-
- /**
- * Whether to enable animation.
- *
- *
- * @default
- * "true"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animation
- */
- animation?: boolean;
-
- /**
- * Whether to set graphic number threshold to animation.
- * Animation will be disabled when graphic number is larger than
- * threshold.
- *
- *
- * @default
- * 2000
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animationThreshold
- */
- animationThreshold?: number;
-
- /**
- * Duration of the first animation, which supports callback function
- * for different data to have different animation effect:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey)
- *
- *
- * @default
- * 1000
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animationDuration
- */
- animationDuration?: Function | number;
-
- /**
- * Easing method used for the first animation.
- * Varied easing effects can be found at
- * [easing effect example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=line-easing)
- * .
- *
- *
- * @default
- * "linear"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animationEasing
- */
- animationEasing?: string;
-
- /**
- * Delay before updating the first animation, which supports callback
- * function for different data to have different animation effect.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey)
- *
- * See
- * [this example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-animation-delay)
- * for more information.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animationDelay
- */
- animationDelay?: Function | number;
-
- /**
- * Time for animation to complete, which supports callback function
- * for different data to have different animation effect:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey)
- *
- *
- * @default
- * 300
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animationDurationUpdate
- */
- animationDurationUpdate?: Function | number;
-
- /**
- * Easing method used for animation.
- *
- *
- * @default
- * "cubicOut"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animationEasingUpdate
- */
- animationEasingUpdate?: string;
-
- /**
- * Delay before updating animation, which supports callback function
- * for different data to have different animation effect.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey)
- *
- * See
- * [this example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-animation-delay)
- * for more information.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.animationDelayUpdate
- */
- animationDelayUpdate?: Function | number;
-
- /**
- * tooltip settings in this series.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip
- */
- tooltip?: {
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The position of the tooltip's floating layer, which would
- * follow the position of mouse by default.
- *
- * Options:
- *
- * + `Array`
- *
- * Display the position of tooltip's floating layer through
- * array, which supports absolute position and relative percentage.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
- *
- * + `Function`
- *
- * Callback function in the following form:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
- *
- * **Parameters:**
- * point: Mouse position.
- * param: The same as formatter.
- * dom: The DOM object of tooltip.
- * rect: It is valid only when mouse is on graphic elements,
- * which stands for a bounding box with `x`, `y`, `width`, and
- * `height`.
- * size: The size of dom echarts container.
- * For example: `{contentSize: [width, height], viewSize: [width,
- * height]}`.
- *
- * **Return:**
- * Return value is an array standing for tooltip position, which
- * can be absolute pixels, or relative percentage.
- * Or can be an object, like `{left: 10, top: 30}`, or `{right:
- * '20%', bottom: 40}`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
- *
- * Or:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
- *
- * + `'inside'`
- *
- * Center position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'top'`
- *
- * Top position of the graphic element where the mouse is in,
- * which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'left'`
- *
- * Left position of the graphic element where the mouse is in,
- * which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'right'`
- *
- * Right position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'bottom'`
- *
- * Bottom position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.position
- */
- position?: any[] | string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The content formatter of tooltip's floating layer which supports
- * string template and callback function.
- *
- * **1\. String template**
- *
- * The template variables are `{a}`, `{b}`, `{c}`, `{d}` and
- * `{e}`, which stands for series name, data name and data value
- * and ect. When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is set to be `'axis'`, there may be data from multiple series.
- * In this time, series index can be refered as `{a0}`, `{a1}`,
- * or `{a2}`.
- *
- * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for different
- * series types:
- *
- * + Line (area) charts, bar (column) charts, K charts: `{a}`
- * for series name, `{b}` for category name, `{c}` for data
- * value, `{d}` for none;
- *
- * + Scatter (bubble) charts: `{a}` for series name, `{b}` for
- * data name, `{c}` for data value, `{d}` for none;
- *
- * + Map: `{a}` for series name, `{b}` for area name, `{c}`
- * for merging data, `{d}` for none;
- *
- * + Pie charts, gauge charts, funnel charts: `{a}` for series
- * name, `{b}` for data item name, `{c}` for data value, `{d}`
- * for percentage.
- *
- * **Example:**
- *
- * ```
- * formatter: '{b0}: {c0}
{b1}: {c1}'
- *
- * ```
- *
- * **2\. Callback function**
- *
- * The format of callback function:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
- *
- * The first parameter `params` is the data that the formatter
- * needs. Its format is shown as follows:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
- *
- * When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'axis'`, or when tooltip is triggered by
- * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
- * , `params` is the data array of multiple series.
- * The content of each item of the array is the same as above.
- * Besides,
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
- *
- * **Note:** Using array to present all the parameters in ECharts
- * 2.x is not supported anymore.
- *
- * The second parameter `ticket` is the asynchronous callback
- * flag which should be used along with the third parameter
- * `callback` when it is used.
- *
- * The third parameter `callback` is asynchronous callback.
- * When the content of tooltip is acquired asynchronously, `ticket`
- * and `htm` as introduced above can be used to update tooltip
- * with callback.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.formatter
- */
- formatter?: Function | string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The background color of tooltip's floating layer.
- *
- *
- * @default
- * "rgba(50,50,50,0.7)"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.backgroundColor
- */
- backgroundColor?: string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border color of tooltip's floating layer.
- *
- *
- * @default
- * '#333'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.borderColor
- */
- borderColor?: string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border width of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.borderWidth
- */
- borderWidth?: number;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The floating layer of tooltip space around content.
- * The unit is px.
- * Default values for each position are 5.
- * And they can be set to different values with left, right,
- * top, and bottom.
- *
- * Examples:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip)
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.padding
- */
- padding?: number;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The text syle of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle
- */
- textStyle?: {
-
- /**
- * text color.
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 14
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight` in
- * parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.sankey.tooltip.textStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`, which
- * represents the percent of `contentWidth` (that is, the
- * width without `padding`) of its container box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on `outerWith`
- * in prectice.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.textStyle.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * Extra CSS style for floating layer.
- * The following is an example for adding shadow.
- *
- * ```
- * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
- *
- * ```
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sankey.tooltip.extraCssText
- */
- extraCssText?: string;
- };
+ }
}
}
}
diff --git a/types/echarts/options/series/scatter.d.ts b/types/echarts/options/series/scatter.d.ts
index c15e78796e..dd2c9f804c 100644
--- a/types/echarts/options/series/scatter.d.ts
+++ b/types/echarts/options/series/scatter.d.ts
@@ -2410,2305 +2410,10 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data
*/
- data?: {
-
- /**
- * the name of data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.name
- */
- name?: string;
-
- /**
- * the value of data item.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.value
- */
- value?: any[];
-
- /**
- * Symbol of single data.
- *
- * Icon types provided by ECharts includes `'circle'`, `'rect'`,
- * `'roundRect'`, `'triangle'`, `'diamond'`, `'pin'`, `'arrow'`,
- * `'none'`
- *
- * It can be set to an image with `'image://url'` , in which
- * URL is the link to an image, or `dataURI` of an image.
- *
- * An image URL example:
- *
- * ```
- * 'image://http://xxx.xxx.xxx/a/b.png'
- *
- * ```
- *
- * A `dataURI` example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data)
- *
- * Icons can be set to arbitrary vector path via `'path://'`
- * in ECharts.
- * As compared with raster image, vector paths prevent from
- * jagging and blurring when scaled, and have a better control
- * over changing colors.
- * Size of vectoer icon will be adapted automatically.
- * Refer to
- * [SVG PathData](http://www.w3.org/TR/SVG/paths.html#PathData)
- * for more information about format of path.
- * You may export vector paths from tools like Adobe Illustrator.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.symbol
- */
- symbol?: string;
-
- /**
- * single data symbol size.
- * It can be set to single numbers like `10`, or use an array
- * to represent width and height.
- * For example, `[20, 10]` means symbol width is `20`, and height
- * is`10`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.symbolSize
- */
- symbolSize?: any[] | number;
-
- /**
- * Rotate degree of single data symbol.
- * Note that when `symbol` is set to be `'arrow'` in `markLine`,
- * `symbolRotate` value will be ignored, and compulsively use
- * tangent angle.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.symbolRotate
- */
- symbolRotate?: number;
-
- /**
- * Whether to keep aspect for symbols in the form of `path://`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.symbolKeepAspect
- */
- symbolKeepAspect?: boolean;
-
- /**
- * Offset of single data symbol relative to original position.
- * By default, symbol will be put in the center position of
- * data.
- * But if symbol is from user-defined vector path or image,
- * you may not expect symbol to be in center.
- * In this case, you may use this attribute to set offset to
- * default position.
- * It can be in absolute pixel value, or in relative percentage
- * value.
- *
- * For example, `[0, '50%']` means to move upside side position
- * of symbol height.
- * It can be used to make the arrow in the bottom to be at data
- * position when symbol is pin.
- *
- *
- * @default
- * [0, 0]
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.symbolOffset
- */
- symbolOffset?: any[];
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values to
- * represent position of label relative to top-left corner
- * of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * "inside"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.distance
- */
- distance?: number;
-
- /**
- * Rotate label, from -90 degree to 90, positive value represents
- * rotate anti-clockwise.
- *
- * See:
- * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rotate
- */
- rotate?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.offset
- */
- offset?: any[];
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent level
- * will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight` in
- * parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
- * right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`, which
- * represents the percent of `contentWidth` (that is, the
- * width without `padding`) of its container box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on `outerWith`
- * in prectice.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich` property.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when using
- * background image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4,
- * 4]`.
- * + `padding: [3, 4]`: represents `padding: [3,
- * 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make
- * simple table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth`
- * (that is, the width without `padding`) of its
- * container box.
- * It is based on `contentWidth` because that each
- * text fregment is layout based on the `content
- * box`, where it makes no sense that calculating
- * width based on `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using
- * background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * the style setting about single data point(bubble).
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle
- */
- itemStyle?: {
-
- /**
- * color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for example
- * `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
- * `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will not
- * be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis
- */
- emphasis?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label
- */
- label?: {
-
- /**
- * Whether to show label.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values
- * to represent position of label relative to top-left
- * corner of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.distance
- */
- distance?: number;
-
- /**
- * Rotate label, from -90 degree to 90, positive value
- * represents rotate anti-clockwise.
- *
- * See:
- * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rotate
- */
- rotate?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.offset
- */
- offset?: any[];
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of
- * `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4,
- * 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich`
- * property. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`,
- * `verticalAlign` in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when
- * using background image, or auto adapted by
- * default.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4,
- * 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding:
- * [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify
- * it.
- * You may want to use it in some cases like
- * make simple table or using background image
- * (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * `width` can also be percent string, like
- * `'100%'`, which represents the percent of
- * `contentWidth` (that is, the width without
- * `padding`) of its container box.
- * It is based on `contentWidth` because that
- * each text fregment is layout based on the
- * `content box`, where it makes no sense that
- * calculating width based on `outerWith` in
- * prectice.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like
- * using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle
- */
- itemStyle?: {
-
- /**
- * color.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of
- * `color`.
- *
- *
- * @default
- * "#000"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`,
- * or `'dotted'`. `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.opacity
- */
- opacity?: number;
- };
- };
-
- /**
- * tooltip settings in this series data.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip
- */
- tooltip?: {
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The position of the tooltip's floating layer, which would
- * follow the position of mouse by default.
- *
- * Options:
- *
- * + `Array`
- *
- * Display the position of tooltip's floating layer through
- * array, which supports absolute position and relative
- * percentage.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
- *
- * + `Function`
- *
- * Callback function in the following form:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
- *
- * **Parameters:**
- * point: Mouse position.
- * param: The same as formatter.
- * dom: The DOM object of tooltip.
- * rect: It is valid only when mouse is on graphic elements,
- * which stands for a bounding box with `x`, `y`, `width`,
- * and `height`.
- * size: The size of dom echarts container.
- * For example: `{contentSize: [width, height], viewSize:
- * [width, height]}`.
- *
- * **Return:**
- * Return value is an array standing for tooltip position,
- * which can be absolute pixels, or relative percentage.
- * Or can be an object, like `{left: 10, top: 30}`, or `{right:
- * '20%', bottom: 40}`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
- *
- * Or:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
- *
- * + `'inside'`
- *
- * Center position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'top'`
- *
- * Top position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'left'`
- *
- * Left position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'right'`
- *
- * Right position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'bottom'`
- *
- * Bottom position of the graphic element where the mouse
- * is in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.position
- */
- position?: any[] | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The content formatter of tooltip's floating layer which
- * supports string template and callback function.
- *
- * **1\. String template**
- *
- * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
- * and `{e}`, which stands for series name, data name and
- * data value and ect. When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is set to be `'axis'`, there may be data from multiple
- * series.
- * In this time, series index can be refered as `{a0}`,
- * `{a1}`, or `{a2}`.
- *
- * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
- * different series types:
- *
- * + Line (area) charts, bar (column) charts, K charts:
- * `{a}` for series name, `{b}` for category name, `{c}`
- * for data value, `{d}` for none;
- *
- * + Scatter (bubble) charts: `{a}` for series name, `{b}`
- * for data name, `{c}` for data value, `{d}` for none;
- *
- * + Map: `{a}` for series name, `{b}` for area name, `{c}`
- * for merging data, `{d}` for none;
- *
- * + Pie charts, gauge charts, funnel charts: `{a}` for
- * series name, `{b}` for data item name, `{c}` for data
- * value, `{d}` for percentage.
- *
- * **Example:**
- *
- * ```
- * formatter: '{b0}: {c0}
{b1}: {c1}'
- *
- * ```
- *
- * **2\. Callback function**
- *
- * The format of callback function:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
- *
- * The first parameter `params` is the data that the formatter
- * needs. Its format is shown as follows:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
- *
- * When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'axis'`, or when tooltip is triggered by
- * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
- * , `params` is the data array of multiple series.
- * The content of each item of the array is the same as
- * above. Besides,
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
- *
- * **Note:** Using array to present all the parameters in
- * ECharts 2.x is not supported anymore.
- *
- * The second parameter `ticket` is the asynchronous callback
- * flag which should be used along with the third parameter
- * `callback` when it is used.
- *
- * The third parameter `callback` is asynchronous callback.
- * When the content of tooltip is acquired asynchronously,
- * `ticket` and `htm` as introduced above can be used to
- * update tooltip with callback.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.formatter
- */
- formatter?: Function | string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The background color of tooltip's floating layer.
- *
- *
- * @default
- * "rgba(50,50,50,0.7)"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.backgroundColor
- */
- backgroundColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border color of tooltip's floating layer.
- *
- *
- * @default
- * '#333'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.borderColor
- */
- borderColor?: string;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border width of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.borderWidth
- */
- borderWidth?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The floating layer of tooltip space around content.
- * The unit is px.
- * Default values for each position are 5.
- * And they can be set to different values with left, right,
- * top, and bottom.
- *
- * Examples:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.padding
- */
- padding?: number;
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The text syle of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle
- */
- textStyle?: {
-
- /**
- * text color.
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 14
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip.textStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
-
- /**
- * > **Notice:**series.data.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * Extra CSS style for floating layer.
- * The following is an example for adding shadow.
- *
- * ```
- * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
- *
- * ```
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.extraCssText
- */
- extraCssText?: string;
- };
- };
+ data?: (
+ (void | number | string | SeriesScatter.DataObject)[]
+ | (void | number | string | SeriesScatter.DataObject)[][]
+ );
/**
* Mark point in a chart.
@@ -16819,5 +14524,2307 @@ declare namespace echarts {
extraCssText?: string;
}
}
+
+ namespace SeriesScatter {
+ interface DataObject {
+
+ /**
+ * the name of data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.name
+ */
+ name?: string;
+
+ /**
+ * the value of data item.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.value
+ */
+ value?: any[];
+
+ /**
+ * Symbol of single data.
+ *
+ * Icon types provided by ECharts includes `'circle'`, `'rect'`,
+ * `'roundRect'`, `'triangle'`, `'diamond'`, `'pin'`, `'arrow'`,
+ * `'none'`
+ *
+ * It can be set to an image with `'image://url'` , in which
+ * URL is the link to an image, or `dataURI` of an image.
+ *
+ * An image URL example:
+ *
+ * ```
+ * 'image://http://xxx.xxx.xxx/a/b.png'
+ *
+ * ```
+ *
+ * A `dataURI` example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data)
+ *
+ * Icons can be set to arbitrary vector path via `'path://'`
+ * in ECharts.
+ * As compared with raster image, vector paths prevent from
+ * jagging and blurring when scaled, and have a better control
+ * over changing colors.
+ * Size of vectoer icon will be adapted automatically.
+ * Refer to
+ * [SVG PathData](http://www.w3.org/TR/SVG/paths.html#PathData)
+ * for more information about format of path.
+ * You may export vector paths from tools like Adobe Illustrator.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.symbol
+ */
+ symbol?: string;
+
+ /**
+ * single data symbol size.
+ * It can be set to single numbers like `10`, or use an array
+ * to represent width and height.
+ * For example, `[20, 10]` means symbol width is `20`, and height
+ * is`10`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.symbolSize
+ */
+ symbolSize?: any[] | number;
+
+ /**
+ * Rotate degree of single data symbol.
+ * Note that when `symbol` is set to be `'arrow'` in `markLine`,
+ * `symbolRotate` value will be ignored, and compulsively use
+ * tangent angle.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.symbolRotate
+ */
+ symbolRotate?: number;
+
+ /**
+ * Whether to keep aspect for symbols in the form of `path://`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.symbolKeepAspect
+ */
+ symbolKeepAspect?: boolean;
+
+ /**
+ * Offset of single data symbol relative to original position.
+ * By default, symbol will be put in the center position of
+ * data.
+ * But if symbol is from user-defined vector path or image,
+ * you may not expect symbol to be in center.
+ * In this case, you may use this attribute to set offset to
+ * default position.
+ * It can be in absolute pixel value, or in relative percentage
+ * value.
+ *
+ * For example, `[0, '50%']` means to move upside side position
+ * of symbol height.
+ * It can be used to make the arrow in the bottom to be at data
+ * position when symbol is pin.
+ *
+ *
+ * @default
+ * [0, 0]
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.symbolOffset
+ */
+ symbolOffset?: any[];
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values to
+ * represent position of label relative to top-left corner
+ * of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * "inside"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Rotate label, from -90 degree to 90, positive value represents
+ * rotate anti-clockwise.
+ *
+ * See:
+ * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rotate
+ */
+ rotate?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent level
+ * will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight` in
+ * parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
+ * right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`, which
+ * represents the percent of `contentWidth` (that is, the
+ * width without `padding`) of its container box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on `outerWith`
+ * in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich` property.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when using
+ * background image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4,
+ * 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3,
+ * 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make
+ * simple table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth`
+ * (that is, the width without `padding`) of its
+ * container box.
+ * It is based on `contentWidth` because that each
+ * text fregment is layout based on the `content
+ * box`, where it makes no sense that calculating
+ * width based on `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using
+ * background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * the style setting about single data point(bubble).
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for example
+ * `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
+ * `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will not
+ * be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label
+ */
+ label?: {
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values
+ * to represent position of label relative to top-left
+ * corner of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Rotate label, from -90 degree to 90, positive value
+ * represents rotate anti-clockwise.
+ *
+ * See:
+ * [label rotation](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-label-rotation)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rotate
+ */
+ rotate?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of
+ * `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4,
+ * 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich`
+ * property. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`,
+ * `verticalAlign` in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when
+ * using background image, or auto adapted by
+ * default.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4,
+ * 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding:
+ * [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify
+ * it.
+ * You may want to use it in some cases like
+ * make simple table or using background image
+ * (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * `width` can also be percent string, like
+ * `'100%'`, which represents the percent of
+ * `contentWidth` (that is, the width without
+ * `padding`) of its container box.
+ * It is based on `contentWidth` because that
+ * each text fregment is layout based on the
+ * `content box`, where it makes no sense that
+ * calculating width based on `outerWith` in
+ * prectice.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like
+ * using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of
+ * `color`.
+ *
+ *
+ * @default
+ * "#000"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`,
+ * or `'dotted'`. `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.emphasis.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+ };
+
+ /**
+ * tooltip settings in this series data.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip
+ */
+ tooltip?: {
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The position of the tooltip's floating layer, which would
+ * follow the position of mouse by default.
+ *
+ * Options:
+ *
+ * + `Array`
+ *
+ * Display the position of tooltip's floating layer through
+ * array, which supports absolute position and relative
+ * percentage.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
+ *
+ * + `Function`
+ *
+ * Callback function in the following form:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
+ *
+ * **Parameters:**
+ * point: Mouse position.
+ * param: The same as formatter.
+ * dom: The DOM object of tooltip.
+ * rect: It is valid only when mouse is on graphic elements,
+ * which stands for a bounding box with `x`, `y`, `width`,
+ * and `height`.
+ * size: The size of dom echarts container.
+ * For example: `{contentSize: [width, height], viewSize:
+ * [width, height]}`.
+ *
+ * **Return:**
+ * Return value is an array standing for tooltip position,
+ * which can be absolute pixels, or relative percentage.
+ * Or can be an object, like `{left: 10, top: 30}`, or `{right:
+ * '20%', bottom: 40}`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
+ *
+ * Or:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
+ *
+ * + `'inside'`
+ *
+ * Center position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'top'`
+ *
+ * Top position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'left'`
+ *
+ * Left position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'right'`
+ *
+ * Right position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'bottom'`
+ *
+ * Bottom position of the graphic element where the mouse
+ * is in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.position
+ */
+ position?: any[] | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The content formatter of tooltip's floating layer which
+ * supports string template and callback function.
+ *
+ * **1\. String template**
+ *
+ * The template variables are `{a}`, `{b}`, `{c}`, `{d}`
+ * and `{e}`, which stands for series name, data name and
+ * data value and ect. When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is set to be `'axis'`, there may be data from multiple
+ * series.
+ * In this time, series index can be refered as `{a0}`,
+ * `{a1}`, or `{a2}`.
+ *
+ * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for
+ * different series types:
+ *
+ * + Line (area) charts, bar (column) charts, K charts:
+ * `{a}` for series name, `{b}` for category name, `{c}`
+ * for data value, `{d}` for none;
+ *
+ * + Scatter (bubble) charts: `{a}` for series name, `{b}`
+ * for data name, `{c}` for data value, `{d}` for none;
+ *
+ * + Map: `{a}` for series name, `{b}` for area name, `{c}`
+ * for merging data, `{d}` for none;
+ *
+ * + Pie charts, gauge charts, funnel charts: `{a}` for
+ * series name, `{b}` for data item name, `{c}` for data
+ * value, `{d}` for percentage.
+ *
+ * **Example:**
+ *
+ * ```
+ * formatter: '{b0}: {c0}
{b1}: {c1}'
+ *
+ * ```
+ *
+ * **2\. Callback function**
+ *
+ * The format of callback function:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
+ *
+ * The first parameter `params` is the data that the formatter
+ * needs. Its format is shown as follows:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
+ *
+ * When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'axis'`, or when tooltip is triggered by
+ * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
+ * , `params` is the data array of multiple series.
+ * The content of each item of the array is the same as
+ * above. Besides,
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
+ *
+ * **Note:** Using array to present all the parameters in
+ * ECharts 2.x is not supported anymore.
+ *
+ * The second parameter `ticket` is the asynchronous callback
+ * flag which should be used along with the third parameter
+ * `callback` when it is used.
+ *
+ * The third parameter `callback` is asynchronous callback.
+ * When the content of tooltip is acquired asynchronously,
+ * `ticket` and `htm` as introduced above can be used to
+ * update tooltip with callback.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The background color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * "rgba(50,50,50,0.7)"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.backgroundColor
+ */
+ backgroundColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * '#333'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border width of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The floating layer of tooltip space around content.
+ * The unit is px.
+ * Default values for each position are 5.
+ * And they can be set to different values with left, right,
+ * top, and bottom.
+ *
+ * Examples:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip)
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.padding
+ */
+ padding?: number;
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The text syle of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle
+ */
+ textStyle?: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 14
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.scatter.data.tooltip.textStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.textStyle.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+
+ /**
+ * > **Notice:**series.data.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * Extra CSS style for floating layer.
+ * The following is an example for adding shadow.
+ *
+ * ```
+ * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
+ *
+ * ```
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-scatter.data.tooltip.extraCssText
+ */
+ extraCssText?: string;
+ };
+ }
+ }
}
}
diff --git a/types/echarts/options/series/sunburst.d.ts b/types/echarts/options/series/sunburst.d.ts
index ef58b476da..6dd0d302dd 100644
--- a/types/echarts/options/series/sunburst.d.ts
+++ b/types/echarts/options/series/sunburst.d.ts
@@ -142,4049 +142,7 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data
*/
- data?: {
-
- /**
- * Value for each item.
- * If contains children, value can be left unset, and sum of
- * children values will be used in this case.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.value
- */
- value?: number;
-
- /**
- * Name displayed in each sector.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.name
- */
- name?: string;
-
- /**
- * Link address that redirects to when this sector is clicked.
- * Only useful when
- * [series-sunburst.nodeClick](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.nodeClick)
- * is set to be `'link'`.
- *
- * See
- * [series-sunburst.data.target](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.target)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.link
- */
- link?: string;
-
- /**
- * Like `target` attribute of HTML ``, which can either be
- * `'blank'` or `'self'`. See
- * [series-sunburst.data.link](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.link)
- * .
- *
- *
- * @default
- * "blank"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.target
- */
- target?: string;
-
- /**
- * `label` sets the text style for every sectors.
- *
- * **Priority:
- * [series.data.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label)
- * >
- * [series.levels.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.label)
- * >
- * [series.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.label)
- * .**
- *
- * Text label of , to explain some data information about graphic
- * item like value, name and so on.
- * `label` is placed under `itemStyle` in ECharts 2.x.
- * In ECharts 3, to make the configuration structure flatter,
- * `label`is taken to be at the same level with `itemStyle`,
- * and has `emphasis` as `itemStyle` does.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label
- */
- label?: {
-
- /**
- * If it is `number` type, then is stands for rotation,
- * from -90 degrees to 90 degrees, and positive values stand
- * for counterclockwise.
- *
- * Besides, it can be string `'radial'`, standing for radial
- * rotation; or `'tangential'`, standing for tangential
- * rotation.
- *
- * By default, it is `'radial'`.
- * If no rotation is wanted, it can be set to `0`.
- *
- * The following example shows different `rotate` settings:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
- *
- *
- * @default
- * "radial"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rotate
- */
- rotate?: number | string;
-
- /**
- * Align of text, which can be `'left'`, `'center'`, or
- * `'right'`.
- * Note that `'left'` stands for inner side, and `'right'`
- * stands for outer side.
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
- *
- *
- * @default
- * "center"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.align
- */
- align?: string;
-
- /**
- * If angle of data piece is smaller than this value (in
- * degrees), then text is not displayed.
- * This is used for hiding text for small piece of data.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.minAngle
- */
- minAngle?: number;
-
- /**
- * Whether to show label.
- *
- *
- * @default
- * "true"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values to
- * represent position of label relative to top-left corner
- * of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * "inside"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.distance
- */
- distance?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.offset
- */
- offset?: any[];
-
- /**
- * Data label formatter, which supports string template
- * and callback function.
- * In either form, `\n` is supported to represent a new
- * line.
- *
- * **String template**
- *
- * Model variation includes:
- *
- * + `{a}`: series name.
- * + `{b}`: the name of a data item.
- * + `{c}`: the value of a data item.
- * + `{@xxx}: the value of a dimension named`'xxx'`, for
- * example,`{@product}`refers the value of`'product'\` dimension。
- * + `{@[n]}: the value of a dimension at the index of`n`,
- * for example,`{@\[3\]}\` refers the value at dimensions\[3\].
- *
- * **example:**
- *
- * ```
- * formatter: '{b}: {@score}'
- *
- * ```
- *
- * **Callback function**
- *
- * Callback function is in form of:
- *
- * ```
- * (params: Object|Array) => string
- *
- * ```
- *
- * where `params` is the single dataset needed by formatter,
- * which is formed as:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.formatter
- */
- formatter?: Function | string;
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight` in
- * parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
- * right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`, which
- * represents the percent of `contentWidth` (that is, the
- * width without `padding`) of its container box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on `outerWith`
- * in prectice.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich` property.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align` in parent
- * level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when using
- * background image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4,
- * 4]`.
- * + `padding: [3, 4]`: represents `padding: [3,
- * 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make
- * simple table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth`
- * (that is, the width without `padding`) of its
- * container box.
- * It is based on `contentWidth` because that each
- * text fregment is layout based on the `content
- * box`, where it makes no sense that calculating
- * width based on `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using
- * background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as
- * visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * Style of Sunburst sectors.
- *
- * Style can be set in
- * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
- * for sectors of this series, or
- * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
- * for the whole level, or
- * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
- * for single sector. If
- * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
- * is defined, it will cover the setting of
- * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
- * and
- * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
- * .
- *
- * **Priority:
- * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
- * >
- * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
- * >
- * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
- * .**
- *
- * In ECharts, _emphasis_ is for styles when mouse hovers.
- * For Sunburst charts, there are two extra states: _highlight_
- * for highlighting items that relates to the emphasized one,
- * and _downplay_ for others when emphasizing an item. See
- * [highlightPolicy](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.highlightPolicy)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle
- */
- itemStyle?: {
-
- /**
- * color. Color is taken from
- * [option.color Palette](https://ecomfe.github.io/echarts-doc/public/en/option.html#color)
- * by default.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for example
- * `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of `color`.
- *
- *
- * @default
- * "white"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @default
- * 1
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
- * `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will not
- * be drawn when set to 0.
- *
- *
- * @default
- * 1
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.opacity
- */
- opacity?: number;
- };
-
- /**
- * Item style when mouse is hovering. See
- * [highlightPolicy](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.highlightPolicy)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis
- */
- emphasis?: {
-
- /**
- * `label` sets the text style for every sectors.
- *
- * **Priority:
- * [series.data.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label)
- * >
- * [series.levels.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.label)
- * >
- * [series.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.label)
- * .**
- *
- * Text label of , to explain some data information about
- * graphic item like value, name and so on.
- * `label` is placed under `itemStyle` in ECharts 2.x.
- * In ECharts 3, to make the configuration structure flatter,
- * `label`is taken to be at the same level with `itemStyle`,
- * and has `emphasis` as `itemStyle` does.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label
- */
- label?: {
-
- /**
- * If it is `number` type, then is stands for rotation,
- * from -90 degrees to 90 degrees, and positive values
- * stand for counterclockwise.
- *
- * Besides, it can be string `'radial'`, standing for
- * radial rotation; or `'tangential'`, standing for
- * tangential rotation.
- *
- * By default, it is `'radial'`.
- * If no rotation is wanted, it can be set to `0`.
- *
- * The following example shows different `rotate` settings:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
- *
- *
- * @default
- * "radial"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rotate
- */
- rotate?: number | string;
-
- /**
- * Align of text, which can be `'left'`, `'center'`,
- * or `'right'`.
- * Note that `'left'` stands for inner side, and `'right'`
- * stands for outer side.
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
- *
- *
- * @default
- * "center"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.align
- */
- align?: string;
-
- /**
- * If angle of data piece is smaller than this value
- * (in degrees), then text is not displayed.
- * This is used for hiding text for small piece of data.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.minAngle
- */
- minAngle?: number;
-
- /**
- * Whether to show label.
- *
- *
- * @default
- * "true"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values
- * to represent position of label relative to top-left
- * corner of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * "inside"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.distance
- */
- distance?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.offset
- */
- offset?: any[];
-
- /**
- * Data label formatter, which supports string template
- * and callback function.
- * In either form, `\n` is supported to represent a
- * new line.
- *
- * **String template**
- *
- * Model variation includes:
- *
- * + `{a}`: series name.
- * + `{b}`: the name of a data item.
- * + `{c}`: the value of a data item.
- * + `{@xxx}: the value of a dimension named`'xxx'`,
- * for example,`{@product}`refers the value of`'product'\`
- * dimension。
- * + `{@[n]}: the value of a dimension at the index
- * of`n`, for example,`{@\[3\]}\` refers the value at
- * dimensions\[3\].
- *
- * **example:**
- *
- * ```
- * formatter: '{b}: {@score}'
- *
- * ```
- *
- * **Callback function**
- *
- * Callback function is in form of:
- *
- * ```
- * (params: Object|Array) => string
- *
- * ```
- *
- * where `params` is the single dataset needed by formatter,
- * which is formed as:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.formatter
- */
- formatter?: Function | string;
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of
- * `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4,
- * 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich`
- * property. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`,
- * `verticalAlign` in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when
- * using background image, or auto adapted by
- * default.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4,
- * 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding:
- * [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify
- * it.
- * You may want to use it in some cases like
- * make simple table or using background image
- * (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * `width` can also be percent string, like
- * `'100%'`, which represents the percent of
- * `contentWidth` (that is, the width without
- * `padding`) of its container box.
- * It is based on `contentWidth` because that
- * each text fregment is layout based on the
- * `content box`, where it makes no sense that
- * calculating width based on `outerWith` in
- * prectice.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like
- * using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * Style of Sunburst sectors.
- *
- * Style can be set in
- * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
- * for sectors of this series, or
- * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
- * for the whole level, or
- * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
- * for single sector. If
- * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
- * is defined, it will cover the setting of
- * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
- * and
- * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
- * .
- *
- * **Priority:
- * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
- * >
- * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
- * >
- * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
- * .**
- *
- * In ECharts, _emphasis_ is for styles when mouse hovers.
- * For Sunburst charts, there are two extra states: _highlight_
- * for highlighting items that relates to the emphasized
- * one, and _downplay_ for others when emphasizing an item.
- * See
- * [highlightPolicy](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.highlightPolicy)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle
- */
- itemStyle?: {
-
- /**
- * color. Color is taken from
- * [option.color Palette](https://ecomfe.github.io/echarts-doc/public/en/option.html#color)
- * by default.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of
- * `color`.
- *
- *
- * @default
- * "white"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @default
- * 1
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`,
- * or `'dotted'`. `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @default
- * 1
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.opacity
- */
- opacity?: number;
- };
- };
-
- /**
- * Item style when mouse is hovering related items. See
- * [highlightPolicy](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.highlightPolicy)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight
- */
- highlight?: {
-
- /**
- * `label` sets the text style for every sectors.
- *
- * **Priority:
- * [series.data.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label)
- * >
- * [series.levels.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.label)
- * >
- * [series.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.label)
- * .**
- *
- * Text label of , to explain some data information about
- * graphic item like value, name and so on.
- * `label` is placed under `itemStyle` in ECharts 2.x.
- * In ECharts 3, to make the configuration structure flatter,
- * `label`is taken to be at the same level with `itemStyle`,
- * and has `emphasis` as `itemStyle` does.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label
- */
- label?: {
-
- /**
- * If it is `number` type, then is stands for rotation,
- * from -90 degrees to 90 degrees, and positive values
- * stand for counterclockwise.
- *
- * Besides, it can be string `'radial'`, standing for
- * radial rotation; or `'tangential'`, standing for
- * tangential rotation.
- *
- * By default, it is `'radial'`.
- * If no rotation is wanted, it can be set to `0`.
- *
- * The following example shows different `rotate` settings:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
- *
- *
- * @default
- * "radial"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rotate
- */
- rotate?: number | string;
-
- /**
- * Align of text, which can be `'left'`, `'center'`,
- * or `'right'`.
- * Note that `'left'` stands for inner side, and `'right'`
- * stands for outer side.
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
- *
- *
- * @default
- * "center"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.align
- */
- align?: string;
-
- /**
- * If angle of data piece is smaller than this value
- * (in degrees), then text is not displayed.
- * This is used for hiding text for small piece of data.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.minAngle
- */
- minAngle?: number;
-
- /**
- * Whether to show label.
- *
- *
- * @default
- * "true"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values
- * to represent position of label relative to top-left
- * corner of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * "inside"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.distance
- */
- distance?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.offset
- */
- offset?: any[];
-
- /**
- * Data label formatter, which supports string template
- * and callback function.
- * In either form, `\n` is supported to represent a
- * new line.
- *
- * **String template**
- *
- * Model variation includes:
- *
- * + `{a}`: series name.
- * + `{b}`: the name of a data item.
- * + `{c}`: the value of a data item.
- * + `{@xxx}: the value of a dimension named`'xxx'`,
- * for example,`{@product}`refers the value of`'product'\`
- * dimension。
- * + `{@[n]}: the value of a dimension at the index
- * of`n`, for example,`{@\[3\]}\` refers the value at
- * dimensions\[3\].
- *
- * **example:**
- *
- * ```
- * formatter: '{b}: {@score}'
- *
- * ```
- *
- * **Callback function**
- *
- * Callback function is in form of:
- *
- * ```
- * (params: Object|Array) => string
- *
- * ```
- *
- * where `params` is the single dataset needed by formatter,
- * which is formed as:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.formatter
- */
- formatter?: Function | string;
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of
- * `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4,
- * 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich`
- * property. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`,
- * `verticalAlign` in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when
- * using background image, or auto adapted by
- * default.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4,
- * 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding:
- * [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify
- * it.
- * You may want to use it in some cases like
- * make simple table or using background image
- * (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * `width` can also be percent string, like
- * `'100%'`, which represents the percent of
- * `contentWidth` (that is, the width without
- * `padding`) of its container box.
- * It is based on `contentWidth` because that
- * each text fregment is layout based on the
- * `content box`, where it makes no sense that
- * calculating width based on `outerWith` in
- * prectice.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like
- * using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * Style of Sunburst sectors.
- *
- * Style can be set in
- * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
- * for sectors of this series, or
- * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
- * for the whole level, or
- * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
- * for single sector. If
- * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
- * is defined, it will cover the setting of
- * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
- * and
- * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
- * .
- *
- * **Priority:
- * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
- * >
- * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
- * >
- * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
- * .**
- *
- * In ECharts, _emphasis_ is for styles when mouse hovers.
- * For Sunburst charts, there are two extra states: _highlight_
- * for highlighting items that relates to the emphasized
- * one, and _downplay_ for others when emphasizing an item.
- * See
- * [highlightPolicy](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.highlightPolicy)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle
- */
- itemStyle?: {
-
- /**
- * color. Color is taken from
- * [option.color Palette](https://ecomfe.github.io/echarts-doc/public/en/option.html#color)
- * by default.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of
- * `color`.
- *
- *
- * @default
- * "white"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @default
- * 1
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`,
- * or `'dotted'`. `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @default
- * 1
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.opacity
- */
- opacity?: number;
- };
- };
-
- /**
- * Item style when mouse is hovering unrelated items. See
- * [highlightPolicy](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.highlightPolicy)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay
- */
- downplay?: {
-
- /**
- * `label` sets the text style for every sectors.
- *
- * **Priority:
- * [series.data.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label)
- * >
- * [series.levels.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.label)
- * >
- * [series.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.label)
- * .**
- *
- * Text label of , to explain some data information about
- * graphic item like value, name and so on.
- * `label` is placed under `itemStyle` in ECharts 2.x.
- * In ECharts 3, to make the configuration structure flatter,
- * `label`is taken to be at the same level with `itemStyle`,
- * and has `emphasis` as `itemStyle` does.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label
- */
- label?: {
-
- /**
- * If it is `number` type, then is stands for rotation,
- * from -90 degrees to 90 degrees, and positive values
- * stand for counterclockwise.
- *
- * Besides, it can be string `'radial'`, standing for
- * radial rotation; or `'tangential'`, standing for
- * tangential rotation.
- *
- * By default, it is `'radial'`.
- * If no rotation is wanted, it can be set to `0`.
- *
- * The following example shows different `rotate` settings:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
- *
- *
- * @default
- * "radial"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rotate
- */
- rotate?: number | string;
-
- /**
- * Align of text, which can be `'left'`, `'center'`,
- * or `'right'`.
- * Note that `'left'` stands for inner side, and `'right'`
- * stands for outer side.
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
- *
- *
- * @default
- * "center"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.align
- */
- align?: string;
-
- /**
- * If angle of data piece is smaller than this value
- * (in degrees), then text is not displayed.
- * This is used for hiding text for small piece of data.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.minAngle
- */
- minAngle?: number;
-
- /**
- * Whether to show label.
- *
- *
- * @default
- * "true"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.show
- */
- show?: boolean;
-
- /**
- * Label position.
- *
- * **Followings are the options:**
- *
- * + \[x, y\]
- *
- * Use relative percentage, or absolute pixel values
- * to represent position of label relative to top-left
- * corner of bounding box. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
- *
- * + 'top'
- *
- * + 'left'
- * + 'right'
- * + 'bottom'
- * + 'inside'
- * + 'insideLeft'
- * + 'insideRight'
- * + 'insideTop'
- * + 'insideBottom'
- * + 'insideTopLeft'
- * + 'insideBottomLeft'
- * + 'insideTopRight'
- * + 'insideBottomRight'
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * "inside"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.position
- */
- position?: any[] | string;
-
- /**
- * Distance to the host graphic element.
- * Works when position is string value (like `'top'`、`'insideRight'`).
- *
- * See:
- * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
- * .
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.distance
- */
- distance?: number;
-
- /**
- * Whether to move text slightly.
- * For example: `[30, 40]` means move `30` horizontally
- * and move `40` vertically.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.offset
- */
- offset?: any[];
-
- /**
- * Data label formatter, which supports string template
- * and callback function.
- * In either form, `\n` is supported to represent a
- * new line.
- *
- * **String template**
- *
- * Model variation includes:
- *
- * + `{a}`: series name.
- * + `{b}`: the name of a data item.
- * + `{c}`: the value of a data item.
- * + `{@xxx}: the value of a dimension named`'xxx'`,
- * for example,`{@product}`refers the value of`'product'\`
- * dimension。
- * + `{@[n]}: the value of a dimension at the index
- * of`n`, for example,`{@\[3\]}\` refers the value at
- * dimensions\[3\].
- *
- * **example:**
- *
- * ```
- * formatter: '{b}: {@score}'
- *
- * ```
- *
- * **Callback function**
- *
- * Callback function is in form of:
- *
- * ```
- * (params: Object|Array) => string
- *
- * ```
- *
- * where `params` is the single dataset needed by formatter,
- * which is formed as:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.formatter
- */
- formatter?: Function | string;
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.fontSize
- */
- fontSize?: number;
-
- /**
- * Vertical alignment of text, automatic by default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`, `verticalAlign`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
- *
- * `width` or `height` can be specified when using background
- * image, or auto adapted by default.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding of
- * `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding: [3, 4,
- * 3, 4]`.
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`,
- * which represents the percent of `contentWidth` (that
- * is, the width without `padding`) of its container
- * box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on
- * `outerWith` in prectice.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width
- * and height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich`
- * specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned as visual
- * color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.textShadowOffsetY
- */
- textShadowOffsetY?: number;
-
- /**
- * "Rich text styles" can be defined in this `rich`
- * property. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
- *
- * For more details, see
- * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
- * please.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich
- */
- rich?: {
-
- /**
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E
- */
- [userStyle: string]: {
-
- /**
- * text color.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * ""#fff""
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 12
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
- */
- fontSize?: number;
-
- /**
- * Horizontal alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'left'`
- * + `'center'`
- * + `'right'`
- *
- * If `align` is not set in `rich`, `align`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.align
- */
- align?: string;
-
- /**
- * Vertical alignment of text, automatic by
- * default.
- *
- * Options are:
- *
- * + `'top'`
- * + `'middle'`
- * + `'bottom'`
- *
- * If `verticalAlign` is not set in `rich`,
- * `verticalAlign` in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
- */
- verticalAlign?: string;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight`
- * in parent level will be used.
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Background color of the text fregment.
- *
- * Can be color string, like `'#123234'`, `'red'`,
- * `rgba(0,23,11,0.3)'`.
- *
- * Or image can be used, for example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E)
- *
- * `width` or `height` can be specified when
- * using background image, or auto adapted by
- * default.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
- */
- backgroundColor?: object | string;
-
- /**
- * Border color of the text fregment.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
- */
- borderColor?: string;
-
- /**
- * Border width of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border radius of the text fregment.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
- */
- borderRadius?: number;
-
- /**
- * Padding of the text fregment, for example:
- *
- * + `padding: [3, 4, 5, 6]`: represents padding
- * of `[top, right, bottom, left]`.
- * + `padding: 4`: represents `padding: [4,
- * 4, 4, 4]`.
- * + `padding: [3, 4]`: represents `padding:
- * [3, 4, 3, 4]`.
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.padding
- */
- padding?: any[] | number;
-
- /**
- * Shadow color of the text block.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Show blur of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow X offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text block.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify
- * it.
- * You may want to use it in some cases like
- * make simple table or using background image
- * (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * `width` can also be percent string, like
- * `'100%'`, which represents the percent of
- * `contentWidth` (that is, the width without
- * `padding`) of its container box.
- * It is based on `contentWidth` because that
- * each text fregment is layout based on the
- * `content box`, where it makes no sense that
- * calculating width based on `outerWith` in
- * prectice.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like
- * using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the
- * width and height of the content, without
- * `padding`.
- *
- * Notice, `width` and `height` only work when
- * `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- * If set as `'auto'`, the color will assigned
- * as visual color, such as series color.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
- };
- };
-
- /**
- * Style of Sunburst sectors.
- *
- * Style can be set in
- * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
- * for sectors of this series, or
- * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
- * for the whole level, or
- * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
- * for single sector. If
- * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
- * is defined, it will cover the setting of
- * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
- * and
- * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
- * .
- *
- * **Priority:
- * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
- * >
- * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
- * >
- * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
- * .**
- *
- * In ECharts, _emphasis_ is for styles when mouse hovers.
- * For Sunburst charts, there are two extra states: _highlight_
- * for highlighting items that relates to the emphasized
- * one, and _downplay_ for others when emphasizing an item.
- * See
- * [highlightPolicy](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.highlightPolicy)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle
- */
- itemStyle?: {
-
- /**
- * color. Color is taken from
- * [option.color Palette](https://ecomfe.github.io/echarts-doc/public/en/option.html#color)
- * by default.
- *
- * > Color can be represented in RGB, for example `'rgb(128,
- * 128, 128)'`.
- * RGBA can be used when you need alpha channel, for
- * example `'rgba(128, 128, 128, 0.5)'`.
- * You may also use hexadecimal format, for example
- * `'#ccc'`.
- * Gradient color and texture are also supported besides
- * single colors.
- * >
- * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.color
- */
- color?: string;
-
- /**
- * border color, whose format is similar to that of
- * `color`.
- *
- *
- * @default
- * "white"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.borderColor
- */
- borderColor?: string;
-
- /**
- * border width. No border when it is set to be 0.
- *
- *
- * @default
- * 1
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.borderWidth
- */
- borderWidth?: number;
-
- /**
- * Border type, which can be `'solid'`, `'dashed'`,
- * or `'dotted'`. `'solid'` by default.
- *
- *
- * @default
- * "solid"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.borderType
- */
- borderType?: string;
-
- /**
- * Size of shadow blur.
- * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
- * `shadowOffsetY` to set shadow to component.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.itemStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.shadowBlur
- */
- shadowBlur?: number;
-
- /**
- * Shadow color. Support same format as `color`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.shadowColor
- */
- shadowColor?: string;
-
- /**
- * Offset distance on the horizontal direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.shadowOffsetX
- */
- shadowOffsetX?: number;
-
- /**
- * Offset distance on the vertical direction of shadow.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.shadowOffsetY
- */
- shadowOffsetY?: number;
-
- /**
- * Opacity of the component.
- * Supports value from 0 to 1, and the component will
- * not be drawn when set to 0.
- *
- *
- * @default
- * 1
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.opacity
- */
- opacity?: number;
- };
- };
-
- /**
- * Children nodes, which is recursively defined.
- * In the same format to
- * [series-sunburst.data](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data)
- * .
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.children
- */
- children?: any[];
- };
+ data?: SeriesSunburst.DataObject[];
/**
* `label` sets the text style for every sectors.
@@ -12288,5 +8246,4051 @@ declare namespace echarts {
*/
animationDelayUpdate?: Function | number;
}
+
+ namespace SeriesSunburst {
+ interface DataObject {
+
+ /**
+ * Value for each item.
+ * If contains children, value can be left unset, and sum of
+ * children values will be used in this case.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.value
+ */
+ value?: number;
+
+ /**
+ * Name displayed in each sector.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.name
+ */
+ name?: string;
+
+ /**
+ * Link address that redirects to when this sector is clicked.
+ * Only useful when
+ * [series-sunburst.nodeClick](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.nodeClick)
+ * is set to be `'link'`.
+ *
+ * See
+ * [series-sunburst.data.target](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.target)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.link
+ */
+ link?: string;
+
+ /**
+ * Like `target` attribute of HTML ``, which can either be
+ * `'blank'` or `'self'`. See
+ * [series-sunburst.data.link](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.link)
+ * .
+ *
+ *
+ * @default
+ * "blank"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.target
+ */
+ target?: string;
+
+ /**
+ * `label` sets the text style for every sectors.
+ *
+ * **Priority:
+ * [series.data.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label)
+ * >
+ * [series.levels.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.label)
+ * >
+ * [series.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.label)
+ * .**
+ *
+ * Text label of , to explain some data information about graphic
+ * item like value, name and so on.
+ * `label` is placed under `itemStyle` in ECharts 2.x.
+ * In ECharts 3, to make the configuration structure flatter,
+ * `label`is taken to be at the same level with `itemStyle`,
+ * and has `emphasis` as `itemStyle` does.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label
+ */
+ label?: {
+
+ /**
+ * If it is `number` type, then is stands for rotation,
+ * from -90 degrees to 90 degrees, and positive values stand
+ * for counterclockwise.
+ *
+ * Besides, it can be string `'radial'`, standing for radial
+ * rotation; or `'tangential'`, standing for tangential
+ * rotation.
+ *
+ * By default, it is `'radial'`.
+ * If no rotation is wanted, it can be set to `0`.
+ *
+ * The following example shows different `rotate` settings:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
+ *
+ *
+ * @default
+ * "radial"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rotate
+ */
+ rotate?: number | string;
+
+ /**
+ * Align of text, which can be `'left'`, `'center'`, or
+ * `'right'`.
+ * Note that `'left'` stands for inner side, and `'right'`
+ * stands for outer side.
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
+ *
+ *
+ * @default
+ * "center"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.align
+ */
+ align?: string;
+
+ /**
+ * If angle of data piece is smaller than this value (in
+ * degrees), then text is not displayed.
+ * This is used for hiding text for small piece of data.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.minAngle
+ */
+ minAngle?: number;
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @default
+ * "true"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values to
+ * represent position of label relative to top-left corner
+ * of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * "inside"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * Data label formatter, which supports string template
+ * and callback function.
+ * In either form, `\n` is supported to represent a new
+ * line.
+ *
+ * **String template**
+ *
+ * Model variation includes:
+ *
+ * + `{a}`: series name.
+ * + `{b}`: the name of a data item.
+ * + `{c}`: the value of a data item.
+ * + `{@xxx}: the value of a dimension named`'xxx'`, for
+ * example,`{@product}`refers the value of`'product'\` dimension。
+ * + `{@[n]}: the value of a dimension at the index of`n`,
+ * for example,`{@\[3\]}\` refers the value at dimensions\[3\].
+ *
+ * **example:**
+ *
+ * ```
+ * formatter: '{b}: {@score}'
+ *
+ * ```
+ *
+ * **Callback function**
+ *
+ * Callback function is in form of:
+ *
+ * ```
+ * (params: Object|Array) => string
+ *
+ * ```
+ *
+ * where `params` is the single dataset needed by formatter,
+ * which is formed as:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight` in
+ * parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of `[top,
+ * right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`, which
+ * represents the percent of `contentWidth` (that is, the
+ * width without `padding`) of its container box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on `outerWith`
+ * in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich` property.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align` in parent
+ * level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when using
+ * background image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4,
+ * 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3,
+ * 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make
+ * simple table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth`
+ * (that is, the width without `padding`) of its
+ * container box.
+ * It is based on `contentWidth` because that each
+ * text fregment is layout based on the `content
+ * box`, where it makes no sense that calculating
+ * width based on `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using
+ * background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as
+ * visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * Style of Sunburst sectors.
+ *
+ * Style can be set in
+ * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
+ * for sectors of this series, or
+ * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
+ * for the whole level, or
+ * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
+ * for single sector. If
+ * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
+ * is defined, it will cover the setting of
+ * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
+ * and
+ * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
+ * .
+ *
+ * **Priority:
+ * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
+ * >
+ * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
+ * >
+ * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
+ * .**
+ *
+ * In ECharts, _emphasis_ is for styles when mouse hovers.
+ * For Sunburst charts, there are two extra states: _highlight_
+ * for highlighting items that relates to the emphasized one,
+ * and _downplay_ for others when emphasizing an item. See
+ * [highlightPolicy](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.highlightPolicy)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color. Color is taken from
+ * [option.color Palette](https://ecomfe.github.io/echarts-doc/public/en/option.html#color)
+ * by default.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for example
+ * `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of `color`.
+ *
+ *
+ * @default
+ * "white"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @default
+ * 1
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`, or `'dotted'`.
+ * `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will not
+ * be drawn when set to 0.
+ *
+ *
+ * @default
+ * 1
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+
+ /**
+ * Item style when mouse is hovering. See
+ * [highlightPolicy](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.highlightPolicy)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis
+ */
+ emphasis?: {
+
+ /**
+ * `label` sets the text style for every sectors.
+ *
+ * **Priority:
+ * [series.data.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label)
+ * >
+ * [series.levels.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.label)
+ * >
+ * [series.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.label)
+ * .**
+ *
+ * Text label of , to explain some data information about
+ * graphic item like value, name and so on.
+ * `label` is placed under `itemStyle` in ECharts 2.x.
+ * In ECharts 3, to make the configuration structure flatter,
+ * `label`is taken to be at the same level with `itemStyle`,
+ * and has `emphasis` as `itemStyle` does.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label
+ */
+ label?: {
+
+ /**
+ * If it is `number` type, then is stands for rotation,
+ * from -90 degrees to 90 degrees, and positive values
+ * stand for counterclockwise.
+ *
+ * Besides, it can be string `'radial'`, standing for
+ * radial rotation; or `'tangential'`, standing for
+ * tangential rotation.
+ *
+ * By default, it is `'radial'`.
+ * If no rotation is wanted, it can be set to `0`.
+ *
+ * The following example shows different `rotate` settings:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
+ *
+ *
+ * @default
+ * "radial"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rotate
+ */
+ rotate?: number | string;
+
+ /**
+ * Align of text, which can be `'left'`, `'center'`,
+ * or `'right'`.
+ * Note that `'left'` stands for inner side, and `'right'`
+ * stands for outer side.
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
+ *
+ *
+ * @default
+ * "center"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.align
+ */
+ align?: string;
+
+ /**
+ * If angle of data piece is smaller than this value
+ * (in degrees), then text is not displayed.
+ * This is used for hiding text for small piece of data.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.minAngle
+ */
+ minAngle?: number;
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @default
+ * "true"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values
+ * to represent position of label relative to top-left
+ * corner of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * "inside"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * Data label formatter, which supports string template
+ * and callback function.
+ * In either form, `\n` is supported to represent a
+ * new line.
+ *
+ * **String template**
+ *
+ * Model variation includes:
+ *
+ * + `{a}`: series name.
+ * + `{b}`: the name of a data item.
+ * + `{c}`: the value of a data item.
+ * + `{@xxx}: the value of a dimension named`'xxx'`,
+ * for example,`{@product}`refers the value of`'product'\`
+ * dimension。
+ * + `{@[n]}: the value of a dimension at the index
+ * of`n`, for example,`{@\[3\]}\` refers the value at
+ * dimensions\[3\].
+ *
+ * **example:**
+ *
+ * ```
+ * formatter: '{b}: {@score}'
+ *
+ * ```
+ *
+ * **Callback function**
+ *
+ * Callback function is in form of:
+ *
+ * ```
+ * (params: Object|Array) => string
+ *
+ * ```
+ *
+ * where `params` is the single dataset needed by formatter,
+ * which is formed as:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of
+ * `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4,
+ * 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich`
+ * property. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`,
+ * `verticalAlign` in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when
+ * using background image, or auto adapted by
+ * default.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4,
+ * 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding:
+ * [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify
+ * it.
+ * You may want to use it in some cases like
+ * make simple table or using background image
+ * (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * `width` can also be percent string, like
+ * `'100%'`, which represents the percent of
+ * `contentWidth` (that is, the width without
+ * `padding`) of its container box.
+ * It is based on `contentWidth` because that
+ * each text fregment is layout based on the
+ * `content box`, where it makes no sense that
+ * calculating width based on `outerWith` in
+ * prectice.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like
+ * using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * Style of Sunburst sectors.
+ *
+ * Style can be set in
+ * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
+ * for sectors of this series, or
+ * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
+ * for the whole level, or
+ * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
+ * for single sector. If
+ * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
+ * is defined, it will cover the setting of
+ * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
+ * and
+ * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
+ * .
+ *
+ * **Priority:
+ * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
+ * >
+ * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
+ * >
+ * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
+ * .**
+ *
+ * In ECharts, _emphasis_ is for styles when mouse hovers.
+ * For Sunburst charts, there are two extra states: _highlight_
+ * for highlighting items that relates to the emphasized
+ * one, and _downplay_ for others when emphasizing an item.
+ * See
+ * [highlightPolicy](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.highlightPolicy)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color. Color is taken from
+ * [option.color Palette](https://ecomfe.github.io/echarts-doc/public/en/option.html#color)
+ * by default.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of
+ * `color`.
+ *
+ *
+ * @default
+ * "white"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @default
+ * 1
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`,
+ * or `'dotted'`. `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.emphasis.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @default
+ * 1
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.emphasis.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+ };
+
+ /**
+ * Item style when mouse is hovering related items. See
+ * [highlightPolicy](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.highlightPolicy)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight
+ */
+ highlight?: {
+
+ /**
+ * `label` sets the text style for every sectors.
+ *
+ * **Priority:
+ * [series.data.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label)
+ * >
+ * [series.levels.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.label)
+ * >
+ * [series.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.label)
+ * .**
+ *
+ * Text label of , to explain some data information about
+ * graphic item like value, name and so on.
+ * `label` is placed under `itemStyle` in ECharts 2.x.
+ * In ECharts 3, to make the configuration structure flatter,
+ * `label`is taken to be at the same level with `itemStyle`,
+ * and has `emphasis` as `itemStyle` does.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label
+ */
+ label?: {
+
+ /**
+ * If it is `number` type, then is stands for rotation,
+ * from -90 degrees to 90 degrees, and positive values
+ * stand for counterclockwise.
+ *
+ * Besides, it can be string `'radial'`, standing for
+ * radial rotation; or `'tangential'`, standing for
+ * tangential rotation.
+ *
+ * By default, it is `'radial'`.
+ * If no rotation is wanted, it can be set to `0`.
+ *
+ * The following example shows different `rotate` settings:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
+ *
+ *
+ * @default
+ * "radial"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rotate
+ */
+ rotate?: number | string;
+
+ /**
+ * Align of text, which can be `'left'`, `'center'`,
+ * or `'right'`.
+ * Note that `'left'` stands for inner side, and `'right'`
+ * stands for outer side.
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
+ *
+ *
+ * @default
+ * "center"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.align
+ */
+ align?: string;
+
+ /**
+ * If angle of data piece is smaller than this value
+ * (in degrees), then text is not displayed.
+ * This is used for hiding text for small piece of data.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.minAngle
+ */
+ minAngle?: number;
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @default
+ * "true"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values
+ * to represent position of label relative to top-left
+ * corner of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * "inside"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * Data label formatter, which supports string template
+ * and callback function.
+ * In either form, `\n` is supported to represent a
+ * new line.
+ *
+ * **String template**
+ *
+ * Model variation includes:
+ *
+ * + `{a}`: series name.
+ * + `{b}`: the name of a data item.
+ * + `{c}`: the value of a data item.
+ * + `{@xxx}: the value of a dimension named`'xxx'`,
+ * for example,`{@product}`refers the value of`'product'\`
+ * dimension。
+ * + `{@[n]}: the value of a dimension at the index
+ * of`n`, for example,`{@\[3\]}\` refers the value at
+ * dimensions\[3\].
+ *
+ * **example:**
+ *
+ * ```
+ * formatter: '{b}: {@score}'
+ *
+ * ```
+ *
+ * **Callback function**
+ *
+ * Callback function is in form of:
+ *
+ * ```
+ * (params: Object|Array) => string
+ *
+ * ```
+ *
+ * where `params` is the single dataset needed by formatter,
+ * which is formed as:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of
+ * `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4,
+ * 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich`
+ * property. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`,
+ * `verticalAlign` in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when
+ * using background image, or auto adapted by
+ * default.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4,
+ * 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding:
+ * [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify
+ * it.
+ * You may want to use it in some cases like
+ * make simple table or using background image
+ * (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * `width` can also be percent string, like
+ * `'100%'`, which represents the percent of
+ * `contentWidth` (that is, the width without
+ * `padding`) of its container box.
+ * It is based on `contentWidth` because that
+ * each text fregment is layout based on the
+ * `content box`, where it makes no sense that
+ * calculating width based on `outerWith` in
+ * prectice.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like
+ * using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * Style of Sunburst sectors.
+ *
+ * Style can be set in
+ * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
+ * for sectors of this series, or
+ * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
+ * for the whole level, or
+ * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
+ * for single sector. If
+ * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
+ * is defined, it will cover the setting of
+ * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
+ * and
+ * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
+ * .
+ *
+ * **Priority:
+ * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
+ * >
+ * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
+ * >
+ * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
+ * .**
+ *
+ * In ECharts, _emphasis_ is for styles when mouse hovers.
+ * For Sunburst charts, there are two extra states: _highlight_
+ * for highlighting items that relates to the emphasized
+ * one, and _downplay_ for others when emphasizing an item.
+ * See
+ * [highlightPolicy](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.highlightPolicy)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color. Color is taken from
+ * [option.color Palette](https://ecomfe.github.io/echarts-doc/public/en/option.html#color)
+ * by default.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of
+ * `color`.
+ *
+ *
+ * @default
+ * "white"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @default
+ * 1
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`,
+ * or `'dotted'`. `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.highlight.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @default
+ * 1
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.highlight.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+ };
+
+ /**
+ * Item style when mouse is hovering unrelated items. See
+ * [highlightPolicy](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.highlightPolicy)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay
+ */
+ downplay?: {
+
+ /**
+ * `label` sets the text style for every sectors.
+ *
+ * **Priority:
+ * [series.data.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.label)
+ * >
+ * [series.levels.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.label)
+ * >
+ * [series.label](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.label)
+ * .**
+ *
+ * Text label of , to explain some data information about
+ * graphic item like value, name and so on.
+ * `label` is placed under `itemStyle` in ECharts 2.x.
+ * In ECharts 3, to make the configuration structure flatter,
+ * `label`is taken to be at the same level with `itemStyle`,
+ * and has `emphasis` as `itemStyle` does.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label
+ */
+ label?: {
+
+ /**
+ * If it is `number` type, then is stands for rotation,
+ * from -90 degrees to 90 degrees, and positive values
+ * stand for counterclockwise.
+ *
+ * Besides, it can be string `'radial'`, standing for
+ * radial rotation; or `'tangential'`, standing for
+ * tangential rotation.
+ *
+ * By default, it is `'radial'`.
+ * If no rotation is wanted, it can be set to `0`.
+ *
+ * The following example shows different `rotate` settings:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
+ *
+ *
+ * @default
+ * "radial"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rotate
+ */
+ rotate?: number | string;
+
+ /**
+ * Align of text, which can be `'left'`, `'center'`,
+ * or `'right'`.
+ * Note that `'left'` stands for inner side, and `'right'`
+ * stands for outer side.
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
+ *
+ *
+ * @default
+ * "center"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.align
+ */
+ align?: string;
+
+ /**
+ * If angle of data piece is smaller than this value
+ * (in degrees), then text is not displayed.
+ * This is used for hiding text for small piece of data.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.minAngle
+ */
+ minAngle?: number;
+
+ /**
+ * Whether to show label.
+ *
+ *
+ * @default
+ * "true"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.show
+ */
+ show?: boolean;
+
+ /**
+ * Label position.
+ *
+ * **Followings are the options:**
+ *
+ * + \[x, y\]
+ *
+ * Use relative percentage, or absolute pixel values
+ * to represent position of label relative to top-left
+ * corner of bounding box. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
+ *
+ * + 'top'
+ *
+ * + 'left'
+ * + 'right'
+ * + 'bottom'
+ * + 'inside'
+ * + 'insideLeft'
+ * + 'insideRight'
+ * + 'insideTop'
+ * + 'insideBottom'
+ * + 'insideTopLeft'
+ * + 'insideBottomLeft'
+ * + 'insideTopRight'
+ * + 'insideBottomRight'
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/view.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * "inside"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.position
+ */
+ position?: any[] | string;
+
+ /**
+ * Distance to the host graphic element.
+ * Works when position is string value (like `'top'`、`'insideRight'`).
+ *
+ * See:
+ * [label position](https://ecomfe.github.io/echarts-examples/public/editor.html?c=doc-example/label-position)
+ * .
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.distance
+ */
+ distance?: number;
+
+ /**
+ * Whether to move text slightly.
+ * For example: `[30, 40]` means move `30` horizontally
+ * and move `40` vertically.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.offset
+ */
+ offset?: any[];
+
+ /**
+ * Data label formatter, which supports string template
+ * and callback function.
+ * In either form, `\n` is supported to represent a
+ * new line.
+ *
+ * **String template**
+ *
+ * Model variation includes:
+ *
+ * + `{a}`: series name.
+ * + `{b}`: the name of a data item.
+ * + `{c}`: the value of a data item.
+ * + `{@xxx}: the value of a dimension named`'xxx'`,
+ * for example,`{@product}`refers the value of`'product'\`
+ * dimension。
+ * + `{@[n]}: the value of a dimension at the index
+ * of`n`, for example,`{@\[3\]}\` refers the value at
+ * dimensions\[3\].
+ *
+ * **example:**
+ *
+ * ```
+ * formatter: '{b}: {@score}'
+ *
+ * ```
+ *
+ * **Callback function**
+ *
+ * Callback function is in form of:
+ *
+ * ```
+ * (params: Object|Array) => string
+ *
+ * ```
+ *
+ * where `params` is the single dataset needed by formatter,
+ * which is formed as:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Vertical alignment of text, automatic by default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`, `verticalAlign`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`, `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
+ *
+ * `width` or `height` can be specified when using background
+ * image, or auto adapted by default.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding of
+ * `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4, 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding: [3, 4,
+ * 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`,
+ * which represents the percent of `contentWidth` (that
+ * is, the width without `padding`) of its container
+ * box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on
+ * `outerWith` in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width
+ * and height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich`
+ * specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned as visual
+ * color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+
+ /**
+ * "Rich text styles" can be defined in this `rich`
+ * property. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label)
+ *
+ * For more details, see
+ * [Rich Text](https://ecomfe.github.io/echarts-doc/public/en/option.htmltutorial.html#Rich%20Text)
+ * please.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich
+ */
+ rich?: {
+
+ /**
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E
+ */
+ [userStyle: string]: {
+
+ /**
+ * text color.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * ""#fff""
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 12
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Horizontal alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'left'`
+ * + `'center'`
+ * + `'right'`
+ *
+ * If `align` is not set in `rich`, `align`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.align
+ */
+ align?: string;
+
+ /**
+ * Vertical alignment of text, automatic by
+ * default.
+ *
+ * Options are:
+ *
+ * + `'top'`
+ * + `'middle'`
+ * + `'bottom'`
+ *
+ * If `verticalAlign` is not set in `rich`,
+ * `verticalAlign` in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.verticalAlign
+ */
+ verticalAlign?: string;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight`
+ * in parent level will be used.
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Background color of the text fregment.
+ *
+ * Can be color string, like `'#123234'`, `'red'`,
+ * `rgba(0,23,11,0.3)'`.
+ *
+ * Or image can be used, for example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E)
+ *
+ * `width` or `height` can be specified when
+ * using background image, or auto adapted by
+ * default.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.backgroundColor
+ */
+ backgroundColor?: object | string;
+
+ /**
+ * Border color of the text fregment.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * Border width of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border radius of the text fregment.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.borderRadius
+ */
+ borderRadius?: number;
+
+ /**
+ * Padding of the text fregment, for example:
+ *
+ * + `padding: [3, 4, 5, 6]`: represents padding
+ * of `[top, right, bottom, left]`.
+ * + `padding: 4`: represents `padding: [4,
+ * 4, 4, 4]`.
+ * + `padding: [3, 4]`: represents `padding:
+ * [3, 4, 3, 4]`.
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.padding
+ */
+ padding?: any[] | number;
+
+ /**
+ * Shadow color of the text block.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Show blur of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text block.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify
+ * it.
+ * You may want to use it in some cases like
+ * make simple table or using background image
+ * (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * `width` can also be percent string, like
+ * `'100%'`, which represents the percent of
+ * `contentWidth` (that is, the width without
+ * `padding`) of its container box.
+ * It is based on `contentWidth` because that
+ * each text fregment is layout based on the
+ * `content box`, where it makes no sense that
+ * calculating width based on `outerWith` in
+ * prectice.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like
+ * using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the
+ * width and height of the content, without
+ * `padding`.
+ *
+ * Notice, `width` and `height` only work when
+ * `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ * If set as `'auto'`, the color will assigned
+ * as visual color, such as series color.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.label.rich.%3Cuser%20defined%20style%20name%3E.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+ };
+ };
+
+ /**
+ * Style of Sunburst sectors.
+ *
+ * Style can be set in
+ * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
+ * for sectors of this series, or
+ * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
+ * for the whole level, or
+ * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
+ * for single sector. If
+ * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
+ * is defined, it will cover the setting of
+ * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
+ * and
+ * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
+ * .
+ *
+ * **Priority:
+ * [series.data.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.itemStyle)
+ * >
+ * [series.levels.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.levels.itemStyle)
+ * >
+ * [series.itemStyle](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.itemStyle)
+ * .**
+ *
+ * In ECharts, _emphasis_ is for styles when mouse hovers.
+ * For Sunburst charts, there are two extra states: _highlight_
+ * for highlighting items that relates to the emphasized
+ * one, and _downplay_ for others when emphasizing an item.
+ * See
+ * [highlightPolicy](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.highlightPolicy)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle
+ */
+ itemStyle?: {
+
+ /**
+ * color. Color is taken from
+ * [option.color Palette](https://ecomfe.github.io/echarts-doc/public/en/option.html#color)
+ * by default.
+ *
+ * > Color can be represented in RGB, for example `'rgb(128,
+ * 128, 128)'`.
+ * RGBA can be used when you need alpha channel, for
+ * example `'rgba(128, 128, 128, 0.5)'`.
+ * You may also use hexadecimal format, for example
+ * `'#ccc'`.
+ * Gradient color and texture are also supported besides
+ * single colors.
+ * >
+ * > [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.color
+ */
+ color?: string;
+
+ /**
+ * border color, whose format is similar to that of
+ * `color`.
+ *
+ *
+ * @default
+ * "white"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ * border width. No border when it is set to be 0.
+ *
+ *
+ * @default
+ * 1
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ * Border type, which can be `'solid'`, `'dashed'`,
+ * or `'dotted'`. `'solid'` by default.
+ *
+ *
+ * @default
+ * "solid"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.borderType
+ */
+ borderType?: string;
+
+ /**
+ * Size of shadow blur.
+ * This attribute should be used along with `shadowColor`,`shadowOffsetX`,
+ * `shadowOffsetY` to set shadow to component.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.sunburst.data.downplay.itemStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.shadowBlur
+ */
+ shadowBlur?: number;
+
+ /**
+ * Shadow color. Support same format as `color`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.shadowColor
+ */
+ shadowColor?: string;
+
+ /**
+ * Offset distance on the horizontal direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.shadowOffsetX
+ */
+ shadowOffsetX?: number;
+
+ /**
+ * Offset distance on the vertical direction of shadow.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.shadowOffsetY
+ */
+ shadowOffsetY?: number;
+
+ /**
+ * Opacity of the component.
+ * Supports value from 0 to 1, and the component will
+ * not be drawn when set to 0.
+ *
+ *
+ * @default
+ * 1
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.downplay.itemStyle.opacity
+ */
+ opacity?: number;
+ };
+ };
+
+ /**
+ * Children nodes, which is recursively defined.
+ * In the same format to
+ * [series-sunburst.data](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data)
+ * .
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-sunburst.data.children
+ */
+ children?: DataObject[];
+ }
+ }
}
}
diff --git a/types/echarts/options/series/theme-river.d.ts b/types/echarts/options/series/theme-river.d.ts
index 1e6ff0af9a..b5460dd9e6 100644
--- a/types/echarts/options/series/theme-river.d.ts
+++ b/types/echarts/options/series/theme-river.d.ts
@@ -1972,57 +1972,10 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-themeRiver.data
*/
- data?: {
-
- /**
- * the time attribute of time and theme.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-themeRiver.data.date
- */
- date?: string;
-
- /**
- * the value of an event or theme at a time point.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-themeRiver.data.value
- */
- value?: number;
-
- /**
- * the name of an event or theme.
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-themeRiver.themeRiver.data)
- *
- * **data specification:**
- *
- * As what is shown above, the data format of theme river is
- * double dimensional array.
- * Each item of the inner array consists of the time attribute
- * , the value at a time point and the name of an event or theme.
- * It needs to be noticed that you should provide an event or
- * theme with a complete time quantum as main river.
- * Other events and themes are based on the main river.
- * The default value of time point should be set as 0.
- * That is to say other events or themes are included in the
- * main river.
- * Once they are beyond the main river, the layout would be
- * wrong.
- * That is because a baseline should be calculated to draw each
- * event as ribbon shape when the whole diagram layout is calculated.
- * As the example above, the event "SS" is a main river.
- * After dispose, we would complete these 3 default time points
- * with the format of \["2015/11/08",0,"DQ"\], \["2015/11/12",0,"DQ"\],
- * ["2015/11/13",0,"DQ"], making it align with the main river.
- * From what is mentioned, we could set default value on any
- * position of a complete time period.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-themeRiver.data.name
- */
- name?: string;
- };
+ data?: (
+ (void | number | string | SeriesThemeRiver.DataObject)[]
+ | (void | number | string | SeriesThemeRiver.DataObject)[][]
+ );
/**
* tooltip settings in this series.
@@ -2480,5 +2433,59 @@ declare namespace echarts {
extraCssText?: string;
};
}
+
+ namespace SeriesThemeRiver {
+ interface DataObject {
+
+ /**
+ * the time attribute of time and theme.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-themeRiver.data.date
+ */
+ date?: string;
+
+ /**
+ * the value of an event or theme at a time point.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-themeRiver.data.value
+ */
+ value?: number | number[];
+
+ /**
+ * the name of an event or theme.
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-themeRiver.themeRiver.data)
+ *
+ * **data specification:**
+ *
+ * As what is shown above, the data format of theme river is
+ * double dimensional array.
+ * Each item of the inner array consists of the time attribute
+ * , the value at a time point and the name of an event or theme.
+ * It needs to be noticed that you should provide an event or
+ * theme with a complete time quantum as main river.
+ * Other events and themes are based on the main river.
+ * The default value of time point should be set as 0.
+ * That is to say other events or themes are included in the
+ * main river.
+ * Once they are beyond the main river, the layout would be
+ * wrong.
+ * That is because a baseline should be calculated to draw each
+ * event as ribbon shape when the whole diagram layout is calculated.
+ * As the example above, the event "SS" is a main river.
+ * After dispose, we would complete these 3 default time points
+ * with the format of \["2015/11/08",0,"DQ"\], \["2015/11/12",0,"DQ"\],
+ * ["2015/11/13",0,"DQ"], making it align with the main river.
+ * From what is mentioned, we could set default value on any
+ * position of a complete time period.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-themeRiver.data.name
+ */
+ name?: string;
+ }
+ }
}
}
diff --git a/types/echarts/options/series/tree.d.ts b/types/echarts/options/series/tree.d.ts
index b377d4ad74..24e4aebdf6 100644
--- a/types/echarts/options/series/tree.d.ts
+++ b/types/echarts/options/series/tree.d.ts
@@ -4186,7 +4186,468 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.data
*/
- data?: {
+ data?: SeriesTree.DataObject[];
+
+ /**
+ * tooltip settings in this series.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip
+ */
+ tooltip?: {
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The position of the tooltip's floating layer, which would
+ * follow the position of mouse by default.
+ *
+ * Options:
+ *
+ * + `Array`
+ *
+ * Display the position of tooltip's floating layer through
+ * array, which supports absolute position and relative percentage.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
+ *
+ * + `Function`
+ *
+ * Callback function in the following form:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
+ *
+ * **Parameters:**
+ * point: Mouse position.
+ * param: The same as formatter.
+ * dom: The DOM object of tooltip.
+ * rect: It is valid only when mouse is on graphic elements,
+ * which stands for a bounding box with `x`, `y`, `width`, and
+ * `height`.
+ * size: The size of dom echarts container.
+ * For example: `{contentSize: [width, height], viewSize: [width,
+ * height]}`.
+ *
+ * **Return:**
+ * Return value is an array standing for tooltip position, which
+ * can be absolute pixels, or relative percentage.
+ * Or can be an object, like `{left: 10, top: 30}`, or `{right:
+ * '20%', bottom: 40}`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
+ *
+ * Or:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
+ *
+ * + `'inside'`
+ *
+ * Center position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'top'`
+ *
+ * Top position of the graphic element where the mouse is in,
+ * which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'left'`
+ *
+ * Left position of the graphic element where the mouse is in,
+ * which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'right'`
+ *
+ * Right position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'bottom'`
+ *
+ * Bottom position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.position
+ */
+ position?: any[] | string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The content formatter of tooltip's floating layer which supports
+ * string template and callback function.
+ *
+ * **1\. String template**
+ *
+ * The template variables are `{a}`, `{b}`, `{c}`, `{d}` and
+ * `{e}`, which stands for series name, data name and data value
+ * and ect. When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is set to be `'axis'`, there may be data from multiple series.
+ * In this time, series index can be refered as `{a0}`, `{a1}`,
+ * or `{a2}`.
+ *
+ * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for different
+ * series types:
+ *
+ * + Line (area) charts, bar (column) charts, K charts: `{a}`
+ * for series name, `{b}` for category name, `{c}` for data
+ * value, `{d}` for none;
+ *
+ * + Scatter (bubble) charts: `{a}` for series name, `{b}` for
+ * data name, `{c}` for data value, `{d}` for none;
+ *
+ * + Map: `{a}` for series name, `{b}` for area name, `{c}`
+ * for merging data, `{d}` for none;
+ *
+ * + Pie charts, gauge charts, funnel charts: `{a}` for series
+ * name, `{b}` for data item name, `{c}` for data value, `{d}`
+ * for percentage.
+ *
+ * **Example:**
+ *
+ * ```
+ * formatter: '{b0}: {c0}
{b1}: {c1}'
+ *
+ * ```
+ *
+ * **2\. Callback function**
+ *
+ * The format of callback function:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
+ *
+ * The first parameter `params` is the data that the formatter
+ * needs. Its format is shown as follows:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
+ *
+ * When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'axis'`, or when tooltip is triggered by
+ * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
+ * , `params` is the data array of multiple series.
+ * The content of each item of the array is the same as above.
+ * Besides,
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
+ *
+ * **Note:** Using array to present all the parameters in ECharts
+ * 2.x is not supported anymore.
+ *
+ * The second parameter `ticket` is the asynchronous callback
+ * flag which should be used along with the third parameter
+ * `callback` when it is used.
+ *
+ * The third parameter `callback` is asynchronous callback.
+ * When the content of tooltip is acquired asynchronously, `ticket`
+ * and `htm` as introduced above can be used to update tooltip
+ * with callback.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The background color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * "rgba(50,50,50,0.7)"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.backgroundColor
+ */
+ backgroundColor?: string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * '#333'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border width of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The floating layer of tooltip space around content.
+ * The unit is px.
+ * Default values for each position are 5.
+ * And they can be set to different values with left, right,
+ * top, and bottom.
+ *
+ * Examples:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.padding
+ */
+ padding?: number;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The text syle of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle
+ */
+ textStyle?: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 14
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight` in
+ * parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip.textStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`, which
+ * represents the percent of `contentWidth` (that is, the
+ * width without `padding`) of its container box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on `outerWith`
+ * in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * Extra CSS style for floating layer.
+ * The following is an example for adding shadow.
+ *
+ * ```
+ * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
+ *
+ * ```
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.extraCssText
+ */
+ extraCssText?: string;
+ };
+ }
+
+ namespace SeriesTree {
+ interface DataObject {
+ children?: DataObject[];
/**
* The name of the tree node, used to identify each node.
@@ -6498,463 +6959,7 @@ declare namespace echarts {
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.data.animationDelayUpdate
*/
animationDelayUpdate?: Function | number;
- };
-
- /**
- * tooltip settings in this series.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip
- */
- tooltip?: {
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The position of the tooltip's floating layer, which would
- * follow the position of mouse by default.
- *
- * Options:
- *
- * + `Array`
- *
- * Display the position of tooltip's floating layer through
- * array, which supports absolute position and relative percentage.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
- *
- * + `Function`
- *
- * Callback function in the following form:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
- *
- * **Parameters:**
- * point: Mouse position.
- * param: The same as formatter.
- * dom: The DOM object of tooltip.
- * rect: It is valid only when mouse is on graphic elements,
- * which stands for a bounding box with `x`, `y`, `width`, and
- * `height`.
- * size: The size of dom echarts container.
- * For example: `{contentSize: [width, height], viewSize: [width,
- * height]}`.
- *
- * **Return:**
- * Return value is an array standing for tooltip position, which
- * can be absolute pixels, or relative percentage.
- * Or can be an object, like `{left: 10, top: 30}`, or `{right:
- * '20%', bottom: 40}`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
- *
- * Or:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
- *
- * + `'inside'`
- *
- * Center position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'top'`
- *
- * Top position of the graphic element where the mouse is in,
- * which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'left'`
- *
- * Left position of the graphic element where the mouse is in,
- * which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'right'`
- *
- * Right position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'bottom'`
- *
- * Bottom position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.position
- */
- position?: any[] | string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The content formatter of tooltip's floating layer which supports
- * string template and callback function.
- *
- * **1\. String template**
- *
- * The template variables are `{a}`, `{b}`, `{c}`, `{d}` and
- * `{e}`, which stands for series name, data name and data value
- * and ect. When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is set to be `'axis'`, there may be data from multiple series.
- * In this time, series index can be refered as `{a0}`, `{a1}`,
- * or `{a2}`.
- *
- * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for different
- * series types:
- *
- * + Line (area) charts, bar (column) charts, K charts: `{a}`
- * for series name, `{b}` for category name, `{c}` for data
- * value, `{d}` for none;
- *
- * + Scatter (bubble) charts: `{a}` for series name, `{b}` for
- * data name, `{c}` for data value, `{d}` for none;
- *
- * + Map: `{a}` for series name, `{b}` for area name, `{c}`
- * for merging data, `{d}` for none;
- *
- * + Pie charts, gauge charts, funnel charts: `{a}` for series
- * name, `{b}` for data item name, `{c}` for data value, `{d}`
- * for percentage.
- *
- * **Example:**
- *
- * ```
- * formatter: '{b0}: {c0}
{b1}: {c1}'
- *
- * ```
- *
- * **2\. Callback function**
- *
- * The format of callback function:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
- *
- * The first parameter `params` is the data that the formatter
- * needs. Its format is shown as follows:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
- *
- * When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'axis'`, or when tooltip is triggered by
- * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
- * , `params` is the data array of multiple series.
- * The content of each item of the array is the same as above.
- * Besides,
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
- *
- * **Note:** Using array to present all the parameters in ECharts
- * 2.x is not supported anymore.
- *
- * The second parameter `ticket` is the asynchronous callback
- * flag which should be used along with the third parameter
- * `callback` when it is used.
- *
- * The third parameter `callback` is asynchronous callback.
- * When the content of tooltip is acquired asynchronously, `ticket`
- * and `htm` as introduced above can be used to update tooltip
- * with callback.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.formatter
- */
- formatter?: Function | string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The background color of tooltip's floating layer.
- *
- *
- * @default
- * "rgba(50,50,50,0.7)"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.backgroundColor
- */
- backgroundColor?: string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border color of tooltip's floating layer.
- *
- *
- * @default
- * '#333'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.borderColor
- */
- borderColor?: string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border width of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.borderWidth
- */
- borderWidth?: number;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The floating layer of tooltip space around content.
- * The unit is px.
- * Default values for each position are 5.
- * And they can be set to different values with left, right,
- * top, and bottom.
- *
- * Examples:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip)
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.padding
- */
- padding?: number;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The text syle of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle
- */
- textStyle?: {
-
- /**
- * text color.
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 14
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight` in
- * parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tree.tooltip.textStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`, which
- * represents the percent of `contentWidth` (that is, the
- * width without `padding`) of its container box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on `outerWith`
- * in prectice.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.textStyle.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * Extra CSS style for floating layer.
- * The following is an example for adding shadow.
- *
- * ```
- * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
- *
- * ```
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-tree.tooltip.extraCssText
- */
- extraCssText?: string;
- };
+ }
}
}
}
diff --git a/types/echarts/options/series/treemap.d.ts b/types/echarts/options/series/treemap.d.ts
index d4c0b57004..4e68d8f205 100644
--- a/types/echarts/options/series/treemap.d.ts
+++ b/types/echarts/options/series/treemap.d.ts
@@ -10049,7 +10049,511 @@ declare namespace echarts {
*
* @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.data
*/
- data?: {
+ data?: SeriesTreemap.DataObject[];
+
+ /**
+ * Duration of the first animation, which supports callback function
+ * for different data to have different animation effect:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap)
+ *
+ *
+ * @default
+ * 1500
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.animationDuration
+ */
+ animationDuration?: Function | number;
+
+ /**
+ * Easing method used for the first animation.
+ * Varied easing effects can be found at
+ * [easing effect example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=line-easing)
+ * .
+ *
+ *
+ * @default
+ * "quinticInOut"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.animationEasing
+ */
+ animationEasing?: string;
+
+ /**
+ * Delay before updating the first animation, which supports callback
+ * function for different data to have different animation effect.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap)
+ *
+ * See
+ * [this example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-animation-delay)
+ * for more information.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.animationDelay
+ */
+ animationDelay?: Function | number;
+
+ /**
+ * tooltip settings in this series.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip
+ */
+ tooltip?: {
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The position of the tooltip's floating layer, which would
+ * follow the position of mouse by default.
+ *
+ * Options:
+ *
+ * + `Array`
+ *
+ * Display the position of tooltip's floating layer through
+ * array, which supports absolute position and relative percentage.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
+ *
+ * + `Function`
+ *
+ * Callback function in the following form:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
+ *
+ * **Parameters:**
+ * point: Mouse position.
+ * param: The same as formatter.
+ * dom: The DOM object of tooltip.
+ * rect: It is valid only when mouse is on graphic elements,
+ * which stands for a bounding box with `x`, `y`, `width`, and
+ * `height`.
+ * size: The size of dom echarts container.
+ * For example: `{contentSize: [width, height], viewSize: [width,
+ * height]}`.
+ *
+ * **Return:**
+ * Return value is an array standing for tooltip position, which
+ * can be absolute pixels, or relative percentage.
+ * Or can be an object, like `{left: 10, top: 30}`, or `{right:
+ * '20%', bottom: 40}`.
+ *
+ * For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
+ *
+ * Or:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
+ *
+ * + `'inside'`
+ *
+ * Center position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'top'`
+ *
+ * Top position of the graphic element where the mouse is in,
+ * which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'left'`
+ *
+ * Left position of the graphic element where the mouse is in,
+ * which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'right'`
+ *
+ * Right position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ * + `'bottom'`
+ *
+ * Bottom position of the graphic element where the mouse is
+ * in, which is only valid when
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'item'`.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.position
+ */
+ position?: any[] | string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The content formatter of tooltip's floating layer which supports
+ * string template and callback function.
+ *
+ * **1\. String template**
+ *
+ * The template variables are `{a}`, `{b}`, `{c}`, `{d}` and
+ * `{e}`, which stands for series name, data name and data value
+ * and ect. When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is set to be `'axis'`, there may be data from multiple series.
+ * In this time, series index can be refered as `{a0}`, `{a1}`,
+ * or `{a2}`.
+ *
+ * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for different
+ * series types:
+ *
+ * + Line (area) charts, bar (column) charts, K charts: `{a}`
+ * for series name, `{b}` for category name, `{c}` for data
+ * value, `{d}` for none;
+ *
+ * + Scatter (bubble) charts: `{a}` for series name, `{b}` for
+ * data name, `{c}` for data value, `{d}` for none;
+ *
+ * + Map: `{a}` for series name, `{b}` for area name, `{c}`
+ * for merging data, `{d}` for none;
+ *
+ * + Pie charts, gauge charts, funnel charts: `{a}` for series
+ * name, `{b}` for data item name, `{c}` for data value, `{d}`
+ * for percentage.
+ *
+ * **Example:**
+ *
+ * ```
+ * formatter: '{b0}: {c0}
{b1}: {c1}'
+ *
+ * ```
+ *
+ * **2\. Callback function**
+ *
+ * The format of callback function:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
+ *
+ * The first parameter `params` is the data that the formatter
+ * needs. Its format is shown as follows:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
+ *
+ * When
+ * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * is `'axis'`, or when tooltip is triggered by
+ * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
+ * , `params` is the data array of multiple series.
+ * The content of each item of the array is the same as above.
+ * Besides,
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
+ *
+ * **Note:** Using array to present all the parameters in ECharts
+ * 2.x is not supported anymore.
+ *
+ * The second parameter `ticket` is the asynchronous callback
+ * flag which should be used along with the third parameter
+ * `callback` when it is used.
+ *
+ * The third parameter `callback` is asynchronous callback.
+ * When the content of tooltip is acquired asynchronously, `ticket`
+ * and `htm` as introduced above can be used to update tooltip
+ * with callback.
+ *
+ * Example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.formatter
+ */
+ formatter?: Function | string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The background color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * "rgba(50,50,50,0.7)"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.backgroundColor
+ */
+ backgroundColor?: string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border color of tooltip's floating layer.
+ *
+ *
+ * @default
+ * '#333'
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.borderColor
+ */
+ borderColor?: string;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The border width of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.borderWidth
+ */
+ borderWidth?: number;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The floating layer of tooltip space around content.
+ * The unit is px.
+ * Default values for each position are 5.
+ * And they can be set to different values with left, right,
+ * top, and bottom.
+ *
+ * Examples:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
+ *
+ *
+ * @default
+ * 5
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.padding
+ */
+ padding?: number;
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * The text syle of tooltip's floating layer.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle
+ */
+ textStyle?: {
+
+ /**
+ * text color.
+ *
+ *
+ * @default
+ * "#fff"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.color
+ */
+ color?: string;
+
+ /**
+ * font style
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'italic'`
+ * + `'oblique'`
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.fontStyle
+ */
+ fontStyle?: string;
+
+ /**
+ * font thick weight
+ *
+ * Options are:
+ *
+ * + `'normal'`
+ * + `'bold'`
+ * + `'bolder'`
+ * + `'lighter'`
+ * + 100 | 200 | 300 | 400...
+ *
+ *
+ * @default
+ * "normal"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.fontWeight
+ */
+ fontWeight?: string;
+
+ /**
+ * font family
+ *
+ * Can also be 'serif' , 'monospace', ...
+ *
+ *
+ * @default
+ * "sans-serif"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.fontFamily
+ */
+ fontFamily?: string;
+
+ /**
+ * font size
+ *
+ *
+ * @default
+ * 14
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.fontSize
+ */
+ fontSize?: number;
+
+ /**
+ * Line height of the text fregment.
+ *
+ * If `lineHeight` is not set in `rich`, `lineHeight` in
+ * parent level will be used. For example:
+ *
+ * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip.textStyle)
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.lineHeight
+ */
+ lineHeight?: number;
+
+ /**
+ * Width of the text block.
+ * It is the width of the text by default.
+ * In most cases, there is no need to specify it.
+ * You may want to use it in some cases like make simple
+ * table or using background image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * `width` can also be percent string, like `'100%'`, which
+ * represents the percent of `contentWidth` (that is, the
+ * width without `padding`) of its container box.
+ * It is based on `contentWidth` because that each text
+ * fregment is layout based on the `content box`, where
+ * it makes no sense that calculating width based on `outerWith`
+ * in prectice.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.width
+ */
+ width?: number | string;
+
+ /**
+ * Height of the text block.
+ * It is the width of the text by default.
+ * You may want to use it in some cases like using background
+ * image (see `backgroundColor`).
+ *
+ * Notice, `width` and `height` specifies the width and
+ * height of the content, without `padding`.
+ *
+ * Notice, `width` and `height` only work when `rich` specified.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.height
+ */
+ height?: number | string;
+
+ /**
+ * Storke color of the text.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.textBorderColor
+ */
+ textBorderColor?: string;
+
+ /**
+ * Storke line width of the text.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.textBorderWidth
+ */
+ textBorderWidth?: number;
+
+ /**
+ * Shadow color of the text itself.
+ *
+ *
+ * @default
+ * "transparent"
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.textShadowColor
+ */
+ textShadowColor?: string;
+
+ /**
+ * Shadow blue of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.textShadowBlur
+ */
+ textShadowBlur?: number;
+
+ /**
+ * Shadow X offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.textShadowOffsetX
+ */
+ textShadowOffsetX?: number;
+
+ /**
+ * Shadow Y offset of the text itself.
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.textShadowOffsetY
+ */
+ textShadowOffsetY?: number;
+ };
+
+ /**
+ *
+ * > **Notice:**series.tooltip only works when
+ * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
+ * > is `'item'`.
+ *
+ * Extra CSS style for floating layer.
+ * The following is an example for adding shadow.
+ *
+ * ```
+ * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
+ *
+ * ```
+ *
+ *
+ * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.extraCssText
+ */
+ extraCssText?: string;
+ };
+ }
+
+ namespace SeriesTreemap {
+ interface DataObject {
+ children?: DataObject[];
/**
* The value of this node, indicating the area size.
@@ -13855,506 +14359,7 @@ declare namespace echarts {
color?: string;
};
};
- };
-
- /**
- * Duration of the first animation, which supports callback function
- * for different data to have different animation effect:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap)
- *
- *
- * @default
- * 1500
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.animationDuration
- */
- animationDuration?: Function | number;
-
- /**
- * Easing method used for the first animation.
- * Varied easing effects can be found at
- * [easing effect example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=line-easing)
- * .
- *
- *
- * @default
- * "quinticInOut"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.animationEasing
- */
- animationEasing?: string;
-
- /**
- * Delay before updating the first animation, which supports callback
- * function for different data to have different animation effect.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap)
- *
- * See
- * [this example](https://ecomfe.github.io/echarts-examples/public/editor.html?c=bar-animation-delay)
- * for more information.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.animationDelay
- */
- animationDelay?: Function | number;
-
- /**
- * tooltip settings in this series.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip
- */
- tooltip?: {
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The position of the tooltip's floating layer, which would
- * follow the position of mouse by default.
- *
- * Options:
- *
- * + `Array`
- *
- * Display the position of tooltip's floating layer through
- * array, which supports absolute position and relative percentage.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
- *
- * + `Function`
- *
- * Callback function in the following form:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
- *
- * **Parameters:**
- * point: Mouse position.
- * param: The same as formatter.
- * dom: The DOM object of tooltip.
- * rect: It is valid only when mouse is on graphic elements,
- * which stands for a bounding box with `x`, `y`, `width`, and
- * `height`.
- * size: The size of dom echarts container.
- * For example: `{contentSize: [width, height], viewSize: [width,
- * height]}`.
- *
- * **Return:**
- * Return value is an array standing for tooltip position, which
- * can be absolute pixels, or relative percentage.
- * Or can be an object, like `{left: 10, top: 30}`, or `{right:
- * '20%', bottom: 40}`.
- *
- * For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
- *
- * Or:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
- *
- * + `'inside'`
- *
- * Center position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'top'`
- *
- * Top position of the graphic element where the mouse is in,
- * which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'left'`
- *
- * Left position of the graphic element where the mouse is in,
- * which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'right'`
- *
- * Right position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- * + `'bottom'`
- *
- * Bottom position of the graphic element where the mouse is
- * in, which is only valid when
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'item'`.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.position
- */
- position?: any[] | string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The content formatter of tooltip's floating layer which supports
- * string template and callback function.
- *
- * **1\. String template**
- *
- * The template variables are `{a}`, `{b}`, `{c}`, `{d}` and
- * `{e}`, which stands for series name, data name and data value
- * and ect. When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is set to be `'axis'`, there may be data from multiple series.
- * In this time, series index can be refered as `{a0}`, `{a1}`,
- * or `{a2}`.
- *
- * `{a}`, `{b}`, `{c}`, `{d}` have different meanings for different
- * series types:
- *
- * + Line (area) charts, bar (column) charts, K charts: `{a}`
- * for series name, `{b}` for category name, `{c}` for data
- * value, `{d}` for none;
- *
- * + Scatter (bubble) charts: `{a}` for series name, `{b}` for
- * data name, `{c}` for data value, `{d}` for none;
- *
- * + Map: `{a}` for series name, `{b}` for area name, `{c}`
- * for merging data, `{d}` for none;
- *
- * + Pie charts, gauge charts, funnel charts: `{a}` for series
- * name, `{b}` for data item name, `{c}` for data value, `{d}`
- * for percentage.
- *
- * **Example:**
- *
- * ```
- * formatter: '{b0}: {c0}
{b1}: {c1}'
- *
- * ```
- *
- * **2\. Callback function**
- *
- * The format of callback function:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
- *
- * The first parameter `params` is the data that the formatter
- * needs. Its format is shown as follows:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
- *
- * When
- * [trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * is `'axis'`, or when tooltip is triggered by
- * [axisPointer](https://ecomfe.github.io/echarts-doc/public/en/option.html#xAxis.axisPointer)
- * , `params` is the data array of multiple series.
- * The content of each item of the array is the same as above.
- * Besides,
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
- *
- * **Note:** Using array to present all the parameters in ECharts
- * 2.x is not supported anymore.
- *
- * The second parameter `ticket` is the asynchronous callback
- * flag which should be used along with the third parameter
- * `callback` when it is used.
- *
- * The third parameter `callback` is asynchronous callback.
- * When the content of tooltip is acquired asynchronously, `ticket`
- * and `htm` as introduced above can be used to update tooltip
- * with callback.
- *
- * Example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.formatter
- */
- formatter?: Function | string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The background color of tooltip's floating layer.
- *
- *
- * @default
- * "rgba(50,50,50,0.7)"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.backgroundColor
- */
- backgroundColor?: string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border color of tooltip's floating layer.
- *
- *
- * @default
- * '#333'
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.borderColor
- */
- borderColor?: string;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The border width of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.borderWidth
- */
- borderWidth?: number;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The floating layer of tooltip space around content.
- * The unit is px.
- * Default values for each position are 5.
- * And they can be set to different values with left, right,
- * top, and bottom.
- *
- * Examples:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip)
- *
- *
- * @default
- * 5
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.padding
- */
- padding?: number;
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * The text syle of tooltip's floating layer.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle
- */
- textStyle?: {
-
- /**
- * text color.
- *
- *
- * @default
- * "#fff"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.color
- */
- color?: string;
-
- /**
- * font style
- *
- * Options are:
- *
- * + `'normal'`
- * + `'italic'`
- * + `'oblique'`
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.fontStyle
- */
- fontStyle?: string;
-
- /**
- * font thick weight
- *
- * Options are:
- *
- * + `'normal'`
- * + `'bold'`
- * + `'bolder'`
- * + `'lighter'`
- * + 100 | 200 | 300 | 400...
- *
- *
- * @default
- * "normal"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.fontWeight
- */
- fontWeight?: string;
-
- /**
- * font family
- *
- * Can also be 'serif' , 'monospace', ...
- *
- *
- * @default
- * "sans-serif"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.fontFamily
- */
- fontFamily?: string;
-
- /**
- * font size
- *
- *
- * @default
- * 14
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.fontSize
- */
- fontSize?: number;
-
- /**
- * Line height of the text fregment.
- *
- * If `lineHeight` is not set in `rich`, `lineHeight` in
- * parent level will be used. For example:
- *
- * [see doc](https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.treemap.tooltip.textStyle)
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.lineHeight
- */
- lineHeight?: number;
-
- /**
- * Width of the text block.
- * It is the width of the text by default.
- * In most cases, there is no need to specify it.
- * You may want to use it in some cases like make simple
- * table or using background image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * `width` can also be percent string, like `'100%'`, which
- * represents the percent of `contentWidth` (that is, the
- * width without `padding`) of its container box.
- * It is based on `contentWidth` because that each text
- * fregment is layout based on the `content box`, where
- * it makes no sense that calculating width based on `outerWith`
- * in prectice.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.width
- */
- width?: number | string;
-
- /**
- * Height of the text block.
- * It is the width of the text by default.
- * You may want to use it in some cases like using background
- * image (see `backgroundColor`).
- *
- * Notice, `width` and `height` specifies the width and
- * height of the content, without `padding`.
- *
- * Notice, `width` and `height` only work when `rich` specified.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.height
- */
- height?: number | string;
-
- /**
- * Storke color of the text.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.textBorderColor
- */
- textBorderColor?: string;
-
- /**
- * Storke line width of the text.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.textBorderWidth
- */
- textBorderWidth?: number;
-
- /**
- * Shadow color of the text itself.
- *
- *
- * @default
- * "transparent"
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.textShadowColor
- */
- textShadowColor?: string;
-
- /**
- * Shadow blue of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.textShadowBlur
- */
- textShadowBlur?: number;
-
- /**
- * Shadow X offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.textShadowOffsetX
- */
- textShadowOffsetX?: number;
-
- /**
- * Shadow Y offset of the text itself.
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.textStyle.textShadowOffsetY
- */
- textShadowOffsetY?: number;
- };
-
- /**
- *
- * > **Notice:**series.tooltip only works when
- * > [tooltip.trigger](https://ecomfe.github.io/echarts-doc/public/en/option.html#tooltip.trigger)
- * > is `'item'`.
- *
- * Extra CSS style for floating layer.
- * The following is an example for adding shadow.
- *
- * ```
- * extraCssText: 'box-shadow: 0 0 3px rgba(0, 0, 0, 0.3);'
- *
- * ```
- *
- *
- * @see https://ecomfe.github.io/echarts-doc/public/en/option.html#series-treemap.tooltip.extraCssText
- */
- extraCssText?: string;
- };
+ }
}
}
}