线性仪表图

线性仪表

{% embed data=“{“url”:”https://stackblitz.com/edit/swimlane-linear-gauge-chart?embed=1&file=app/app.component.ts”,”type”:”link”,”title”:”linear-gauge-chart - StackBlitz”,”description”:”Linear Gauge Chart demo for ngx-charts”,”icon”:{“type”:”icon”,”url”:”https://c.staticblitz.com/assets/icon-664493542621427cc8adae5e8f50d632f87aaa6ea1ce5b01e9a3d05b57940a9f.png”,”aspectRatio”:0},”thumbnail”:{“type”:”thumbnail”,”url”:”https://c.staticblitz.com/assets/icon-664493542621427cc8adae5e8f50d632f87aaa6ea1ce5b01e9a3d05b57940a9f.png”,”aspectRatio”:0}}” %}

输入

属性

类型

De fa ul

t

Va lu

e

描述

vie w

number[]

图表[宽度,高度]的尺寸。如果未定义,图表将适合于父容器的大小

sch eme

obje ct

图表的颜色方案

cus tom Col ors

func tion or obje ct

自定义颜色图表。用于覆盖颜色的特定值

ani mat ion s

bool ean

tr ue

使动画

min

numb er

0

首发规模点

max

numb er

10 0

ending point of the scale

val ue

numb er

0

the value represented on the gauge

pre vio usV alu e

numb er

the value represented by the vertical line on the gauge. Use this if you want to compare the current value to a previous one

uni ts

stri ng

text to display under the value

val ueF orm att ing

func tion

function that formats the value in the middle of the chart

输出

属性

描述

select

单击事件