|
|
@ -15,7 +15,6 @@ const DEFAULT_INNER_RADIUS = 52; |
|
|
|
const DEFAULT_OUTER_RADIUS = 72; |
|
|
|
const DEFAULT_OUTER_RADIUS = 72; |
|
|
|
const STOPS_CIRCLE_WIDTH = 8; |
|
|
|
const STOPS_CIRCLE_WIDTH = 8; |
|
|
|
const DEFAULT_VALUE_TEXT_FONT_SIZE = 16; |
|
|
|
const DEFAULT_VALUE_TEXT_FONT_SIZE = 16; |
|
|
|
const DEFAULT_VALUE_TEXT_Decimals = 2; |
|
|
|
|
|
|
|
const VALUE_TEXT_MARGIN = 10; |
|
|
|
const VALUE_TEXT_MARGIN = 10; |
|
|
|
const DEFAULT_ICON_SIZE = 20; //px
|
|
|
|
const DEFAULT_ICON_SIZE = 20; //px
|
|
|
|
|
|
|
|
|
|
|
@ -91,7 +90,7 @@ export class ChartwerkGaugePod extends ChartwerkPod<GaugeTimeSerie, GaugeOptions |
|
|
|
|
|
|
|
|
|
|
|
constructor(el: HTMLElement, _series: GaugeTimeSerie[] = [], _options: GaugeOptions = {}) { |
|
|
|
constructor(el: HTMLElement, _series: GaugeTimeSerie[] = [], _options: GaugeOptions = {}) { |
|
|
|
super( |
|
|
|
super( |
|
|
|
d3, el, _series, |
|
|
|
el, _series, |
|
|
|
_.defaults(_options, DEFAULT_GAUGE_OPTIONS) |
|
|
|
_.defaults(_options, DEFAULT_GAUGE_OPTIONS) |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|