Skip to content

Commit de5e4d0

Browse files
committed
Config - Add VueUiStackbar config
1 parent 2f23b4d commit de5e4d0

File tree

1 file changed

+130
-0
lines changed

1 file changed

+130
-0
lines changed

src/useConfig.js

100644100755
Lines changed: 130 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,135 @@ export function useConfig() {
179179
useResetSlot: false
180180
}
181181

182+
const vue_ui_stackbar = {
183+
theme: '',
184+
responsive: false,
185+
customPalette: [],
186+
useCssAnimation: true,
187+
table: {
188+
...TABLE,
189+
columnNames: {
190+
period: 'Period',
191+
total: 'Total'
192+
},
193+
th: TABLE_TH,
194+
td: {
195+
...TABLE_TD,
196+
roundingValue: 0
197+
},
198+
},
199+
userOptions: USER_OPTIONS({
200+
tooltip: true,
201+
pdf: true,
202+
csv: true,
203+
img: true,
204+
table: true,
205+
labels: true,
206+
fullscreen: true,
207+
// IDEA : add a distributed toggle ?
208+
}),
209+
style: {
210+
fontFamily: 'inherit',
211+
chart: {
212+
backgroundColor: COLOR_WHITE,
213+
color: COLOR_BLACK,
214+
height: 500,
215+
width: 800,
216+
padding: PADDING([24, 24, 36, 48]),
217+
title: TITLE,
218+
legend: LEGEND,
219+
zoom: ZOOM,
220+
tooltip: {
221+
...TOOLTIP,
222+
showValue: true,
223+
showPercentage: true,
224+
roundingValue: 0,
225+
roundingPercentage: 0
226+
},
227+
highlighter: {
228+
color: COLOR_BLACK,
229+
opacity: 5
230+
},
231+
bars: {
232+
gapRatio: 0.5,
233+
distributed: false,
234+
showDistributedPercentage: true,
235+
borderRadius: 0,
236+
strokeWidth: 1,
237+
gradient: {
238+
show: true,
239+
intensity: 20
240+
},
241+
totalValues: {
242+
show: true,
243+
offsetY: 0,
244+
fontSize: FONT._16,
245+
bold: false,
246+
color: COLOR_BLACK
247+
},
248+
dataLabels: {
249+
show: true,
250+
adaptColorToBackground: true,
251+
color: COLOR_BLACK,
252+
fontSize: FONT._14,
253+
bold: false,
254+
rounding: 0,
255+
prefix: '',
256+
suffix: ''
257+
}
258+
},
259+
grid: {
260+
scale: {
261+
ticks: 10
262+
},
263+
x: {
264+
showAxis: true,
265+
showHorizontalLines: false,
266+
axisColor: COLOR_GREY_LIGHT,
267+
axisThickness: 2,
268+
axisName: {
269+
show: true,
270+
text: '',
271+
fontSize: FONT._14,
272+
color: COLOR_BLACK,
273+
bold: false,
274+
offsetY: 0,
275+
},
276+
timeLabels: {
277+
show: true,
278+
values: [],
279+
offsetY: 0,
280+
rotation: 0,
281+
fontSize: FONT._14,
282+
color: COLOR_BLACK,
283+
bold: false
284+
}
285+
},
286+
y: {
287+
showAxis: true,
288+
showVerticalLines: false,
289+
axisColor: COLOR_GREY_LIGHT,
290+
axisThickness: 2,
291+
axisName: {
292+
show: true,
293+
text: '',
294+
fontSize: FONT._14,
295+
color: COLOR_BLACK,
296+
bold: false,
297+
offsetX: 0,
298+
},
299+
axisLabels: {
300+
show: true,
301+
color: COLOR_BLACK,
302+
fontSize: FONT._14,
303+
bold: false,
304+
}
305+
},
306+
}
307+
}
308+
}
309+
}
310+
182311
const vue_ui_xy = {
183312
theme: '',
184313
responsive: false,
@@ -4412,6 +4541,7 @@ export function useConfig() {
44124541
vue_ui_timer,
44134542
vue_ui_carousel_table,
44144543
vue_ui_gizmo,
4544+
vue_ui_stackbar,
44154545
// non chart components
44164546
vue_ui_cursor,
44174547
vue_ui_accordion,

0 commit comments

Comments
 (0)