Skip to content

Documentation v1.0.0


Documentation / @openassistant/echarts / getScatterplotChartOption

Function: getScatterplotChartOption() ​

getScatterplotChartOption(props): object

Defined in: components/echarts/src/scatterplot/scatter-option.ts:97

Get the scatterplot chart option.

Parameters ​

props ​

ScatterplotChartOptionProps

The properties of the scatterplot chart option. See ScatterplotChartOptionProps for more details.

Returns ​

object

The scatterplot eChart option.

animation ​

animation: boolean = false

grid ​

grid: object

grid.bottom ​

bottom: string = '3%'

grid.containLabel ​

containLabel: boolean = true

grid.left ​

left: string = '3%'

grid.right ​

right: string = '5%'

progressive ​

progressive: number = 0

series ​

series: ({ data: [number, number][]; itemStyle: { color: string; }; lineStyle?: undefined; showSymbol: boolean; type: string; } | { data: [number, number][]; itemStyle: { color: string; }; lineStyle: { width: number; }; showSymbol: boolean; type: string; } | { data: number[][]; itemStyle: { color: string; }; lineStyle: { opacity: number; type: string; width: number; }; showSymbol: boolean; type: string; } | { animationDelay: number; data: number[][]; emphasis: { itemStyle: { borderWidth: number; color: string; }; symbolSize: number; }; itemStyle: { borderColor: string; borderWidth: number; color: string; opacity: number; }; symbol: string; symbolSize: number; type: string; })[]

xAxis ​

xAxis: object

xAxis.axisLabel ​

axisLabel: object

xAxis.axisLabel.formatter() ​

formatter: (value) => string = numericFormatter

Formats a number to a more human-readable format, using compact notation

Parameters ​
value ​

number

The number to format

Returns ​

string

The formatted number

xAxis.splitLine ​

splitLine: object

xAxis.splitLine.show ​

show: boolean = false

xAxis.type ​

type: string = 'value'

yAxis ​

yAxis: object

yAxis.axisLabel ​

axisLabel: object

yAxis.axisLabel.formatter() ​

formatter: (value) => string = numericFormatter

Formats a number to a more human-readable format, using compact notation

Parameters ​
value ​

number

The number to format

Returns ​

string

The formatted number

yAxis.splitLine ​

splitLine: object

yAxis.splitLine.show ​

show: boolean = false

yAxis.type ​

type: string = 'value'

Released under the MIT License.