Skip to content

Commit 3efe7b2

Browse files
authored
Merge pull request #34 from AroraXD/graph-update
updated data and fixed off by one error in line graph
2 parents 1caf8a1 + aba1a3a commit 3efe7b2

11 files changed

+65
-44
lines changed

www/data/attended_per_year.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@
6060
"year": 2024
6161
},
6262
{
63-
"students": 271,
64-
"coaches": 218,
63+
"students": 705,
64+
"coaches": 560,
6565
"year": 2025
6666
}
6767
]

www/data/average_rating_per_month.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -637,6 +637,26 @@
637637
{
638638
"month": 2,
639639
"year": 2025,
640+
"avg": 4.9523809523809526
641+
},
642+
{
643+
"month": 3,
644+
"year": 2025,
645+
"avg": 5
646+
},
647+
{
648+
"month": 4,
649+
"year": 2025,
640650
"avg": 4.875
651+
},
652+
{
653+
"month": 5,
654+
"year": 2025,
655+
"avg": 4.818181818181818
656+
},
657+
{
658+
"month": 6,
659+
"year": 2025,
660+
"avg": 5
641661
}
642662
]

www/data/counted_stats.json

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"coach_count": 7065,
3-
"student_count": 19413,
4-
"chapter_count": 30,
5-
"workshop_count": 2277,
2+
"coach_count": 7129,
3+
"student_count": 19701,
4+
"chapter_count": 31,
5+
"workshop_count": 2344,
66
"monthlies_count": 51,
7-
"events_count": 222,
8-
"busiest_month": 11,
7+
"events_count": 225,
8+
"busiest_month": 5,
99
"slowest_month": 12,
10-
"average_rating": 4.769968817462221
10+
"average_rating": 4.771929824561403
1111
}

www/data/last_updated_at.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"last_updated_at": "2025-02-21T10:20:40.148Z"
2+
"last_updated_at": "2025-06-12T13:07:52.666Z"
33
}

www/data/new_signups.json

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,62 @@
11
[
22
{
33
"coachcount": 152,
4-
"studentcount": 387,
4+
"studentcount": 385,
55
"year": 2014
66
},
77
{
8-
"coachcount": 165,
9-
"studentcount": 585,
8+
"coachcount": 164,
9+
"studentcount": 581,
1010
"year": 2015
1111
},
1212
{
1313
"coachcount": 314,
14-
"studentcount": 651,
14+
"studentcount": 643,
1515
"year": 2016
1616
},
1717
{
18-
"coachcount": 441,
19-
"studentcount": 1164,
18+
"coachcount": 437,
19+
"studentcount": 1154,
2020
"year": 2017
2121
},
2222
{
23-
"coachcount": 735,
24-
"studentcount": 1850,
23+
"coachcount": 731,
24+
"studentcount": 1837,
2525
"year": 2018
2626
},
2727
{
28-
"coachcount": 848,
29-
"studentcount": 2223,
28+
"coachcount": 842,
29+
"studentcount": 2210,
3030
"year": 2019
3131
},
3232
{
33-
"coachcount": 473,
34-
"studentcount": 1152,
33+
"coachcount": 468,
34+
"studentcount": 1145,
3535
"year": 2020
3636
},
3737
{
38-
"coachcount": 272,
39-
"studentcount": 851,
38+
"coachcount": 268,
39+
"studentcount": 842,
4040
"year": 2021
4141
},
4242
{
43-
"coachcount": 428,
44-
"studentcount": 1223,
43+
"coachcount": 423,
44+
"studentcount": 1212,
4545
"year": 2022
4646
},
4747
{
48-
"coachcount": 589,
49-
"studentcount": 1544,
48+
"coachcount": 581,
49+
"studentcount": 1517,
5050
"year": 2023
5151
},
5252
{
53-
"coachcount": 520,
54-
"studentcount": 1315,
53+
"coachcount": 504,
54+
"studentcount": 1294,
5555
"year": 2024
5656
},
5757
{
58-
"coachcount": 81,
59-
"studentcount": 155,
58+
"coachcount": 183,
59+
"studentcount": 523,
6060
"year": 2025
6161
}
6262
]

www/data/ratings_per_year.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,11 +267,11 @@
267267
{
268268
"year": 2025,
269269
"rating": 4,
270-
"count": 2
270+
"count": 5
271271
},
272272
{
273273
"year": 2025,
274274
"rating": 5,
275-
"count": 30
275+
"count": 76
276276
}
277277
]

www/data/returning_members.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"returning_members_count": 6150,
3-
"attending_members_count": 11266,
4-
"percentage_returning": 54.58902893662347
2+
"returning_members_count": 6235,
3+
"attending_members_count": 11457,
4+
"percentage_returning": 54.420878065811294
55
}
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"student_only_members_count": 7550,
3-
"coach_and_student_members_count": 447,
4-
"student_to_coach_conversion": 5.920529801324503
2+
"student_only_members_count": 7691,
3+
"coach_and_student_members_count": 455,
4+
"student_to_coach_conversion": 5.916005720972565
55
}

www/data/workshops_per_year.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"year": 2024
4949
},
5050
{
51-
"count": 42,
51+
"count": 109,
5252
"year": 2025
5353
}
5454
]

www/src/pages/index.tsx

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import attendedPerYear from "../../data/attended_per_year.json";
1313
import newSignUpsPerYear from "../../data/new_signups.json";
1414
import workshopsPerYear from "../../data/workshops_per_year.json";
1515
import ratingsPerYear from "../../data/ratings_per_year.json";
16-
import averageRatingsPerMonth from "../../data/average_rating.json";
16+
import averageRatingsPerMonth from "../../data/average_rating_per_month.json";
1717

1818
type Data = {
1919
coach_count: number;
@@ -88,7 +88,7 @@ const averageRatingChart = [
8888
{
8989
name: "Average rating",
9090
data: averageRatingsPerMonth.map(({ month, year, avg }) => [
91-
new Date(year, month),
91+
new Date(year, month - 1),
9292
avg,
9393
]),
9494
},
@@ -258,6 +258,7 @@ function IndexPage(): JSX.Element {
258258
<LineChart
259259
data={averageRatingChart}
260260
colors={[colors.pink["600"]]}
261+
max={5}
261262
/>
262263
</div>
263264
<dl className="grid sm:grid-cols-1 gap-6 m-2 text-center items-center">

yarn.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12722,7 +12722,7 @@ regenerator-runtime@^0.11.0:
1272212722
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.11.1.tgz#be05ad7f9bf7d22e056f9726cee5017fbf19e2e9"
1272312723
integrity sha512-MguG95oij0fC3QV3URf4V2SDYGJhJnJGqvIIgdECeODCT98wSWDAJ94SSuVpYQUoTcGUIL6L4yNB7j1DFFHSBg==
1272412724

12725-
regenerator-runtime@^0.13.3, regenerator-runtime@^0.13.4:
12725+
regenerator-runtime@^0.13.3:
1272612726
version "0.13.5"
1272712727
resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.13.5.tgz#d878a1d094b4306d10b9096484b33ebd55e26697"
1272812728
integrity sha512-ZS5w8CpKFinUzOwW3c83oPeVXoNsrLsaCoLtJvAClH135j/R77RuymhiSErhm2lKcwSCIpmvIWSbDkIfAqKQlA==

0 commit comments

Comments
 (0)