@@ -11,7 +11,7 @@ const { local, build, vduiLocal, vduiBuild, toggleTable, toggleLabels, toggleSta
1111const crazyDs = [];
1212const crazyDs2 = [];
1313const crazyDs3 = []
14- for (let i = 0 ; i < 800 ; i += 1 ) {
14+ for (let i = 0 ; i < 20 ; 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,7 +29,7 @@ const dataset = ref([
2929 {
3030 name: " S0" ,
3131 series: crazyDs3,
32- type: " line " ,
32+ type: " bar " ,
3333 useArea: false ,
3434 dataLabels: true ,
3535 scaleSteps: 2 ,
@@ -38,33 +38,15 @@ const dataset = ref([
3838 rounding: 1 ,
3939 },
4040 {
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 ],
5143 type: " line" ,
52- useArea: false ,
53- dataLabels: true ,
5444 smooth: false ,
55- rounding: 1 ,
56- scaleSteps: 2 ,
45+ useArea: true ,
46+ scaleSteps: 5 ,
47+ autoScaling: false ,
48+ stackRatio: 0.5
5749 },
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- // },
6850 ])
6951
7052 async function getData () {
@@ -120,16 +102,16 @@ const model = ref([
120102 { key: ' style.chart.stacked' , def: false , type: ' checkbox' },
121103 { key: ' style.chart.stackGap' , def: 20 , type: ' number' , min: 0.1 , max: 1 , step: 0.1 },
122104 { 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 },
125107
126108 { key: ' style.chart.zoom.show' , def: true , type: ' checkbox' },
127109 { key: ' style.chart.zoom.color' , def: ' #CCCCCC' , type: ' color' },
128110 { key: ' style.chart.zoom.highlightColor' , def: ' #4A4A4A' , type: ' color' },
129111 { key: ' style.chart.zoom.fontSize' , def: 14 , type: ' number' , min: 8 , max: 42 },
130112 { 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 },
133115 { key: ' style.chart.zoom.enableRangeHandles' , def: true , type: ' checkbox' },
134116 { key: ' style.chart.zoom.enableSelectionDrag' , def: true , type: ' checkbox' },
135117
@@ -192,6 +174,9 @@ const model = ref([
192174 { key: ' style.chart.grid.zeroLine.dashed' , def: true , type: ' checkbox' },
193175 { key: ' style.chart.line.plots.show' , def: false , type: ' checkbox' },
194176 { 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+
195180 { key: ' style.chart.area.opacity' , def: 60 , type: ' number' , min: 10 , max: 100 },
196181 { key: ' style.chart.dataLabels.show' , def: false , type: ' checkbox' },
197182 { key: ' style.chart.dataLabels.fontSizeRatio' , def: 1 , type: ' number' , min: 0.1 , max: 2 , step: 0.1 },
0 commit comments