Browse Source

remove default stops options

master
vargburz 3 years ago
parent
commit
285128fea5
  1. 2
      package.json
  2. 12
      src/models/gauge_options.ts

2
package.json

@ -1,6 +1,6 @@
{ {
"name": "@chartwerk/gauge-pod", "name": "@chartwerk/gauge-pod",
"version": "0.6.1", "version": "0.6.2",
"description": "Chartwerk gauge pod", "description": "Chartwerk gauge pod",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {

12
src/models/gauge_options.ts

@ -51,17 +51,7 @@ export const CORE_OPTIONS_DEFAULTS = {
const GAUGE_OPTIONS_DEFAULTS: GaugeConfig = { const GAUGE_OPTIONS_DEFAULTS: GaugeConfig = {
innerRadius: DEFAULT_INNER_RADIUS, innerRadius: DEFAULT_INNER_RADIUS,
outerRadius: DEFAULT_OUTER_RADIUS, outerRadius: DEFAULT_OUTER_RADIUS,
stops: [ defaultColor: 'green',
{
color: 'green',
value: 10
},
{
color: 'yellow',
value: 20
}
],
defaultColor: 'red',
stat: Stat.CURRENT, stat: Stat.CURRENT,
icons: [], icons: [],
valueArcBackgroundColor: BACKGROUND_COLOR, valueArcBackgroundColor: BACKGROUND_COLOR,

Loading…
Cancel
Save