Skip to content

Commit d71feef

Browse files
committed
[IMP] demo: add calender chart demo data
Task: 5357420
1 parent 27ef65e commit d71feef

File tree

1 file changed

+48
-2
lines changed

1 file changed

+48
-2
lines changed

demo/data.js

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,6 +439,8 @@ export const demoData = {
439439
V30: "Qualified",
440440
V31: "Proposition",
441441
V32: "Won",
442+
V36: "Date of sale",
443+
V37: "=TODAY() + ROUND(RANDARRAY(50)*30)",
442444
W1: "Movie Name",
443445
W2: "Avengers: Endgame",
444446
W3: "The Dark Knight",
@@ -466,6 +468,8 @@ export const demoData = {
466468
W30: "=RANDBETWEEN(10, 40)",
467469
W31: "=RANDBETWEEN(10, 40)",
468470
W32: "=RANDBETWEEN(10, 40)",
471+
W36: "Sale Amount",
472+
W37: "=ROUND(RANDARRAY(50)*10000)",
469473
X1: "Revenue",
470474
X2: "2798000000",
471475
X3: "1006000000",
@@ -493,6 +497,7 @@ export const demoData = {
493497
styles: {},
494498
formats: {
495499
"X1:X23": 3,
500+
"W37:W86": 7,
496501
},
497502
borders: {},
498503
conditionalFormats: [],
@@ -841,7 +846,7 @@ export const demoData = {
841846
legendPosition: "top",
842847
labelRange: "Sheet1!A27:A35",
843848
title: {
844-
text: "Line",
849+
text: "Pyramid",
845850
},
846851
horizontal: true,
847852
stacked: true,
@@ -951,6 +956,32 @@ export const demoData = {
951956
},
952957
},
953958
},
959+
{
960+
id: "15",
961+
tag: "chart",
962+
width: 500,
963+
height: 300,
964+
data: {
965+
type: "calendar",
966+
dataSets: [
967+
{
968+
dataRange: "W36:W86",
969+
},
970+
],
971+
dataSetsHaveTitle: true,
972+
labelRange: "V36:V86",
973+
title: {},
974+
horizontalGroupBy: "iso_week_number",
975+
verticalGroupBy: "day_of_week",
976+
legendPosition: "none",
977+
},
978+
offset: {
979+
x: 550,
980+
y: 2225,
981+
},
982+
col: 0,
983+
row: 0,
984+
},
954985
],
955986
tables: [
956987
{
@@ -998,6 +1029,21 @@ export const demoData = {
9981029
styleId: "TableStyleMedium5",
9991030
},
10001031
},
1032+
{
1033+
range: "V36:W86",
1034+
type: "static",
1035+
config: {
1036+
hasFilters: false,
1037+
totalRow: false,
1038+
firstColumn: true,
1039+
lastColumn: false,
1040+
numberOfHeaders: 1,
1041+
bandedRows: true,
1042+
bandedColumns: false,
1043+
automaticAutofill: true,
1044+
styleId: "TableStyleMedium2",
1045+
},
1046+
},
10011047
],
10021048
areGridLinesVisible: true,
10031049
isVisible: true,
@@ -3510,7 +3556,7 @@ export const demoData = {
35103556
formats: {
35113557
1: "0.00%",
35123558
2: "#,##0.00",
3513-
3: '$#,##0,,"K"',
3559+
3: '$#,##0,,"m"',
35143560
4: "m/d/yyyy",
35153561
5: "hh:mm:ss a",
35163562
6: "d/m/yyyy",

0 commit comments

Comments
 (0)