@@ -11,7 +11,7 @@ const { local, build, vduiLocal, vduiBuild, toggleTable, toggleLabels, toggleSta
11
11
const crazyDs = [];
12
12
const crazyDs2 = [];
13
13
const crazyDs3 = []
14
- for (let i = 0 ; i < 800 ; i += 1 ) {
14
+ for (let i = 0 ; i < 20 ; i += 1 ) {
15
15
crazyDs .push (Math .random () + (Math .random () > 0.5 ? Math .random () * 100 : 0 ))
16
16
crazyDs2 .push (Math .random () + (Math .random () > 0.5 ? Math .random () * - 10 : - 10 ))
17
17
crazyDs3 .push (Math .random () + (Math .random () > 0.5 ? Math .random () * - 5 : Math .random () * 5 ))
@@ -29,7 +29,7 @@ const dataset = ref([
29
29
{
30
30
name: " S0" ,
31
31
series: crazyDs3,
32
- type: " line " ,
32
+ type: " bar " ,
33
33
useArea: false ,
34
34
dataLabels: true ,
35
35
scaleSteps: 2 ,
@@ -38,33 +38,15 @@ const dataset = ref([
38
38
rounding: 1 ,
39
39
},
40
40
{
41
- name: " S1" ,
42
- series: crazyDs,
43
- type: " bar" ,
44
- useArea: false ,
45
- dataLabels: true ,
46
- rounding: 1 ,
47
- },
48
- {
49
- name: " S2" ,
50
- series: crazyDs2,
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 ],
51
43
type: " line" ,
52
- useArea: false ,
53
- dataLabels: true ,
54
44
smooth: false ,
55
- rounding: 1 ,
56
- scaleSteps: 2 ,
45
+ useArea: true ,
46
+ scaleSteps: 5 ,
47
+ autoScaling: false ,
48
+ stackRatio: 0.5
57
49
},
58
- // {
59
- // name: "S3",
60
- // series: [23.12, 23.12, 23.05, 23.07, null, 23.69, 23.72, 23.25, 23.36, 23.41, 23.65],
61
- // type: "line",
62
- // smooth: false,
63
- // useArea: true,
64
- // scaleSteps: 5,
65
- // autoScaling: false,
66
- // stackRatio: 0.5
67
- // },
68
50
])
69
51
70
52
async function getData () {
@@ -120,16 +102,16 @@ const model = ref([
120
102
{ key: ' style.chart.stacked' , def: false , type: ' checkbox' },
121
103
{ key: ' style.chart.stackGap' , def: 20 , type: ' number' , min: 0.1 , max: 1 , step: 0.1 },
122
104
{ key: ' style.chart.scale.ticks' , def: 10 , type: ' number' , min: 2 , max: 20 },
123
- { key: ' style.chart.scale.min' , def: - 100 , type: ' number' , min: - 1000 , max: 1000 },
124
- { key: ' style.chart.scale.max' , def: 100 , type: ' number' , min: - 1000 , max: 1000 },
105
+ { key: ' style.chart.scale.min' , def: null , type: ' number' , min: - 1000 , max: 1000 },
106
+ { key: ' style.chart.scale.max' , def: null , type: ' number' , min: - 1000 , max: 1000 },
125
107
126
108
{ key: ' style.chart.zoom.show' , def: true , type: ' checkbox' },
127
109
{ key: ' style.chart.zoom.color' , def: ' #CCCCCC' , type: ' color' },
128
110
{ key: ' style.chart.zoom.highlightColor' , def: ' #4A4A4A' , type: ' color' },
129
111
{ key: ' style.chart.zoom.fontSize' , def: 14 , type: ' number' , min: 8 , max: 42 },
130
112
{ key: ' style.chart.zoom.useResetSlot' , def: false , type: ' checkbox' },
131
- { key: ' style.chart.zoom.startIndex' , def: 100 , type: ' number' , min: 0 , max: 1000 },
132
- { key: ' style.chart.zoom.endIndex' , def: 400 , type: ' number' , min: 0 , max: 1000 },
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 },
133
115
{ key: ' style.chart.zoom.enableRangeHandles' , def: true , type: ' checkbox' },
134
116
{ key: ' style.chart.zoom.enableSelectionDrag' , def: true , type: ' checkbox' },
135
117
@@ -192,6 +174,9 @@ const model = ref([
192
174
{ key: ' style.chart.grid.zeroLine.dashed' , def: true , type: ' checkbox' },
193
175
{ key: ' style.chart.line.plots.show' , def: false , type: ' checkbox' },
194
176
{ key: ' style.chart.line.plots.radiusRatio' , def: 1 , type: ' number' , min: 0.1 , max: 3 , step: 0.1 },
177
+
178
+ { key: ' style.chart.bar.gradient.show' , def: false , type: ' checkbox' },
179
+
195
180
{ key: ' style.chart.area.opacity' , def: 60 , type: ' number' , min: 10 , max: 100 },
196
181
{ key: ' style.chart.dataLabels.show' , def: false , type: ' checkbox' },
197
182
{ key: ' style.chart.dataLabels.fontSizeRatio' , def: 1 , type: ' number' , min: 0.1 , max: 2 , step: 0.1 },
0 commit comments