Skip to content

Commit e19618b

Browse files
committed
Improvement - Slicer & SlicerPreview - Improve performance, optional cut of null values
1 parent 79e4f57 commit e19618b

File tree

4 files changed

+265
-135
lines changed

4 files changed

+265
-135
lines changed

TestingArena/ArenaVueUiXy.vue

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ const dates = [
284284
function createDs(n, m = 100) {
285285
const arr = [];
286286
for (let i = 0; i < n; i += 1) {
287-
if (i > 20 && i < 30) {
287+
if ([10, 11, 13, 14, 15, 20, 22, 23, 25].includes(i)) {
288288
arr.push(null);
289289
} else {
290290
arr.push(Math.random() * m * (Math.random() > 0.3 ? 1 : -1))
@@ -394,24 +394,24 @@ onMounted(() => {
394394
dataset.value = [
395395
{
396396
name: "Serie A",
397-
series: createDs(12),
397+
series: createDs(35),
398398
type: "bar",
399399
dataLabels: false,
400400
smooth: true,
401401
useArea: true,
402402
},
403403
{
404404
name: "Serie A",
405-
series: createDs(12),
406-
type: "bar",
405+
series: createDs(35),
406+
type: "line",
407407
dataLabels: false,
408408
smooth: true,
409409
useArea: true,
410410
},
411411
{
412412
name: "Serie B",
413-
series: createDs(12),
414-
type: "line",
413+
series: createDs(35),
414+
type: "bar",
415415
dataLabels: false,
416416
smooth: true,
417417
useArea: true,
@@ -660,7 +660,7 @@ const model = ref([
660660
{ key: 'chart.zoom.enableSelectionDrag', def: true, type: 'checkbox' },
661661
662662
{ key: 'chart.zoom.minimap.show', def: true, type: 'checkbox' },
663-
{ key: 'chart.zoom.minimap.smooth', def: true, type: 'checkbox' },
663+
{ key: 'chart.zoom.minimap.smooth', def: false, type: 'checkbox' },
664664
{ key: 'chart.zoom.minimap.selectedColor', def: '#1f77b4', type: 'color' },
665665
{ key: 'chart.zoom.minimap.selectedColorOpacity', def: 0.2, type: 'range', min: 0, max: 1, step: 0.01 },
666666
{ key: 'chart.zoom.minimap.lineColor', def: '#1A1A1A', type: 'color' },
@@ -670,9 +670,9 @@ const model = ref([
670670
{ key: 'chart.zoom.minimap.compact', def: true, type: 'checkbox' },
671671
{ key: 'chart.zoom.minimap.merged', def: false, type: 'checkbox' },
672672
673-
{ key: 'chart.zoom.startIndex', def: 5, type: 'number', min: 0, max: 100 },
674-
{ key: 'chart.zoom.endIndex', def: 8, type: 'number', min: 0, max: 100 },
675-
{ key: 'chart.zoom.preview.enable', def: false, type: 'checkbox'},
673+
{ key: 'chart.zoom.startIndex', def: null, type: 'number', min: 0, max: 100 },
674+
{ key: 'chart.zoom.endIndex', def: null, type: 'number', min: 0, max: 100 },
675+
{ key: 'chart.zoom.preview.enable', def: true, type: 'checkbox'},
676676
{ key: 'chart.zoom.preview.stroke', def: '#1f77b4', type: 'color'},
677677
{ key: 'chart.zoom.preview.fill', def: '#1f77b420', type: 'color'},
678678
{ key: 'chart.zoom.preview.strokeDasharray', def: 0, type: 'number', min: 0, max: 12},

0 commit comments

Comments
 (0)