@@ -281,40 +281,38 @@ export default defineStack({
281281 layout : { x : 0 , y : 1 , w : 3 , h : 2 } ,
282282 options : {
283283 xField : 'month' ,
284- yField : 'revenue'
284+ yField : 'revenue' ,
285+ data : {
286+ provider : 'value' ,
287+ items : [
288+ { month : 'Jan' , revenue : 155000 } ,
289+ { month : 'Feb' , revenue : 87000 } ,
290+ { month : 'Mar' , revenue : 48000 } ,
291+ { month : 'Apr' , revenue : 61000 } ,
292+ { month : 'May' , revenue : 55000 } ,
293+ { month : 'Jun' , revenue : 67000 } ,
294+ { month : 'Jul' , revenue : 72000 }
295+ ]
296+ }
285297 } ,
286- // @ts -ignore
287- data : {
288- provider : 'value' ,
289- items : [
290- { month : 'Jan' , revenue : 155000 } ,
291- { month : 'Feb' , revenue : 87000 } ,
292- { month : 'Mar' , revenue : 48000 } ,
293- { month : 'Apr' , revenue : 61000 } ,
294- { month : 'May' , revenue : 55000 } ,
295- { month : 'Jun' , revenue : 67000 } ,
296- { month : 'Jul' , revenue : 72000 }
297- ]
298- }
299298 } ,
300299 {
301300 title : 'Lead Source' ,
302301 type : 'donut' ,
303302 layout : { x : 3 , y : 1 , w : 1 , h : 2 } ,
304303 options : {
305304 xField : 'source' ,
306- yField : 'value'
305+ yField : 'value' ,
306+ data : {
307+ provider : 'value' ,
308+ items : [
309+ { source : 'Web' , value : 2 } ,
310+ { source : 'Referral' , value : 1 } ,
311+ { source : 'Partner' , value : 1 } ,
312+ { source : 'Existing Business' , value : 3 }
313+ ]
314+ }
307315 } ,
308- // @ts -ignore
309- data : {
310- provider : 'value' ,
311- items : [
312- { source : 'Web' , value : 2 } ,
313- { source : 'Referral' , value : 1 } ,
314- { source : 'Partner' , value : 1 } ,
315- { source : 'Existing Business' , value : 3 }
316- ]
317- }
318316 } ,
319317
320318 // --- Row 3: More Charts ---
@@ -324,38 +322,36 @@ export default defineStack({
324322 layout : { x : 0 , y : 3 , w : 2 , h : 2 } ,
325323 options : {
326324 xField : 'stage' ,
327- yField : 'amount'
325+ yField : 'amount' ,
326+ data : {
327+ provider : 'value' ,
328+ items : [
329+ { stage : 'Prospecting' , amount : 250000 } ,
330+ { stage : 'Qualification' , amount : 35000 } ,
331+ { stage : 'Proposal' , amount : 85000 } ,
332+ { stage : 'Negotiation' , amount : 45000 } ,
333+ { stage : 'Closed Won' , amount : 225000 }
334+ ]
335+ }
328336 } ,
329- // @ts -ignore
330- data : {
331- provider : 'value' ,
332- items : [
333- { stage : 'Prospecting' , amount : 250000 } ,
334- { stage : 'Qualification' , amount : 35000 } ,
335- { stage : 'Proposal' , amount : 85000 } ,
336- { stage : 'Negotiation' , amount : 45000 } ,
337- { stage : 'Closed Won' , amount : 225000 }
338- ]
339- }
340337 } ,
341338 {
342339 title : 'Top Products' ,
343340 type : 'bar' ,
344341 layout : { x : 2 , y : 3 , w : 2 , h : 2 } ,
345342 options : {
346343 xField : 'name' ,
347- yField : 'sales'
344+ yField : 'sales' ,
345+ data : {
346+ provider : 'value' ,
347+ items : [
348+ { name : 'Workstation Pro Laptop' , sales : 45000 } ,
349+ { name : 'Implementation Service' , sales : 32000 } ,
350+ { name : 'Premium Support' , sales : 21000 } ,
351+ { name : 'Executive Mesh Chair' , sales : 15000 }
352+ ]
353+ }
348354 } ,
349- // @ts -ignore
350- data : {
351- provider : 'value' ,
352- items : [
353- { name : 'Workstation Pro Laptop' , sales : 45000 } ,
354- { name : 'Implementation Service' , sales : 32000 } ,
355- { name : 'Premimum Support' , sales : 21000 } ,
356- { name : 'Executive Mesh Chair' , sales : 15000 }
357- ]
358- }
359355 } ,
360356
361357 // --- Row 4: Table ---
@@ -369,19 +365,18 @@ export default defineStack({
369365 { header : 'Amount' , accessorKey : 'amount' } ,
370366 { header : 'Stage' , accessorKey : 'stage' } ,
371367 { header : 'Close Date' , accessorKey : 'date' }
372- ]
368+ ] ,
369+ data : {
370+ provider : 'value' ,
371+ items : [
372+ { name : 'Berlin Automation Project' , amount : '$250,000' , stage : 'Prospecting' , date : '2024-09-01' } ,
373+ { name : 'ObjectStack Enterprise License' , amount : '$150,000' , stage : 'Closed Won' , date : '2024-01-15' } ,
374+ { name : 'London Annual Renewal' , amount : '$85,000' , stage : 'Proposal' , date : '2024-05-15' } ,
375+ { name : 'SF Tower Expansion' , amount : '$75,000' , stage : 'Closed Won' , date : '2024-02-28' } ,
376+ { name : 'Global Fin Q1 Upsell' , amount : '$45,000' , stage : 'Negotiation' , date : '2024-03-30' }
377+ ]
378+ }
373379 } ,
374- // @ts -ignore
375- data : {
376- provider : 'value' ,
377- items : [
378- { name : 'Berlin Automation Project' , amount : '$250,000' , stage : 'Prospecting' , date : '2024-09-01' } ,
379- { name : 'ObjectStack Enterprise License' , amount : '$150,000' , stage : 'Closed Won' , date : '2024-01-15' } ,
380- { name : 'London Annual Renewal' , amount : '$85,000' , stage : 'Proposal' , date : '2024-05-15' } ,
381- { name : 'SF Tower Expansion' , amount : '$75,000' , stage : 'Closed Won' , date : '2024-02-28' } ,
382- { name : 'Global Fin Q1 Upsell' , amount : '$45,000' , stage : 'Negotiation' , date : '2024-03-30' }
383- ]
384- }
385380 }
386381 ]
387382 }
0 commit comments