跳到主要内容

eo-mini-line-chart

<eo-mini-line-chart>

构件 eo-mini-line-chart

Examples​

Basic​

Playground

Auto size​

Playground

Properties​

NameDescriptionTypeDefaultRequired
width

Set auto to make it fit the container width.

string "155"
height

Set auto to make it fit the container height.

string "40"
smooth

Use a smooth curve line or not.

boolean true
lineColorstring "var(--color-brand)"
lineWidthnumber 2
showAreaboolean
min

Specify the minimum value of the y-axis. If not specified, the minimum value will be calculated from the data.

number
max

Specify the maximum value of the y-axis. If not specified, the maximum value will be calculated from the data.

number
xFieldstring "0"
yFieldstring "1"
dataRecord<string, number>[]