@@ -198,40 +198,38 @@ export default defineStack({
198198 layout : { x : 0 , y : 1 , w : 3 , h : 2 } ,
199199 options : {
200200 xField : 'month' ,
201- yField : 'revenue'
201+ yField : 'revenue' ,
202+ data : {
203+ provider : 'value' ,
204+ items : [
205+ { month : 'Jan' , revenue : 155000 } ,
206+ { month : 'Feb' , revenue : 87000 } ,
207+ { month : 'Mar' , revenue : 48000 } ,
208+ { month : 'Apr' , revenue : 61000 } ,
209+ { month : 'May' , revenue : 55000 } ,
210+ { month : 'Jun' , revenue : 67000 } ,
211+ { month : 'Jul' , revenue : 72000 }
212+ ]
213+ }
202214 } ,
203- // @ts -ignore
204- data : {
205- provider : 'value' ,
206- items : [
207- { month : 'Jan' , revenue : 155000 } ,
208- { month : 'Feb' , revenue : 87000 } ,
209- { month : 'Mar' , revenue : 48000 } ,
210- { month : 'Apr' , revenue : 61000 } ,
211- { month : 'May' , revenue : 55000 } ,
212- { month : 'Jun' , revenue : 67000 } ,
213- { month : 'Jul' , revenue : 72000 }
214- ]
215- }
216215 } ,
217216 {
218217 title : 'Lead Source' ,
219218 type : 'donut' ,
220219 layout : { x : 3 , y : 1 , w : 1 , h : 2 } ,
221220 options : {
222221 xField : 'source' ,
223- yField : 'value'
222+ yField : 'value' ,
223+ data : {
224+ provider : 'value' ,
225+ items : [
226+ { source : 'Web' , value : 2 } ,
227+ { source : 'Referral' , value : 1 } ,
228+ { source : 'Partner' , value : 1 } ,
229+ { source : 'Existing Business' , value : 3 }
230+ ]
231+ }
224232 } ,
225- // @ts -ignore
226- data : {
227- provider : 'value' ,
228- items : [
229- { source : 'Web' , value : 2 } ,
230- { source : 'Referral' , value : 1 } ,
231- { source : 'Partner' , value : 1 } ,
232- { source : 'Existing Business' , value : 3 }
233- ]
234- }
235233 } ,
236234
237235 // --- Row 3: More Charts ---
@@ -241,38 +239,36 @@ export default defineStack({
241239 layout : { x : 0 , y : 3 , w : 2 , h : 2 } ,
242240 options : {
243241 xField : 'stage' ,
244- yField : 'amount'
242+ yField : 'amount' ,
243+ data : {
244+ provider : 'value' ,
245+ items : [
246+ { stage : 'Prospecting' , amount : 250000 } ,
247+ { stage : 'Qualification' , amount : 35000 } ,
248+ { stage : 'Proposal' , amount : 85000 } ,
249+ { stage : 'Negotiation' , amount : 45000 } ,
250+ { stage : 'Closed Won' , amount : 225000 }
251+ ]
252+ }
245253 } ,
246- // @ts -ignore
247- data : {
248- provider : 'value' ,
249- items : [
250- { stage : 'Prospecting' , amount : 250000 } ,
251- { stage : 'Qualification' , amount : 35000 } ,
252- { stage : 'Proposal' , amount : 85000 } ,
253- { stage : 'Negotiation' , amount : 45000 } ,
254- { stage : 'Closed Won' , amount : 225000 }
255- ]
256- }
257254 } ,
258255 {
259256 title : 'Top Products' ,
260257 type : 'bar' ,
261258 layout : { x : 2 , y : 3 , w : 2 , h : 2 } ,
262259 options : {
263260 xField : 'name' ,
264- yField : 'sales'
261+ yField : 'sales' ,
262+ data : {
263+ provider : 'value' ,
264+ items : [
265+ { name : 'Workstation Pro Laptop' , sales : 45000 } ,
266+ { name : 'Implementation Service' , sales : 32000 } ,
267+ { name : 'Premium Support' , sales : 21000 } ,
268+ { name : 'Executive Mesh Chair' , sales : 15000 }
269+ ]
270+ }
265271 } ,
266- // @ts -ignore
267- data : {
268- provider : 'value' ,
269- items : [
270- { name : 'Workstation Pro Laptop' , sales : 45000 } ,
271- { name : 'Implementation Service' , sales : 32000 } ,
272- { name : 'Premimum Support' , sales : 21000 } ,
273- { name : 'Executive Mesh Chair' , sales : 15000 }
274- ]
275- }
276272 } ,
277273
278274 // --- Row 4: Table ---
@@ -286,19 +282,18 @@ export default defineStack({
286282 { header : 'Amount' , accessorKey : 'amount' } ,
287283 { header : 'Stage' , accessorKey : 'stage' } ,
288284 { header : 'Close Date' , accessorKey : 'date' }
289- ]
285+ ] ,
286+ data : {
287+ provider : 'value' ,
288+ items : [
289+ { name : 'Berlin Automation Project' , amount : '$250,000' , stage : 'Prospecting' , date : '2024-09-01' } ,
290+ { name : 'ObjectStack Enterprise License' , amount : '$150,000' , stage : 'Closed Won' , date : '2024-01-15' } ,
291+ { name : 'London Annual Renewal' , amount : '$85,000' , stage : 'Proposal' , date : '2024-05-15' } ,
292+ { name : 'SF Tower Expansion' , amount : '$75,000' , stage : 'Closed Won' , date : '2024-02-28' } ,
293+ { name : 'Global Fin Q1 Upsell' , amount : '$45,000' , stage : 'Negotiation' , date : '2024-03-30' }
294+ ]
295+ }
290296 } ,
291- // @ts -ignore
292- data : {
293- provider : 'value' ,
294- items : [
295- { name : 'Berlin Automation Project' , amount : '$250,000' , stage : 'Prospecting' , date : '2024-09-01' } ,
296- { name : 'ObjectStack Enterprise License' , amount : '$150,000' , stage : 'Closed Won' , date : '2024-01-15' } ,
297- { name : 'London Annual Renewal' , amount : '$85,000' , stage : 'Proposal' , date : '2024-05-15' } ,
298- { name : 'SF Tower Expansion' , amount : '$75,000' , stage : 'Closed Won' , date : '2024-02-28' } ,
299- { name : 'Global Fin Q1 Upsell' , amount : '$45,000' , stage : 'Negotiation' , date : '2024-03-30' }
300- ]
301- }
302297 }
303298 ]
304299 }
0 commit comments