Skip to content

Commit 44f0936

Browse files
committed
[IMP] demo: add demo data for sunburst chart
Task: 4575651
1 parent 77986f2 commit 44f0936

File tree

1 file changed

+110
-2
lines changed

1 file changed

+110
-2
lines changed

demo/data.js

+110-2
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,7 @@ export const demoData = {
226226
colNumber: 26,
227227
rowNumber: 174,
228228
rows: {},
229-
cols: {},
229+
cols: { 22: { size: 166 } },
230230
merges: [],
231231
cells: {
232232
B2: "42",
@@ -418,9 +418,78 @@ export const demoData = {
418418
W30: "=W29 - RANDBETWEEN(10, 40)",
419419
W31: "=W30 - RANDBETWEEN(10, 40)",
420420
W32: "=W31 - RANDBETWEEN(10, 40)",
421+
V1: "Movie Genre",
422+
V2: "Action",
423+
V3: "Action",
424+
V4: "Action",
425+
V5: "Action",
426+
V6: "Action",
427+
V7: "Animation",
428+
V8: "Animation",
429+
V9: "Animation",
430+
V10: "Animation",
431+
V11: "Animation",
432+
V12: "Drama",
433+
V13: "Drama",
434+
V14: "Drama",
435+
V15: "Drama",
436+
V16: "Drama",
437+
V17: "Action",
438+
V18: "Animation",
439+
V19: "Drama",
440+
V20: "Action",
441+
V21: "Animation",
442+
V22: "Misc",
443+
V23: "Misc",
444+
W1: "Movie Name",
445+
W2: "Avengers: Endgame",
446+
W3: "The Dark Knight",
447+
W4: "Jurassic World",
448+
W5: "Fast & Furious 7",
449+
W6: "Spider-Man: No Way Home",
450+
W7: "Frozen II",
451+
W8: "Minions",
452+
W9: "Toy Story 4",
453+
W10: "The Lion King (2019)",
454+
W11: "Despicable Me 3",
455+
W12: "Titanic",
456+
W13: "Joker",
457+
W14: "Forrest Gump",
458+
W15: "Bohemian Rhapsody",
459+
W16: "The Revenant",
460+
W17: "Black Panther",
461+
W18: "Shrek 2",
462+
W19: "Interstellar",
463+
W20: "Iron Man 3",
464+
W21: "Coco",
465+
X1: "Revenue",
466+
X2: "2798000000",
467+
X3: "1006000000",
468+
X4: "1671000000",
469+
X5: "1516000000",
470+
X6: "1921000000",
471+
X7: "1450000000",
472+
X8: "1159000000",
473+
X9: "1073000000",
474+
X10: "1657000000",
475+
X11: "1035000000",
476+
X12: "2201000000",
477+
X13: "1074000000",
478+
X14: "678200000",
479+
X15: "910000000",
480+
X16: "533000000",
481+
X17: "1347000000",
482+
X18: "935300000",
483+
X19: "701800000",
484+
X20: "1215000000",
485+
X21: "807800000",
486+
X22: "3215000000",
487+
X23: "1212000000",
421488
},
422489
styles: {},
423-
formats: {},
490+
formats: {
491+
"X1:X23": 7,
492+
},
424493
borders: {},
425494
conditionalFormats: [],
426495
dataValidationRules: [],
@@ -695,6 +764,29 @@ export const demoData = {
695764
region: "world",
696765
},
697766
},
767+
{
768+
id: "11",
769+
x: 100,
770+
y: 1800,
771+
width: 400,
772+
height: 400,
773+
tag: "chart",
774+
data: {
775+
type: "sunburst",
776+
dataSetsHaveTitle: true,
777+
dataSets: [
778+
{
779+
dataRange: "V1:V23",
780+
},
781+
{
782+
dataRange: "W1:W23",
783+
},
784+
],
785+
legendPosition: "top",
786+
labelRange: "X1:X23",
787+
title: { text: "Movie Revenue by Genre" },
788+
},
789+
},
698790
{
699791
id: "12",
700792
x: 950,
@@ -730,6 +822,21 @@ export const demoData = {
730822
styleId: "TableStyleMedium7",
731823
},
732824
},
825+
{
826+
range: "V1:X23",
827+
type: "static",
828+
config: {
829+
hasFilters: false,
830+
totalRow: false,
831+
firstColumn: true,
832+
lastColumn: false,
833+
numberOfHeaders: 1,
834+
bandedRows: true,
835+
bandedColumns: false,
836+
automaticAutofill: true,
837+
styleId: "TableStyleMedium3",
838+
},
839+
},
733840
{
734841
range: "V27:W32",
735842
type: "static",
@@ -3282,6 +3389,7 @@ export const demoData = {
32823389
4: "hh:mm:ss a",
32833390
5: "d/m/yyyy",
32843391
6: "[$$]#,##0.00",
3392+
7: '$#,##0,,"K"',
32853393
},
32863394
borders: {
32873395
1: {

0 commit comments

Comments
 (0)