Skip to content

Commit 04eb58c

Browse files
committed
Dev environment - Update VueUiGauge testing arena
1 parent 3d94d3f commit 04eb58c

File tree

1 file changed

+20
-12
lines changed

1 file changed

+20
-12
lines changed

TestingArena/ArenaVueUiGauge.vue

Lines changed: 20 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,11 @@ const source = ref({
99
base: 100,
1010
value: 25,
1111
series: [
12-
{ from: -100, to: 0, name: 'series 1 is kinda long' },
13-
{ from: 0, to: 50, name: 'series 2' },
14-
{ from: 50, to: 100, name: 'series 3' }
12+
{ from: -100, to: -80, name: 'series 1', nameOffsetRatio: 1.2 },
13+
{ from: -80, to: -65, name: 'series 2', nameOffsetRatio: 1.1 },
14+
{ from: -75, to: 0, name: 'series 3', nameOffsetRatio: 0.6 },
15+
{ from: 0, to: 50, name: 'series 4', nameOffsetRatio: 0 },
16+
{ from: 50, to: 100, name: 'series 5' }
1517
]
1618
})
1719
@@ -69,6 +71,8 @@ const model = ref([
6971
{ key: 'style.chart.animation.use', def: true, type: 'checkbox'},
7072
{ key: 'style.chart.animation.speed', def: 1, type: 'range', min: 0, max: 100},
7173
{ key: 'style.chart.animation.acceleration', def: 1, type: 'range', min: 0, max: 10},
74+
75+
{ key: 'style.chart.layout.radiusRatio', def: 1, min: 0.5, max: 1.2, step: 0.01, type: 'range'},
7276
{ key: 'style.chart.layout.track.size', def: 1, type: 'range', min: 0.5, max: 2, step: 0.01},
7377
{ key: 'style.chart.layout.track.useGradient', def: true, type: 'checkbox'},
7478
{ key: 'style.chart.layout.track.gradientIntensity', def: 20, type: 'range', min: 10, max: 30},
@@ -82,8 +86,8 @@ const model = ref([
8286
{ key: 'style.chart.layout.markers.offsetY', def: 0, type: 'number', min: -100, max: 100},
8387
{ key: 'style.chart.layout.markers.roundingValue', def: 0, type: 'number', min: 0, max: 12},
8488
{ key: 'style.chart.layout.markers.show', def: true, type: 'checkbox'},
85-
{ key: 'style.chart.layout.markers.prefix', def: 'P', type: 'text'},
86-
{ key: 'style.chart.layout.markers.suffix', def: 'S', type: 'text'},
89+
{ key: 'style.chart.layout.markers.prefix', def: '', type: 'text'},
90+
{ key: 'style.chart.layout.markers.suffix', def: '', type: 'text'},
8791
8892
{ key: 'style.chart.layout.pointer.type', def: 'pointy', type: 'select', options: ['rounded', 'pointy']},
8993
{ key: 'style.chart.layout.pointer.size', def: 1, type: 'range', min: 0.2, max: 1.5, step: 0.01},
@@ -120,7 +124,11 @@ const model = ref([
120124
{ key: 'style.chart.layout.segmentNames.fontSize', def: 16, type: 'number', min: 8, max: 42},
121125
{ key: 'style.chart.layout.segmentNames.useSerieColor', def: true, type: 'checkbox'},
122126
{ key: 'style.chart.layout.segmentNames.color', def: '#1A1A1A', type: 'color'},
123-
{ key: 'style.chart.layout.segmentNames.bold', def: false, type: 'checkbox'}
127+
{ key: 'style.chart.layout.segmentNames.bold', def: false, type: 'checkbox'},
128+
129+
{ key: 'style.chart.layout.segmentNames.markers.show', def: true, type: 'checkbox'},
130+
{ key: 'style.chart.layout.segmentNames.markers.useSerieColor', def: true, type: 'checkbox'},
131+
{ key: 'style.chart.layout.segmentNames.markers.color', def: '#1A1A1A', type: 'color'}
124132
])
125133
126134
const themeOptions = ref([
@@ -145,16 +153,16 @@ const config = computed(() => {
145153
...c.style.chart.layout,
146154
markers: {
147155
...c.style.chart.layout.markers,
148-
formatter: ({ value }) => {
149-
return 'V | ' + value
150-
}
156+
// formatter: ({ value }) => {
157+
// return 'V | ' + value
158+
// }
151159
}
152160
},
153161
legend: {
154162
...c.style.chart.legend,
155-
formatter: ({value}) => {
156-
return `f - ${value}`
157-
}
163+
// formatter: ({value}) => {
164+
// return `f - ${value}`
165+
// }
158166
}
159167
}
160168
},

0 commit comments

Comments
 (0)