Skip to content

arlas-d3 / Exports / Gauge

Class: Gauge

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new Gauge(width, height)

Parameters

Name Type
width number
height number

Defined in

src/gauge/Gauge.ts:30

Properties

cursorHeight

cursorHeight: number = 10

Defined in

src/gauge/Gauge.ts:27


cursorRadius

cursorRadius: number = 2

Defined in

src/gauge/Gauge.ts:28


gaugeRadius

gaugeRadius: number = 5

Defined in

src/gauge/Gauge.ts:25


margin

margin: Object

Type declaration

Name Type
bottom number
left number
right number
top number

Defined in

src/gauge/Gauge.ts:26

Methods

plot

plot(maxValue, threshold, currentValue, svg): void

Parameters

Name Type
maxValue number
threshold number
currentValue number
svg Selection<SVGElement, BaseType, SVGElement, BaseType>

Returns

void

Defined in

src/gauge/Gauge.ts:34