Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update column, scheme, budget profile #53

Open
wants to merge 29 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
8930055
update column, scheme, budget profile
Feb 3, 2021
a3ce6d9
expenditure bubble
Feb 4, 2021
736981a
update schemes data
Feb 4, 2021
4d76eaa
update expenditure data
Feb 4, 2021
6be26dd
increase the height of market loans
Feb 4, 2021
f8f4e8c
fixed spacing issue
PixeledCode Jun 11, 2021
3b551ab
add budget highlights
shreyaagrawal0809 Oct 14, 2021
8b45497
Merge pull request #54 from cbgaindia/develop-assam-2021
Abhi2102 Oct 14, 2021
85f4c5e
change to crores
Nov 18, 2021
732a525
Merge pull request #55 from cbgaindia/develop-assam-2021
shreyaagrawal0809 Nov 18, 2021
28ec606
Merge pull request #56 from cbgaindia/union-budget-board-2021
shreyaagrawal0809 Feb 1, 2022
47882fa
change data for 3-balance-column 2022
shreyaagrawal0809 Feb 2, 2022
526f79d
change data for schemes viz
shreyaagrawal0809 Feb 2, 2022
6de551d
Change data of expenditure bubble
shreyaagrawal0809 Feb 2, 2022
d7ea952
Merge pull request #57 from cbgaindia/develop-assam-2021
Abhi2102 Feb 3, 2022
e2f7e59
change budget profile
shreyaagrawal0809 Feb 3, 2022
7783183
Merge pull request #58 from cbgaindia/develop-assam-2021
shreyaagrawal0809 Feb 3, 2022
848c6ee
change in budget profile
shreyaagrawal0809 Feb 3, 2022
b5756bb
Change number of departments
shreyaagrawal0809 Feb 3, 2022
3390364
Merge pull request #59 from cbgaindia/develop-assam-2021
Abhi2102 Feb 3, 2022
b573a62
Add budget estimates
shreyaagrawal0809 Feb 3, 2022
e97be61
update year in chart 2 of home page
shreyaagrawal0809 Jun 23, 2022
1cddde8
Merge pull request #60 from cbgaindia/develop-assam-2021
shreyaagrawal0809 Jun 24, 2022
f316009
Change axis label
shreyaagrawal0809 Jul 20, 2022
c62cc00
Merge pull request #61 from cbgaindia/develop-assam-2021
shreyaagrawal0809 Jul 20, 2022
a5c9bd3
add home page viz Odisha budget explorer
shreyaagrawal0809 Sep 23, 2022
0cc4293
Merge pull request #62 from cbgaindia/odisha-budget-explorer-2022
shreyaagrawal0809 Sep 26, 2022
4ea1ea4
update viz for union budget 2023
Abhi2102 Feb 1, 2023
5a66fa8
update scheme and expenditure index for union2023 explorer
Abhi2102 Feb 2, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions assets/records.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@
{
"name" : "Budget Profile - Union Budget",
"link" : "./visualisations/union-budget-explorer(2020)/budget-profile/index.html"
},
{
"name" : "Budget Profile - Union Budget(2021)",
"link" : "./visualisations/union-budget-explorer(2021)/budget-profile/index.html"
}],
"developers" : [
{
Expand Down Expand Up @@ -75,9 +79,17 @@
"name" : "Expenditure Budget of Ministries and Departments((2020-21)",
"link" : "./visualisations/union-budget-explorer(2020)/Expenditure-bubble/index.html"
},
{
"name" : "Expenditure Budget of Ministries and Departments(2021-22)",
"link" : "./visualisations/union-budget-explorer(2021)/Expenditure-bubble/index.html"
},
{
"name" : "Major Schemes(2020-21)",
"link" : "./visualisations/union-budget-explorer(2020)/Schemes/index.html"
},
{
"name" : "Major Schemes(2021-22)",
"link" : "./visualisations/union-budget-explorer(2021)/Schemes/index.html"
}],
"developers" : [
{
Expand All @@ -103,6 +115,9 @@
},
{ "name" : "Budget Summary(2020-2021)",
"link" : "./visualisations/union-budget-explorer(2020)/3-balance-column/index.html"
},
{ "name" : "Budget Summary(2021-2022)",
"link" : "./visualisations/union-budget-explorer(2021)/3-balance-column/index.html"
}],
"developers" : [
{
Expand Down
159 changes: 159 additions & 0 deletions visualisations/assam-budget-board/Expenditure_receipts_2021/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@

<link rel="stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.6/nv.d3.min.css">
<style>
.nv-x text{

fill: white;
}
.nv-y text{

fill:white;
}
.nv-axis .tick line {
display:none;
}
.nvd3 .nv-axis path {
fill: none;
stroke:white;
stroke-opacity: .75;
shape-rendering: crispEdges;
}


</style>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.6/nv.d3.min.js"></script>
<div class="container-fluid">
<div class="row">
<div class="col-sm" id = 'vis'>
<svg style="height : 150px; width : 500px; max-width : 100%; padding-top:-10px "></svg>


</div>
</div>
<div class="row">
<div class="col-sm" id = 'vis-receipt'style = 'padding-top:40px'>


<svg style="height :150px; width : 500px; max-width : 100%;" ></svg>
</div>
</div>

</div>
</div>
<script>
d3.csv("rec_exp.csv", function(consdata) {

var receipts = consdata.filter(function(d, i)
{

if (d.Type == 'Receipts')
{
return d
}

}).map(function(k){
return{
particulars: k.Particulars,

'Budget 2021-22' : +k['Budget 2021-22'],

'Budget 2020-21' : +k['Budget 2020-21']

}
})
console.log(receipts)

var expenditure = consdata.filter(function(d, i)
{

if (d.Type == 'Expenditure')
{
return d
}

}).map(function(k){
return{
particulars: k.Particulars,

'Budget 2021-22' : +k['Budget 2021-22'],

'Budget 2020-21' : +k['Budget 2020-21']

}
})

console.log(expenditure)



var dataToPlot = Object.keys(expenditure[0]).filter(function(k){return k!="particulars"})
.map(function(k){
return {"key":k,"values":expenditure.map(function(d){
return {
//let's make this a real date
"y":+d[k],
"x":d['particulars']

}
})}
})
console.log(dataToPlot)
nv.addGraph(function() {
var chart = nv.models.multiBarHorizontalChart()
.margin({ right:40, left: 80})
.showValues(false) //Show bar value next to each bar. //Show tooltips on hover.
.showLegend(false)
.showControls(false); //Allow user to switch between "Grouped" and "Stacked" mode.

chart.height(150);
chart.yAxis
.axisLabel('Total Expenditure(In Crore)')
.tickFormat(d3.format(',.2f'))
.ticks(2);
d3.select('#vis svg')
.datum(dataToPlot)
.call(chart);

nv.utils.windowResize(chart.update);

return chart;
});

var dataPlot = Object.keys(receipts[0]).filter(function(k){return k!="particulars"})
.map(function(k){
return {"key":k,"values":receipts.map(function(d){
return {
//let's make this a real date
"x":d['particulars'],
"y":+d[k]
}
})}
})
console.log(dataToPlot)
nv.addGraph(function() {
var chart = nv.models.multiBarHorizontalChart()

.margin({right:40, left: 80})
.showValues(false)

.showLegend(false)
.showControls(false)
;

chart.height(150);
chart.yAxis
.axisLabel('Total Receipts(In Crore)')
.tickFormat(d3.format(',.2f'))
.ticks(2);
d3.select('#vis-receipt svg')
.datum(dataPlot)
.call(chart);

nv.utils.windowResize(chart.update);

return chart;
});
})
</script>

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Type,Particulars,Budget 2020-21,Budget 2021-22
Receipts,Receipts,105246.24,107317.55
Expenditure,Expenditure,103761.62,107556.29
159 changes: 159 additions & 0 deletions visualisations/assam-budget-board/Expenditure_receipts_2022/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@

<link rel="stylesheet" href= "https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.6/nv.d3.min.css">
<style>
.nv-x text{

fill: white;
}
.nv-y text{

fill:white;
}
.nv-axis .tick line {
display:none;
}
.nvd3 .nv-axis path {
fill: none;
stroke:white;
stroke-opacity: .75;
shape-rendering: crispEdges;
}


</style>
<script src="https://d3js.org/d3.v3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.6/nv.d3.min.js"></script>
<div class="container-fluid">
<div class="row">
<div class="col-sm" id = 'vis'>
<svg style="height : 150px; width : 500px; max-width : 100%; padding-top:-10px "></svg>


</div>
</div>
<div class="row">
<div class="col-sm" id = 'vis-receipt'style = 'padding-top:40px'>


<svg style="height :150px; width : 500px; max-width : 100%;" ></svg>
</div>
</div>

</div>
</div>
<script>
d3.csv("rec_exp.csv", function(consdata) {

var receipts = consdata.filter(function(d, i)
{

if (d.Type == 'Receipts')
{
return d
}

}).map(function(k){
return{
particulars: k.Particulars,

'Budget 2022-23' : +k['Budget 2022-23'],

'Budget 2021-22' : +k['Budget 2021-22']

}
})
console.log(receipts)

var expenditure = consdata.filter(function(d, i)
{

if (d.Type == 'Expenditure')
{
return d
}

}).map(function(k){
return{
particulars: k.Particulars,

'Budget 2022-23' : +k['Budget 2022-23'],

'Budget 2021-22' : +k['Budget 2021-22']

}
})

console.log(expenditure)



var dataToPlot = Object.keys(expenditure[0]).filter(function(k){return k!="particulars"})
.map(function(k){
return {"key":k,"values":expenditure.map(function(d){
return {
//let's make this a real date
"y":+d[k],
"x":d['particulars']

}
})}
})
console.log(dataToPlot)
nv.addGraph(function() {
var chart = nv.models.multiBarHorizontalChart()
.margin({ right:40, left: 80})
.showValues(false) //Show bar value next to each bar. //Show tooltips on hover.
.showLegend(false)
.showControls(false); //Allow user to switch between "Grouped" and "Stacked" mode.

chart.height(150);
chart.yAxis
.axisLabel('Total Amount (in Rs. Crore)')
.tickFormat(d3.format(',.2f'))
.ticks(2);
d3.select('#vis svg')
.datum(dataToPlot)
.call(chart);

nv.utils.windowResize(chart.update);

return chart;
});

var dataPlot = Object.keys(receipts[0]).filter(function(k){return k!="particulars"})
.map(function(k){
return {"key":k,"values":receipts.map(function(d){
return {
//let's make this a real date
"x":d['particulars'],
"y":+d[k]
}
})}
})
console.log(dataToPlot)
nv.addGraph(function() {
var chart = nv.models.multiBarHorizontalChart()

.margin({right:40, left: 80})
.showValues(false)

.showLegend(false)
.showControls(false)
;

chart.height(150);
chart.yAxis
.axisLabel('Total Receipts(In Crore)')
.tickFormat(d3.format(',.2f'))
.ticks(2);
d3.select('#vis-receipt svg')
.datum(dataPlot)
.call(chart);

nv.utils.windowResize(chart.update);

return chart;
});
})
</script>

Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
Type,Particulars,Budget 2021-22,Budget 2022-23
Receipts,Receipts,107317.55,119028
Expenditure,Expenditure,107556.29,119551
Binary file not shown.
Loading