@@ -11,7 +11,7 @@ const { local, build, vduiLocal, vduiBuild, toggleTable, toggleLabels, toggleSta
1111const crazyDs = [];
1212const crazyDs2 = [];
1313const crazyDs3 = []
14- for (let i = 0 ; i < 20 ; i += 1 ) {
14+ for (let i = 0 ; i < 200 ; i += 1 ) {
1515 crazyDs .push (Math .random () + (Math .random () > 0.5 ? Math .random () * 100 : 0 ))
1616 crazyDs2 .push (Math .random () + (Math .random () > 0.5 ? Math .random () * - 10 : - 10 ))
1717 crazyDs3 .push (Math .random () + (Math .random () > 0.5 ? Math .random () * - 5 : Math .random () * 5 ))
@@ -29,24 +29,14 @@ const dataset = ref([
2929 {
3030 name: " S0" ,
3131 series: crazyDs3,
32- type: " bar " ,
32+ type: " line " ,
3333 useArea: false ,
3434 dataLabels: true ,
3535 scaleSteps: 2 ,
3636 prefix: ' $' ,
3737 suffix: ' £' ,
3838 rounding: 1 ,
3939 },
40- {
41- name: " S3" ,
42- series: [23.12 , 23.12 , 23.05 , 23.07 , null , 23.69 , 23.72 , 23.25 , 23.36 , 23.41 , 23.65 ],
43- type: " line" ,
44- smooth: false ,
45- useArea: true ,
46- scaleSteps: 5 ,
47- autoScaling: false ,
48- stackRatio: 0.5
49- },
5040 ])
5141
5242 async function getData () {
@@ -82,6 +72,7 @@ async function longpolling ()
8272
8373
8474const model = ref ([
75+ { key: ' downsample.threshold' , def: 120000 , type: ' number' , min: 0 ,max: 10000000 },
8576 { key: ' responsive' , def: false , type: " checkbox" },
8677 { key: ' userOptions.show' , def: true , type: ' checkbox' },
8778 { key: ' userOptions.buttons.pdf' , def: true , type: ' checkbox' },
@@ -110,8 +101,8 @@ const model = ref([
110101 { key: ' style.chart.zoom.highlightColor' , def: ' #4A4A4A' , type: ' color' },
111102 { key: ' style.chart.zoom.fontSize' , def: 14 , type: ' number' , min: 8 , max: 42 },
112103 { key: ' style.chart.zoom.useResetSlot' , def: false , type: ' checkbox' },
113- { key: ' style.chart.zoom.startIndex' , def: 0 , type: ' number' , min: 0 , max: 1000 },
114- { key: ' style.chart.zoom.endIndex' , def: 20 , type: ' number' , min: 0 , max: 1000 },
104+ { key: ' style.chart.zoom.startIndex' , def: null , type: ' number' , min: 0 , max: 1000 },
105+ { key: ' style.chart.zoom.endIndex' , def: null , type: ' number' , min: 0 , max: 1000 },
115106 { key: ' style.chart.zoom.enableRangeHandles' , def: true , type: ' checkbox' },
116107 { key: ' style.chart.zoom.enableSelectionDrag' , def: true , type: ' checkbox' },
117108
@@ -147,6 +138,7 @@ const model = ref([
147138 { key: ' style.chart.grid.y.axisName' , def: ' Y AXIS' , type: ' text' },
148139 { key: ' style.chart.grid.y.axisThickness' , def: 2 , type: ' number' , min: 1 , max: 6 },
149140 { key: ' style.chart.grid.y.axisLabels.show' , def: true , type: ' checkbox' },
141+ { key: ' style.chart.grid.y.axisLabels.bold' , def: true , type: ' checkbox' },
150142 { key: ' style.chart.grid.y.axisLabels.fontSizeRatio' , def: 0.7 , type: ' number' , min: 0.1 , max: 2 , step: 0.1 },
151143 { key: ' style.chart.grid.y.axisLabels.color' , def: ' #1A1A1A' , type: ' color' },
152144 { key: ' style.chart.grid.y.axisLabels.offsetX' , def: 0 , type: ' number' , min: - 100 , max: 100 },
@@ -161,6 +153,7 @@ const model = ref([
161153 { key: ' style.chart.grid.y.timeLabels.offsetY' , def: 30 , type: ' number' , min: - 100 , max: 100 },
162154 { key: ' style.chart.grid.y.timeLabels.color' , def: ' #1A1A1A' , type: ' color' },
163155 { key: ' style.chart.grid.y.timeLabels.modulo' , def: 8 , type: ' number' , min: 1 , max: 100 },
156+ { key: ' style.chart.grid.y.timeLabels.bold' , def: true , type: ' checkbox' },
164157 { key: ' style.chart.grid.x.showAxis' , def: true , type: ' checkbox' },
165158 { key: ' style.chart.grid.x.axisName' , def: ' X AXIS' , type: ' text' },
166159 { key: ' style.chart.grid.x.axisColor' , def: ' #1A1A1A' , type: ' color' },
@@ -179,6 +172,7 @@ const model = ref([
179172
180173 { key: ' style.chart.area.opacity' , def: 60 , type: ' number' , min: 10 , max: 100 },
181174 { key: ' style.chart.dataLabels.show' , def: false , type: ' checkbox' },
175+ { key: ' style.chart.dataLabels.bold' , def: true , type: ' checkbox' },
182176 { key: ' style.chart.dataLabels.fontSizeRatio' , def: 1 , type: ' number' , min: 0.1 , max: 2 , step: 0.1 },
183177 { key: ' style.chart.dataLabels.useSerieColor' , def: true , type: ' checkbox' },
184178 { key: ' style.chart.dataLabels.color' , def: ' #1A1A1A' , type: ' color' },
0 commit comments