Skip to content

Commit bd8746c

Browse files
committed
Dev environment - Update VueUiXy testing arena
1 parent 3e84604 commit bd8746c

File tree

1 file changed

+29
-9
lines changed

1 file changed

+29
-9
lines changed

TestingArena/ArenaVueUiXy.vue

Lines changed: 29 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,22 @@ import { useArena } from "../src/useArena";
88
99
const { local, build, vduiLocal, vduiBuild, toggleTable, toggleLabels, toggleStack } = useArena()
1010
11+
// const dataset = ref([
12+
// {
13+
// name: "Curved",
14+
// series: [60, 100, null, 0, 0, 100, 0, 0, 0, 100, 60, 100, 60, 60, 12],
15+
// type: "line",
16+
// smooth: true,
17+
// useArea: true,
18+
// dataLabels: true,
19+
// },
20+
// ])
21+
22+
1123
const dataset = ref([
1224
{
1325
name: "Long name serie",
14-
series: [-80, -60, -30, 0, 30, 60, 80, 60, 30, 0, -30, -60, -80],
26+
series: [-80, -60, -30, 0, null, 60, 80, 60, 30, 0, -30, -60, -80],
1527
comments: ["", "", "", "", "This is a comment that can be long, or that can be short but it depends."],
1628
type: "line",
1729
smooth: true,
@@ -22,7 +34,7 @@ const dataset = ref([
2234
},
2335
{
2436
name: "Long name serie",
25-
series: [10, 20, 12, 13, 10, -20, 30, 20, 12, 16, 32, 64, 12],
37+
series: [10, 20, 12, 13, 10, -20, null, 20, 12, 16, 32, 64, 12],
2638
comments: ["", "", "", "", "This is a comment that can be long, or that can be short but it depends."],
2739
type: "line",
2840
smooth: false,
@@ -33,7 +45,7 @@ const dataset = ref([
3345
},
3446
{
3547
name: "S1",
36-
series: [-20, 20, 8, 16, 12, 13, -16, 55, 12, 3, 7, 12, 6],
48+
series: [-20, 20, 8, 16, null, 13, -16, 55, 12, 3, 7, 12, 6],
3749
comments: ["Some sort of negative comment", "Some sort of positive comment", "", "","", "", "", "Some sort of positive comment", "", ""],
3850
type: "bar",
3951
smooth: false,
@@ -175,15 +187,15 @@ const model = ref([
175187
{ key: 'chart.zoom.useResetSlot', def: false, type: 'checkbox'},
176188
177189
{ key: 'chart.zoom.minimap.show', def: true, type: 'checkbox'},
178-
{ key: 'chart.zoom.minimap.smooth', def: false, type: 'checkbox'},
190+
{ key: 'chart.zoom.minimap.smooth', def: true, type: 'checkbox'},
179191
{ key: 'chart.zoom.minimap.selectedColor', def: '#1f77b4', type: 'color'},
180192
{ key: 'chart.zoom.minimap.selectedColorOpacity', def: 0.2, type: 'range', min: 0, max: 1, step: 0.01 },
181193
{ key: 'chart.zoom.minimap.lineColor', def: '#1A1A1A', type: 'color'},
182194
{ key: 'chart.zoom.minimap.selectionRadius', def: 2, type: 'number', min: 0, max: 24},
183195
{ key: 'chart.zoom.minimap.indicatorColor', def: '#1A1A1A', type: 'color'},
184196
185197
{ key: 'chart.padding.top', def: 36, type: 'number', min: 0, max: 100, label: "top", category: 'padding' },
186-
{ key: 'chart.padding.right', def: 120, type: 'number', min: 0, max: 100, label: 'right', category: 'padding' },
198+
{ key: 'chart.padding.right', def: 36, type: 'number', min: 0, max: 100, label: 'right', category: 'padding' },
187199
{ key: 'chart.padding.bottom', def: 64, type: 'number', min: 0, max: 100, label: 'bottom', category: 'padding' },
188200
{ key: 'chart.padding.left', def: 48, type: 'number', min: 0, max: 100, label: 'left', category: 'padding' },
189201
@@ -236,8 +248,8 @@ const model = ref([
236248
{ key: 'chart.grid.labels.xAxisLabels.modulo', def: 6, type: 'number'},
237249
238250
{ key: 'chart.grid.labels.yAxis.commonScaleSteps', def: 5, min: 0, max: 100, type: 'number' },
239-
{ key: 'chart.grid.labels.yAxis.useIndividualScale', def: true, type: "checkbox" },
240-
{ key: 'chart.grid.labels.yAxis.stacked', def: true, type: 'checkbox' },
251+
{ key: 'chart.grid.labels.yAxis.useIndividualScale', def: false, type: "checkbox" },
252+
{ key: 'chart.grid.labels.yAxis.stacked', def: false, type: 'checkbox' },
241253
{ key: 'chart.grid.labels.yAxis.gap', def: 12, min: 0, max: 200, type: 'number' },
242254
{ key: 'chart.grid.labels.yAxis.labelWidth', def: 40, min: 0, max: 100, type: 'number' },
243255
{ key: 'chart.grid.labels.yAxis.showBaseline', def: true, type: 'checkbox'},
@@ -299,7 +311,7 @@ const model = ref([
299311
{ key: 'bar.border.strokeWidth', def: 1, type: 'number', min: 0, max: 12, step: 0.5},
300312
301313
{ key: 'line.radius', def: 6, type: 'number', min: 0, max: 20, label: 'radius', category: 'line' },
302-
{ key: 'line.useGradient', def: true, type: 'checkbox', label: 'useGradient', category: 'line' },
314+
{ key: 'line.useGradient', def: false, type: 'checkbox', label: 'useGradient', category: 'line' },
303315
{ key: 'line.strokeWidth', def: 2, type: 'number', min: 1, max: 20, label: 'thickness', category: 'line' },
304316
{ key: 'line.labels.show', def: true, type: 'checkbox', label: 'showDataLabels', category: 'line' },
305317
{ key: 'line.labels.offsetY', def: -8, type: 'number', min: -100, max: 100, label: 'offsetYDataLabels', category: 'line' },
@@ -308,6 +320,10 @@ const model = ref([
308320
{ key: 'line.area.useGradient', def: true, type: 'checkbox', label: 'useGradient', category: 'line' },
309321
{ key: 'line.area.opacity', def: 20, type: 'range', min: 0, max: 100, label: 'opacity', category: 'line' },
310322
323+
{ key: 'line.dot.useSerieColor', def: false, type: 'checkbox'},
324+
{ key: 'line.dot.fill', def: '#FFFFFF', type: 'color'},
325+
{ key: 'line.dot.strokeWidth', def: 2, type: 'number', min: 0, max:12, step: 0.1},
326+
311327
{ key: 'plot.radius', def: 6, type: 'number', min: 0, max: 20, label: 'radius', category: 'plot' },
312328
{ key: 'plot.useGradient', def: true, type: 'checkbox', label: 'useGradient', category: 'plot' },
313329
{ key: 'plot.strokeWidth', def: 2, type: 'number', min: 1, max: 20, label: 'thickness', category: 'plot' },
@@ -316,6 +332,10 @@ const model = ref([
316332
{ key: 'plot.labels.rounding', def: 0, type: 'number', min: 0, max: 6, label: 'rounding', category: 'plot' },
317333
{ key: 'plot.labels.color', def: '#1A1A1A', type: 'color', label: 'textColor', category: 'plot' },
318334
335+
{ key: 'plot.dot.useSerieColor', def: false, type: 'checkbox'},
336+
{ key: 'plot.dot.fill', def: '#FFFFFF', type: 'color'},
337+
{ key: 'plot.dot.strokeWidth', def: 0.5, type: 'number', min: 0, max:12, step: 0.1},
338+
319339
{ key: 'showTable', def: false, type: 'checkbox', label: 'show', category: 'table' },
320340
{ key: 'table.responsiveBreakpoint', def: 400, type: 'number', min: 350, max: 800, label: 'responsiveBreakpoint', category: 'table' },
321341
{ key: 'table.rounding', def: 0, type: 'number', min: 0, max: 6, label: 'rounding', category: 'table' },
@@ -544,7 +564,7 @@ function selectX(selectedX) {
544564
</template>
545565
</LocalVueUiXy>
546566
</div>
547-
<Box comp="VueUiXy" :dataset="isPropsToggled ? alternateDataset : dataset">
567+
<Box :dataset="isPropsToggled ? alternateDataset : dataset">
548568
<template #title>VueUiXy</template>
549569

550570
<template #local>

0 commit comments

Comments
 (0)