Skip to content

Commit 5f738e6

Browse files
committed
Dev environment - Update VueUiSparkline testing arena
1 parent 0b1aec2 commit 5f738e6

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

TestingArena/ArenaVueUiSparkline.vue

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,15 +77,16 @@ const dataset = ref([
7777
])
7878
7979
const model = ref([
80+
{ key: 'responsive', def: false, type: 'checkbox'},
8081
{ key: 'type', def: 'line', type: 'select', options: ['line', 'bar']},
81-
{ key: 'style.chartWidth', def: 290, type: 'number', min: 100, max: 500},
82+
{ key: 'style.chartWidth', def: 400, type: 'number', min: 100, max: 500},
8283
{ key: 'style.animation.show', def: true, type: 'checkbox'},
8384
{ key: 'style.animation.animationFrames', def: 360, type: 'number', min: 0, max: 1000},
8485
{ key: 'style.backgroundColor', def: '#FFFFFF', type: 'color'},
8586
{ key: 'style.fontFamily', def: 'inherit', type: 'text'},
8687
{ key: 'style.line.color', def: '#3366CC', type: 'color'},
8788
{ key: 'style.line.strokeWidth', def: 3, type: 'number', min: 0, max: 20},
88-
{ key: 'style.line.smooth', def: false, type: 'checkbox'},
89+
{ key: 'style.line.smooth', def: true, type: 'checkbox'},
8990
{ key: 'style.bar.borderRadius', def: 3, type: 'number', min: 0, max: 12},
9091
{ key: 'style.bar.color', def: '#3366CC', type: 'color'},
9192
{ key: 'style.zeroLine.color', def: '#1A1A1A', type: 'color'},
@@ -160,6 +161,14 @@ const step = ref(0)
160161
<option v-for="opt in themeOptions">{{ opt }}</option>
161162
</select>
162163
</div>
164+
165+
<div style="width: 600px; height: 400px; resize: both; overflow: auto; background: white">
166+
<LocalVueUiSparkline :key="`responsive_${step}`" :dataset="dataset" :config="{
167+
...config,
168+
responsive: true
169+
}"/>
170+
</div>
171+
163172
<Box comp="VueUiSparkline" :dataset="dataset">
164173
<template #title>VueUiSparkline</template>
165174

0 commit comments

Comments
 (0)