Skip to content

Commit e4c1382

Browse files
committed
Dev environment - Update VueUiSparkline testing arena
1 parent 61b3e20 commit e4c1382

File tree

1 file changed

+83
-80
lines changed

1 file changed

+83
-80
lines changed

TestingArena/ArenaVueUiSparkline.vue

Lines changed: 83 additions & 80 deletions
Original file line numberDiff line numberDiff line change
@@ -5,88 +5,88 @@ import LocalVueDataUi from '../src/components/vue-data-ui.vue';
55
import Box from "./Box.vue";
66
import convertArrayToObject from "./convertModel";
77
8-
// const dataset = ref([
9-
// {
10-
// period: "period 1",
11-
// value: 0
12-
// },
13-
// {
14-
// period: "period 2",
15-
// value: -1
16-
// },
17-
// {
18-
// period: "period 3",
19-
// value: 2
20-
// },
21-
// {
22-
// period: "period 4",
23-
// value: -3
24-
// },
25-
// {
26-
// period: "period 5",
27-
// value: 4
28-
// },
29-
// {
30-
// period: "period 6",
31-
// value: -5
32-
// },
33-
// {
34-
// period: "period 7",
35-
// value: 6
36-
// },
37-
// {
38-
// period: "period 8",
39-
// value: -7
40-
// },
41-
// {
42-
// period: "period 9",
43-
// value: 8
44-
// },
45-
// {
46-
// period: "period 10",
47-
// value: -9
48-
// },
49-
// {
50-
// period: "period 11",
51-
// value: 10
52-
// },
53-
// {
54-
// period: "period 12",
55-
// value: -11
56-
// },
57-
// {
58-
// period: "period 13",
59-
// value: 12
60-
// },
61-
// {
62-
// period: "period 14",
63-
// value: -13
64-
// },
65-
// {
66-
// period: "period 15",
67-
// value: 14
68-
// },
69-
// {
70-
// period: "period 16",
71-
// value: -15
72-
// },
73-
// {
74-
// period: "period 17",
75-
// value: 16
76-
// },
77-
// ])
8+
const dataset = ref([
9+
{
10+
period: "period 1",
11+
value: 0
12+
},
13+
{
14+
period: "period 2",
15+
value: -1
16+
},
17+
{
18+
period: "period 3",
19+
value: 2
20+
},
21+
{
22+
period: "period 4",
23+
value: -3
24+
},
25+
{
26+
period: "period 5",
27+
value: 4
28+
},
29+
{
30+
period: "period 6",
31+
value: -5
32+
},
33+
{
34+
period: "period 7",
35+
value: 6
36+
},
37+
{
38+
period: "period 8",
39+
value: -7
40+
},
41+
{
42+
period: "period 9",
43+
value: 8
44+
},
45+
{
46+
period: "period 10",
47+
value: -9
48+
},
49+
{
50+
period: "period 11",
51+
value: 10
52+
},
53+
{
54+
period: "period 12",
55+
value: -11
56+
},
57+
{
58+
period: "period 13",
59+
value: 12
60+
},
61+
{
62+
period: "period 14",
63+
value: -13
64+
},
65+
{
66+
period: "period 15",
67+
value: 14
68+
},
69+
{
70+
period: "period 16",
71+
value: -15
72+
},
73+
{
74+
period: "period 17",
75+
value: 16
76+
},
77+
])
7878
79-
const dataset = computed(() => {
80-
const arr = [];
79+
// const dataset = computed(() => {
80+
// const arr = [];
8181
82-
for (let i = 0; i < 10000; i += 1) {
83-
arr.push({
84-
period: `Period ${i}`,
85-
value: Math.random() * 100
86-
})
87-
}
88-
return arr
89-
})
82+
// for (let i = 0; i < 10000; i += 1) {
83+
// arr.push({
84+
// period: `Period ${i}`,
85+
// value: Math.random() * 100
86+
// })
87+
// }
88+
// return arr
89+
// })
9090
9191
const alternateDataset = ref([
9292
{
@@ -135,6 +135,9 @@ function alterDataset() {
135135
const model = ref([
136136
{ key: 'responsive', def: false, type: 'checkbox'},
137137
{ key: 'type', def: 'line', type: 'select', options: ['line', 'bar']},
138+
{ key: 'style.scaleMin', def: null, type: 'number', min: -1000, max: 1000},
139+
{ key: 'style.scaleMax', def: null, type: 'number', min: -1000, max: 1000},
140+
138141
{ key: 'style.chartWidth', def: 400, type: 'number', min: 100, max: 500},
139142
{ key: 'style.animation.show', def: true, type: 'checkbox'},
140143
{ key: 'style.animation.animationFrames', def: 360, type: 'number', min: 0, max: 1000},

0 commit comments

Comments
 (0)