Skip to content

Commit ed2ed1e

Browse files
committed
hide workshop growth
1 parent e9603d4 commit ed2ed1e

10 files changed

+74
-55
lines changed

www/data/attended_per_year.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@
5050
"year": 2022
5151
},
5252
{
53-
"students": 973,
54-
"coaches": 659,
53+
"students": 1525,
54+
"coaches": 1000,
5555
"year": 2023
5656
}
5757
]

www/data/average_rating_per_month.json

+15
Original file line numberDiff line numberDiff line change
@@ -537,6 +537,21 @@
537537
{
538538
"month": 6,
539539
"year": 2023,
540+
"avg": 4.947368421052632
541+
},
542+
{
543+
"month": 7,
544+
"year": 2023,
545+
"avg": 4.666666666666667
546+
},
547+
{
548+
"month": 8,
549+
"year": 2023,
550+
"avg": 5
551+
},
552+
{
553+
"month": 9,
554+
"year": 2023,
540555
"avg": 5
541556
}
542557
]

www/data/counted_stats.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"coach_count": 6181,
3-
"student_count": 17464,
4-
"chapter_count": 32,
5-
"workshop_count": 1907,
2+
"coach_count": 6363,
3+
"student_count": 17941,
4+
"chapter_count": 33,
5+
"workshop_count": 1964,
66
"monthlies_count": 51,
7-
"events_count": 179,
7+
"events_count": 186,
88
"busiest_month": 5,
99
"slowest_month": 12,
10-
"average_rating": 4.7605748373101955
10+
"average_rating": 4.762815405046481
1111
}

www/data/last_updated_at.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"last_updated_at": "2023-06-05T14:45:32.430Z"
2+
"last_updated_at": "2023-09-14T10:11:38.532Z"
33
}

www/data/new_signups.json

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,52 @@
11
[
22
{
3-
"coachcount": 161,
4-
"studentcount": 407,
3+
"coachcount": 158,
4+
"studentcount": 403,
55
"year": 2014
66
},
77
{
8-
"coachcount": 175,
9-
"studentcount": 630,
8+
"coachcount": 172,
9+
"studentcount": 625,
1010
"year": 2015
1111
},
1212
{
13-
"coachcount": 341,
14-
"studentcount": 701,
13+
"coachcount": 338,
14+
"studentcount": 693,
1515
"year": 2016
1616
},
1717
{
18-
"coachcount": 479,
19-
"studentcount": 1269,
18+
"coachcount": 473,
19+
"studentcount": 1248,
2020
"year": 2017
2121
},
2222
{
23-
"coachcount": 800,
24-
"studentcount": 2008,
23+
"coachcount": 791,
24+
"studentcount": 1983,
2525
"year": 2018
2626
},
2727
{
28-
"coachcount": 936,
29-
"studentcount": 2427,
28+
"coachcount": 920,
29+
"studentcount": 2389,
3030
"year": 2019
3131
},
3232
{
33-
"coachcount": 528,
34-
"studentcount": 1250,
33+
"coachcount": 518,
34+
"studentcount": 1238,
3535
"year": 2020
3636
},
3737
{
38-
"coachcount": 329,
39-
"studentcount": 930,
38+
"coachcount": 320,
39+
"studentcount": 916,
4040
"year": 2021
4141
},
4242
{
43-
"coachcount": 494,
44-
"studentcount": 1371,
43+
"coachcount": 477,
44+
"studentcount": 1335,
4545
"year": 2022
4646
},
4747
{
48-
"coachcount": 316,
49-
"studentcount": 832,
48+
"coachcount": 483,
49+
"studentcount": 1251,
5050
"year": 2023
5151
}
5252
]

www/data/ratings_per_year.json

+7-2
Original file line numberDiff line numberDiff line change
@@ -214,6 +214,11 @@
214214
"rating": 5,
215215
"count": 172
216216
},
217+
{
218+
"year": 2023,
219+
"rating": 1,
220+
"count": 1
221+
},
217222
{
218223
"year": 2023,
219224
"rating": 2,
@@ -227,11 +232,11 @@
227232
{
228233
"year": 2023,
229234
"rating": 4,
230-
"count": 7
235+
"count": 13
231236
},
232237
{
233238
"year": 2023,
234239
"rating": 5,
235-
"count": 135
240+
"count": 205
236241
}
237242
]

www/data/returning_members.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"returning_members_count": 5444,
3-
"attending_members_count": 9876,
4-
"percentage_returning": 55.123531794248684
2+
"returning_members_count": 5561,
3+
"attending_members_count": 10124,
4+
"percentage_returning": 54.92888186487554
55
}
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"student_only_members_count": 6607,
3-
"coach_and_student_members_count": 400,
4-
"student_to_coach_conversion": 6.054184955350386
2+
"student_only_members_count": 6769,
3+
"coach_and_student_members_count": 411,
4+
"student_to_coach_conversion": 6.071797902201212
55
}

www/data/workshops_per_year.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
"year": 2022
4141
},
4242
{
43-
"count": 105,
43+
"count": 162,
4444
"year": 2023
4545
}
4646
]

www/src/pages/index.tsx

+16-17
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { BarChart, ColumnChart, LineChart } from "react-chartkick";
33
import "chart.js";
44
import { colors } from "tailwindcss/defaultTheme";
55

6-
import { Table } from "../components/table";
76
import Layout from "../components/layout";
87
import SEO from "../components/seo";
98
import lastUpdateAt from "../../data/last_updated_at.json";
@@ -102,21 +101,21 @@ const workshopsPerYearChart = [
102101
},
103102
];
104103

105-
const attendedPerYearTable: string[][] = attendedPerYear
106-
.slice(0)
107-
.map((item, i) => {
108-
const previousYear = attendedPerYear[i - 1] || {};
104+
// const attendedPerYearTable: string[][] = attendedPerYear
105+
// .slice(0)
106+
// .map((item, i) => {
107+
// const previousYear = attendedPerYear[i - 1] || {};
109108

110-
const currentYearAttending = item.coaches + item.students;
111-
const previousYearAttending = previousYear.coaches + previousYear.students;
112-
const percentageChange =
113-
(currentYearAttending / previousYearAttending) * 100 - 100;
114-
return [
115-
item.year,
116-
item.coaches + item.students,
117-
(percentageChange || 0).toFixed(2),
118-
].map((item) => item.toString());
119-
});
109+
// const currentYearAttending = item.coaches + item.students;
110+
// const previousYearAttending = previousYear.coaches + previousYear.students;
111+
// const percentageChange =
112+
// (currentYearAttending / previousYearAttending) * 100 - 100;
113+
// return [
114+
// item.year,
115+
// item.coaches + item.students,
116+
// (percentageChange || 0).toFixed(2),
117+
// ].map((item) => item.toString());
118+
// });
120119

121120
const dataDisplay = [
122121
{ property: "coach_count", title: "Coaches" },
@@ -222,11 +221,11 @@ function IndexPage() {
222221
stacked
223222
colors={[colors.blue["500"], colors.pink["600"]]}
224223
/>
225-
<h3>Workshop growth</h3>
224+
{/* <h3>Workshop growth</h3>
226225
<Table
227226
headers={["Year", "Attendances", "Growth %"]}
228227
rows={attendedPerYearTable}
229-
/>
228+
/> */}
230229
</div>
231230
<h1>Members</h1>
232231
<h3>New members per year</h3>

0 commit comments

Comments
 (0)