@@ -21,9 +21,11 @@ const model= ref([
2121
2222 { key: ' userOptions.show' , def: true , type: ' checkbox' },
2323 { key: ' userOptions.showOnChartHover' , def: true , type: ' checkbox' },
24-
24+
2525])
2626
27+ // TODO: add xy with zoom and fix bubbling fuckup
28+
2729const config = computed (() => {
2830 const c = convertArrayToObject (model .value );
2931 return {
@@ -36,6 +38,14 @@ const config = computed(() => {
3638
3739const step = ref (0 )
3840
41+ const xyDataset = ref ([
42+ {
43+ name: ' Series A' ,
44+ type: ' line' ,
45+ series: [1 , 2 , 3 , 5 , 8 , 13 , 21 , 34 , 55 , 89 , 134 , 233 , 377 , 610 ]
46+ }
47+ ])
48+
3949const gaugeDataset = ref ({
4050 base: 0 ,
4151 value: 4.2 ,
@@ -99,14 +109,43 @@ const dataset = ref([
99109 left: 50 ,
100110 top: 4 ,
101111 component: " VueUiOnion" ,
102- props: { config: { userOptions: { show: false }, responsive: false }, dataset: onionDataset .value },
112+ props: {
113+ config: {
114+ userOptions: { show: false },
115+ responsive: false ,
116+ style: {
117+ chart: {
118+ title: {
119+ text: ' Title' ,
120+ subtitle: {
121+ text: ' Subtitle'
122+ }
123+ }
124+ }
125+ }
126+ },
127+ dataset: onionDataset .value },
128+ },
129+ {
130+ id: 4 ,
131+ width: 40 ,
132+ height: 20 ,
133+ left: 10 ,
134+ top: 30 ,
135+ component: " VueUiXy" ,
136+ props: {
137+ dataset: xyDataset .value ,
138+ config: {
139+ responsive: false ,
140+ }
141+ }
103142 },
104143 {
105144 id: 3 ,
106145 width: 20 ,
107146 height: 5 ,
108147 left: 10 ,
109- top: 50 ,
148+ top: 70 ,
110149 component: markRaw (SomeTest),
111150 props: { str: ' SOME TEST' },
112151 },
@@ -115,6 +154,12 @@ const dataset = ref([
115154 </script >
116155
117156<template >
157+
158+ <div style =" width : 800px ; height : 800px ; resize : both ; overflow : auto ; background : white " >
159+ <LocalVueUiDashboard :dataset =" dataset" :config =" config" >
160+ </LocalVueUiDashboard >
161+ </div >
162+
118163 <Box >
119164 <template #title >VueUiDashboard</template >
120165
0 commit comments