Skip to content

Commit

Permalink
added line chart and frist plot
Browse files Browse the repository at this point in the history
  • Loading branch information
andresnowak committed Dec 20, 2024
1 parent 15f1a01 commit 3489a31
Show file tree
Hide file tree
Showing 7 changed files with 205 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const NavBar = () => {
scrolled ? "text-lg" : "text-xl"
}`}
>
Logo
Robodatapioneers2024
</h1>
<div className="hidden md:flex space-x-6">
<a
Expand Down
25 changes: 25 additions & 0 deletions app/page.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import {
BubbleChartComponent,
} from "./data_charts.js";
import { BoxPlotChart } from "./box_plot_chart.js";
import { LinePlotChart } from "./line_chart.js";
import { NavBar } from "./nav.js";

function LandingPage() {
Expand Down Expand Up @@ -292,6 +293,30 @@ export default function Home() {
/>
)}
</VariableChooserComponent>
<VariableChooserComponent
title="Line plot of delta view"
variables={[
{
datapath: "data/first_plot/sum_delta_subs_overtime.csv",
name: "Delta Subs",
},
{
datapath: "data/first_plot/sum_delta_videos_overtime.csv",
name: "Delta Videos",
},
{
datapath: "data/first_plot/sum_delta_views_overtime.csv",
name: "Delta Views",
}
]}
>
{(variable) => (
<LinePlotChart
datapath={variable}
loading={<LoadingSpinner />}
/>
)}
</VariableChooserComponent>
</main>
<Footer />
</>
Expand Down
53 changes: 53 additions & 0 deletions public/data/first_plot/sum_delta_subs_overtime.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
year_month,delta_subs
2015-06,223.25
2015-07,1462.6833333333334
2015-08,10719.233333333335
2015-09,39230.70833333333
2015-10,46842.5110103627
2015-11,43082.09060127252
2015-12,2799.9025168593435
2016-01,5821.761781470778
2016-02,62195.437550176626
2016-03,54368.52166463667
2016-04,107800.06660198062
2016-05,251753.0905280095
2016-06,351044.3100612965
2016-07,512269.4268437039
2016-08,1099695.58149737
2016-09,1011039.2012277114
2016-10,6176326.8600012455
2016-11,8557100.360525966
2016-12,8031369.179391678
2017-01,11080477.282585256
2017-02,8479652.266918277
2017-03,9178763.5671922
2017-04,11482578.384182515
2017-05,13148187.42484889
2017-06,12164584.848070864
2017-07,14264918.140838929
2017-08,12165362.282101315
2017-09,11501794.26048775
2017-10,14540774.439209936
2017-11,12043945.378811054
2017-12,16820079.624848057
2018-01,17108311.98491707
2018-02,17797019.65084737
2018-03,18952360.221591946
2018-04,24533950.67335793
2018-05,20288307.16064559
2018-06,25316896.97113844
2018-07,33517906.390379544
2018-08,24213810.24831989
2018-09,21987239.30281104
2018-10,28123766.853775848
2018-11,22480922.780508906
2018-12,25825155.41264104
2019-01,23060177.410484716
2019-02,22307427.96339054
2019-03,25643869.216172162
2019-04,31851695.564377114
2019-05,25644482.53505841
2019-06,26634554.405880783
2019-07,30081452.284340538
2019-08,22479151.70342766
2019-09,25090689.70967151
53 changes: 53 additions & 0 deletions public/data/first_plot/sum_delta_videos_overtime.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
year_month,delta_videos
2015-06,0
2015-07,41
2015-08,42
2015-09,45
2015-10,40
2015-11,90
2015-12,22
2016-01,18
2016-02,421
2016-03,1813
2016-04,5191
2016-05,9392
2016-06,12370
2016-07,15378
2016-08,25434
2016-09,25124
2016-10,43638
2016-11,45641
2016-12,44349
2017-01,56713
2017-02,49644
2017-03,53170
2017-04,50517
2017-05,59069
2017-06,44327
2017-07,59889
2017-08,51656
2017-09,52666
2017-10,68627
2017-11,58253
2017-12,66287
2018-01,59723
2018-02,60540
2018-03,69330
2018-04,77286
2018-05,60472
2018-06,58924
2018-07,72725
2018-08,59967
2018-09,64432
2018-10,84354
2018-11,72273
2018-12,79728
2019-01,65197
2019-02,64535
2019-03,71978
2019-04,87098
2019-05,62074
2019-06,63262
2019-07,79148
2019-08,61886
2019-09,76880
53 changes: 53 additions & 0 deletions public/data/first_plot/sum_delta_views_overtime.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
year_month,delta_views
2015-06,81720.25
2015-07,447229.0833333334
2015-08,3696148.3444444444
2015-09,8646342.947222222
2015-10,12378192.711787565
2015-11,14195365.879997022
2015-12,1361177.5885416674
2016-01,1935894.5062499992
2016-02,26463503.509375002
2016-03,25916376.56767096
2016-04,53294399.55094078
2016-05,108610755.54611176
2016-06,158874200.4406801
2016-07,243759695.0455203
2016-08,464025374.33835554
2016-09,430139784.9404068
2016-10,2490736003.4726276
2016-11,3025669151.172421
2016-12,3052891397.854971
2017-01,4951677410.28788
2017-02,3354135637.2533617
2017-03,3629184696.945661
2017-04,3958790645.1111093
2017-05,5122545516.274979
2017-06,4197555285.4282227
2017-07,5188233027.659599
2017-08,4172800010.3795147
2017-09,4139470923.7327657
2017-10,5471630004.954216
2017-11,5009000914.389172
2017-12,5914603067.923156
2018-01,5449403416.658298
2018-02,5574084992.929925
2018-03,5546289421.809764
2018-04,7536631896.034664
2018-05,6037403182.02808
2018-06,6924316633.406444
2018-07,9343867715.488014
2018-08,6849302098.817238
2018-09,6543877310.042327
2018-10,7689106390.577057
2018-11,6035989982.173616
2018-12,7656944881.912219
2019-01,6408425093.194009
2019-02,6328445425.095467
2019-03,6758711281.204196
2019-04,8822881267.730879
2019-05,7430482409.6410675
2019-06,7887339967.047495
2019-07,9964912587.524088
2019-08,7057495413.12295
2019-09,8667458513.201824
10 changes: 10 additions & 0 deletions public/data/lineplot_data.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
year, value, value2
2010, 100, 200
2011, 200, 300
2012, 300, 400
2013, 400, 500
2014, 500, 600
2015, 600, 700
2016, 700, 800
2017, 800, 900
2018, 900, 1000
10 changes: 10 additions & 0 deletions public/data/lineplot_data2.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
year, value
2010, 100
2011, 200
2012, 300
2013, 400
2014, 100
2015, 600
2016, 700
2017, 1000
2018, 900

0 comments on commit 3489a31

Please sign in to comment.