@@ -3,7 +3,6 @@ import { BarChart, ColumnChart, LineChart } from "react-chartkick";
3
3
import "chart.js" ;
4
4
import { colors } from "tailwindcss/defaultTheme" ;
5
5
6
- import { Table } from "../components/table" ;
7
6
import Layout from "../components/layout" ;
8
7
import SEO from "../components/seo" ;
9
8
import lastUpdateAt from "../../data/last_updated_at.json" ;
@@ -102,21 +101,21 @@ const workshopsPerYearChart = [
102
101
} ,
103
102
] ;
104
103
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] || {};
109
108
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
+ // });
120
119
121
120
const dataDisplay = [
122
121
{ property : "coach_count" , title : "Coaches" } ,
@@ -222,11 +221,11 @@ function IndexPage() {
222
221
stacked
223
222
colors = { [ colors . blue [ "500" ] , colors . pink [ "600" ] ] }
224
223
/>
225
- < h3 > Workshop growth</ h3 >
224
+ { /* <h3>Workshop growth</h3>
226
225
<Table
227
226
headers={["Year", "Attendances", "Growth %"]}
228
227
rows={attendedPerYearTable}
229
- />
228
+ /> */ }
230
229
</ div >
231
230
< h1 > Members</ h1 >
232
231
< h3 > New members per year</ h3 >
0 commit comments