@@ -21,15 +21,15 @@ const dataset = computed(() => {
2121 return [
2222 {
2323 name: " Series 1" ,
24- series: [1 , 2 , 1 , 3 , 1 , 5 ],
24+ series: [1 , 2 , 1 , 3 , 1 , 5 , 0.1 ],
2525 },
2626 {
2727 name: " Series 2" ,
28- series: [0 , 2 , 3 , 2 , 1 , 2 ],
28+ series: [0 , 2 , 3 , 2 , 1 , 2 , 0.1 ],
2929 },
3030 {
3131 name: " Series 3" ,
32- series: [1 , 2 , 4 , 3 , 2 , 1 ],
32+ series: [1 , 2 , 4 , 3 , 2 , 1 , 0.1 ],
3333 },
3434 ];
3535});
@@ -82,7 +82,7 @@ const monthValues = computed(() => {
8282const model = ref ([
8383 { key: ' userOptions.position' , def: ' right' , type: ' select' , options: [' left' , ' right' ]},
8484
85- { key: ' orientation' , def: ' horizontal ' , type: ' select' , options: [' vertical' , ' horizontal' ]},
85+ { key: ' orientation' , def: ' vertical ' , type: ' select' , options: [' vertical' , ' horizontal' ]},
8686 { key: ' responsive' , def: false , type: ' checkbox' },
8787 { key: ' theme' , def: ' ' , type: ' select' , options: [' ' , ' zen' , ' hack' , ' concrete' ]},
8888 { key: ' useCssAnimation' , def: true , type: ' checkbox' },
@@ -115,8 +115,8 @@ const model = ref([
115115 { key: ' style.chart.zoom.color' , def: ' #CCCCCC' , type: ' color' },
116116 { key: ' style.chart.zoom.highlightColor' , def: ' #5A5A5A' , type: ' color' },
117117 { key: ' style.chart.zoom.fontSize' , def: 14 , type: ' number' , min: 8 , max: 42 },
118- { key: ' style.chart.zoom.startIndex' , def: 1 , type: ' number' , min: 0 , max: 100 },
119- { key: ' style.chart.zoom.endIndex' , def: 2 , type: ' number' , min: 0 , max: 100 },
118+ { key: ' style.chart.zoom.startIndex' , def: null , type: ' number' , min: 0 , max: 100 },
119+ { key: ' style.chart.zoom.endIndex' , def: null , type: ' number' , min: 0 , max: 100 },
120120 { key: ' style.chart.zoom.enableRangeHandles' , def: true , type: ' chexkbox' },
121121 { key: ' style.chart.zoom.enableSelectionDrag' , def: true , type: ' chexkbox' },
122122
@@ -141,7 +141,7 @@ const model = ref([
141141
142142 { key: ' style.chart.bars.gapRatio' , def: 0.5 , type: ' range' , min: 0 , max: 1 , step: 0.01 },
143143 { key: ' style.chart.bars.distributed' , def: false , type: ' checkbox' },
144- { key: ' style.chart.bars.showDistributedPercentage' , def: true , type: ' checkbox' },
144+ { key: ' style.chart.bars.showDistributedPercentage' , def: false , type: ' checkbox' },
145145 { key: ' style.chart.bars.borderRadius' , def: 6 , type: ' number' , min: 0 , max: 12 },
146146 { key: ' style.chart.bars.strokeWidth' , def: 1 , type: ' number' , min: 0 , max: 12 },
147147
@@ -166,12 +166,19 @@ const model = ref([
166166 { key: ' style.chart.bars.dataLabels.prefix' , def: ' P' , type: ' text' },
167167 { key: ' style.chart.bars.dataLabels.suffix' , def: ' S' , type: ' text' },
168168
169+ { key: ' style.chart.bars.dataLabels.hideUnderValue' , def: 1 , type: ' number' , min: 0 , max: 100 },
170+ { key: ' style.chart.bars.dataLabels.hideUnderPercentage' , def: 50 , type: ' number' , min: 0 , max: 100 },
171+
169172 { key: ' style.chart.grid.scale.ticks' , def: 10 , type: ' select' , options: [2 , 5 , 10 , 20 ]},
170173 { key: ' style.chart.grid.scale.scaleMin' , def: null , type: ' number' , min: - 1000 , max: 1000 },
171174 { key: ' style.chart.grid.scale.scaleMax' , def: null , type: ' number' , min: - 1000 , max: 1000 },
172175
173176 { key: ' style.chart.grid.x.showAxis' , def: true , type: ' checkbox' },
174177 { key: ' style.chart.grid.x.showHorizontalLines' , def: true , type: ' checkbox' },
178+ { key: ' style.chart.grid.x.linesColor' , def: ' red' , type: ' color' },
179+ { key: ' style.chart.grid.x.linesThickness' , def: 0.5 , type: ' number' , min: 0 , max: 12 },
180+ { key: ' style.chart.grid.x.linesStrokeDasharray' , def: 2 , type: ' number' , min: 0 , max: 12 },
181+
175182 { key: ' style.chart.grid.x.axisColor' , def: ' #E1E5E8' , type: ' color' },
176183 { key: ' style.chart.grid.x.axisThickness' , def: 2 , type: ' number' , min: 0 , max: 12 },
177184 { key: ' style.chart.grid.x.axisName.show' , def: true , type: ' checkbox' },
@@ -189,7 +196,11 @@ const model = ref([
189196 { key: ' style.chart.grid.x.timeLabels.bold' , def: false , type: ' checkbox' },
190197
191198 { key: ' style.chart.grid.y.showAxis' , def: true , type: ' checkbox' },
192- { key: ' style.chart.grid.y.showVerticalLines' , def: false , type: ' checkbox' },
199+ { key: ' style.chart.grid.y.showVerticalLines' , def: true , type: ' checkbox' },
200+ { key: ' style.chart.grid.y.linesColor' , def: ' #FF00FF' , type: ' color' },
201+ { key: ' style.chart.grid.y.linesThickness' , def: 0.5 , type: ' number' , min: 0 , max: 12 },
202+ { key: ' style.chart.grid.y.linesStrokeDasharray' , def: 2 , type: ' number' , min: 0 , max: 12 },
203+
193204 { key: ' style.chart.grid.y.axisColor' , def: ' #E1E5E8' , type: ' color' },
194205 { key: ' style.chart.grid.y.axisThickness' , def: 2 , type: ' number' , min: 0 , max: 12 },
195206 { key: ' style.chart.grid.y.axisName.show' , def: true , type: ' checkbox' },
@@ -227,7 +238,7 @@ const themeOptions = ref([
227238 " celebrationNight"
228239])
229240
230- const currentTheme = ref (themeOptions .value [6 ])
241+ const currentTheme = ref (themeOptions .value [0 ])
231242
232243const config = computed (() => {
233244 const c = convertArrayToObject (model .value );
@@ -264,6 +275,7 @@ const config = computed(() => {
264275 }
265276 },
266277 y: {
278+ ... c .style .chart .grid .y ,
267279 axisLabels: {
268280 formatter : ({ value }) => {
269281 return ' BOO' + value
0 commit comments