@@ -8,42 +8,43 @@ import convertArrayToObject from "./convertModel";
88const dataset = ref ([
99 {
1010 name: " S0" ,
11- series: [1 , 0 , 1 , 1 , 1 , 0 , 0 , 1 , 1 , 1 , 1 ],
12- type: " line " ,
11+ series: [10 , 20 , 12 , 13 , 10 , 20 , 30 , 20 , 12 , 16 , 32 , 64 ],
12+ type: " bar " ,
1313 smooth: false ,
1414 useArea: true ,
15- dataLabels: false ,
15+ dataLabels: true ,
1616 scaleSteps: 2 ,
1717 },
18- {
19- name: " S1" ,
20- series: [0 , 1 , 1 , 1 , 1 , 1 , 0 , 0 , 1 , 1 , 1 ],
21- type: " line " ,
22- smooth: false ,
23- useArea: true ,
24- scaleSteps: 2 ,
25- },
26- {
27- name: " S2" ,
28- series: [0 , 0 , 0 , 1 , 1 , 0 , 0 , 1 , 1 , 1 , 1 ],
29- type: " line " ,
30- smooth: false ,
31- useArea: true ,
32- scaleSteps: 2
33- },
34- {
35- name: " S3" ,
36- series: [23.12 , 23.12 , 23.05 , 23.07 , null , 23.69 , 23.72 , 23.25 , 23.36 , 23.41 , 23.65 ],
37- type: " line" ,
38- smooth: false ,
39- useArea: true ,
40- scaleSteps: 5 ,
41- autoScaling: false ,
42- stackRatio: 0.5
43- },
18+ // {
19+ // name: "S1",
20+ // series: [8, 4, 8, 16, 12, 13, 16, 25, 12, 3, 7, 12, 6 ],
21+ // type: "bar ",
22+ // smooth: false,
23+ // useArea: true,
24+ // scaleSteps: 2,
25+ // },
26+ // {
27+ // name: "S2",
28+ // series: [10,12,10,12, 25, 12, 4, 4, 3, 7, 8, 9, 12 ],
29+ // type: "bar ",
30+ // smooth: false,
31+ // useArea: true,
32+ // scaleSteps: 2
33+ // },
34+ // {
35+ // name: "S3",
36+ // series: [23.12, 23.12, 23.05, 23.07, null, 23.69, 23.72, 23.25, 23.36, 23.41, 23.65],
37+ // type: "line",
38+ // smooth: false,
39+ // useArea: true,
40+ // scaleSteps: 5,
41+ // autoScaling: false,
42+ // stackRatio: 0.5
43+ // },
4444 ])
4545
4646const model = ref ([
47+ { key: ' useCanvas' , def: false , type: ' checkbox' }, // DEPRECATED
4748 { key: ' useCssAnimation' , def: true , type: ' checkbox' , label: ' useCssAnimation' , category: ' general' },
4849 { key: ' chart.fontFamily' , def: ' inherit' , type: ' text' , label: ' fontFamily' , category: ' general' },
4950 { key: ' chart.backgroundColor' , def: ' #FFFFFF' , type: ' color' , label: ' backgroundColor' , category: ' general' },
@@ -80,8 +81,8 @@ const model = ref([
8081 { key: ' chart.highlightArea.caption.padding' , def: 3 , type: ' number' , min: 0 , max: 48 , label: ' captionPadding' , category: ' highlight' },
8182 { key: ' chart.highlightArea.caption.textAlign' , def: ' center' , type: ' select' , options: [' left' , ' center' , ' right' ], label: ' textAlign' , category: ' highlight' },
8283
83- { key: ' chart.grid.stroke' , def: ' #e1e5e8 ' , type: ' color' , label: ' lineColor' , category: ' grid' },
84- { key: ' chart.grid.showVerticalLines' , def: false , type: ' checkbox' , label: ' verticalLines' , category: ' grid' },
84+ { key: ' chart.grid.stroke' , def: ' #FF0000 ' , type: ' color' , label: ' lineColor' , category: ' grid' },
85+ { key: ' chart.grid.showVerticalLines' , def: true , type: ' checkbox' , label: ' verticalLines' , category: ' grid' },
8586 { key: ' chart.grid.labels.show' , def: true , type: ' checkbox' , label: ' showLabels' , category: ' grid' },
8687 { key: ' chart.grid.labels.color' , def: ' #1A1A1A' , type: ' color' , label: ' textColor' , category: ' grid' },
8788 { key: ' chart.grid.labels.fontSize' , def: 12 , type: ' number' , min: 4 , max: 30 , label: ' fontSize' , category: ' grid' },
@@ -96,13 +97,13 @@ const model = ref([
9697 { key: ' chart.grid.labels.xAxisLabels.yOffset' , def: 8 , type: ' number' , min: - 100 , max: 100 , label: ' offsetYPeriodLabels' , category: ' grid' },
9798 { key: ' chart.grid.labels.xAxisLabels.rotation' , def: 0 , type: ' range' , min: - 360 , max: 360 , label: ' rotation' , category: ' grid' },
9899 { key: ' chart.grid.labels.yAxis.commonScaleSteps' , def: 20 , min: 0 , max: 100 , type: ' number' },
99- { key: ' chart.grid.labels.yAxis.useIndividualScale' , def: true , type: " checkbox" },
100- { key: ' chart.grid.labels.yAxis.stacked' , def: true , type: ' checkbox' },
100+ { key: ' chart.grid.labels.yAxis.useIndividualScale' , def: false , type: " checkbox" },
101+ { key: ' chart.grid.labels.yAxis.stacked' , def: false , type: ' checkbox' },
101102 { key: ' chart.grid.labels.yAxis.gap' , def: 12 , min: 0 , max: 200 , type: ' number' },
102103 { key: ' chart.grid.labels.yAxis.labelWidth' , def: 40 , min: 0 , max: 100 , type: ' number' },
103104 { key: ' chart.grid.labels.xAxis.showBaseline' , def: true , type: ' checkbox' },
104105
105- { key: ' chart.labels.fontSize' , def: 10 , type: ' number' , min: 6 , max: 30 , label: ' fontSize' , category: ' labels' },
106+ { key: ' chart.labels.fontSize' , def: 20 , type: ' number' , min: 6 , max: 30 , label: ' fontSize' , category: ' labels' },
106107 { key: ' chart.labels.prefix' , def: ' ' , type: ' text' , label: ' prefix' , category: ' labels' },
107108 { key: ' chart.labels.suffix' , def: ' ' , type: ' text' , label: ' suffix' , category: ' labels' },
108109
@@ -145,6 +146,7 @@ const model = ref([
145146 { key: ' bar.serieName.abbreviationSize' , def: 3 , type: ' number' , min: 0 , max: 12 , label: [' serieName' , ' abbreviation' , ' is' , ' size' ], category: ' bar' },
146147 { key: ' bar.serieName.useSerieColor' , def: true , type: ' checkbox' , label: [' serieName' , ' textColor' , ' is' , ' series' ], category: ' bar' },
147148 { key: ' bar.serieName.color' , def: ' #1A1A1A' , type: ' color' , label: [' serieName' , ' is' , ' textColor' ], category: ' bar' },
149+ { key: ' bar.periodGap' , def: 0.1 , type: ' number' , min: 0 , max: 24 },
148150
149151 { key: ' line.radius' , def: 6 , type: ' number' , min: 0 , max: 20 , label: ' radius' , category: ' line' },
150152 { key: ' line.useGradient' , def: true , type: ' checkbox' , label: ' useGradient' , category: ' line' },
0 commit comments