-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4374 from alphagov/redo-chart-data
Build statistics block data from new format of csv files
- Loading branch information
Showing
15 changed files
with
197 additions
and
93 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
,Generation X,Millenials | ||
2020,10,15 | ||
2021,20,25 | ||
2023,25,30 | ||
2024,30,35 |
19 changes: 12 additions & 7 deletions
19
lib/data/landing_page_content_items/statistics/data_one.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
Date,variable,value | ||
2024-01-01,variable_name,10 | ||
2024-02-01,variable_name,11 | ||
2024-03-01,variable_name,12 | ||
2024-04-01,variable_name,13 | ||
2024-05-01,variable_name,14 | ||
2024-06-01,variable_name,15 | ||
,Some decimal data | ||
1/6/2013,0.500 | ||
1/6/2014,0.600 | ||
1/6/2015,0.700 | ||
1/6/2016,0.500 | ||
1/6/2017,0.600 | ||
1/6/2018,0.700 | ||
1/6/2019,0.500 | ||
1/6/2020, | ||
1/6/2021, | ||
1/6/2022,0.500 | ||
1/6/2023,0.600 |
8 changes: 8 additions & 0 deletions
8
lib/data/landing_page_content_items/statistics/data_three.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
,The number of people representing some data point | ||
31/12/2022,45775 | ||
31/3/2023,47518 | ||
30/6/2023,50546 | ||
30/9/2023,56042 | ||
31/12/2023,45768 | ||
31/3/2024,34530 | ||
30/6/2024,29585 |
14 changes: 7 additions & 7 deletions
14
lib/data/landing_page_content_items/statistics/data_two.csv
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Date,variable,value | ||
2023-01-01,variable_name,20 | ||
2023-02-01,variable_name,21 | ||
2023-03-01,variable_name,22 | ||
2023-01-01,variable_name_two,23 | ||
2023-02-01,variable_name_two,24 | ||
2023-03-01,variable_name_two,25 | ||
,Percentage of people representing some data point | ||
1/6/2018,70% | ||
1/6/2019,50% | ||
1/6/2020,60% | ||
1/6/2021,64% | ||
1/6/2022,52% | ||
1/6/2023,91% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
,Generation X,Millenials | ||
2020,10,15 | ||
2021,20,25 | ||
2023,25,30 | ||
2024,30,35 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
Date,variable,value | ||
2024-01-01,variable_name,10 | ||
2024-02-01,variable_name,11 | ||
2024-03-01,variable_name,12 | ||
2024-04-01,variable_name,13 | ||
2024-05-01,variable_name,14 | ||
2024-06-01,variable_name,15 | ||
,Percentage of people being kinder to one and other | ||
1/6/2013,0.500 | ||
1/6/2014,0.600 | ||
1/6/2015,0.700 | ||
1/6/2016,0.500 | ||
1/6/2017,0.600 | ||
1/6/2018,0.700 | ||
1/6/2019,0.550 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
,The number of people working smarter not harder | ||
31/12/2022,45775 | ||
31/3/2023,47518 | ||
30/6/2023,50546 | ||
30/9/2023,56042 | ||
31/12/2023,45768 | ||
31/3/2024,34530 | ||
30/6/2024,29585 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,12 @@ | ||
Date,variable,value | ||
2024-01-01,variable_name,10 | ||
2024-02-01,variable_name,11 | ||
2024-03-01,variable_name,12 | ||
2024-01-01,variable_name_two,13 | ||
2024-02-01,variable_name_two,14 | ||
2024-03-01,variable_name_two,15 | ||
,Percentage of people being kinder to one and other | ||
1/6/2013,0.500 | ||
1/6/2014,0.600 | ||
1/6/2015,0.700 | ||
1/6/2016,0.500 | ||
1/6/2017,0.600 | ||
1/6/2018,0.700 | ||
1/6/2019,0.500 | ||
1/6/2020, | ||
1/6/2021, | ||
1/6/2022,0.500 | ||
1/6/2023,0.600 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.