Skip to content

Commit b0a7c07

Browse files
committed
Rearranges file system
1 parent 4d6798f commit b0a7c07

11 files changed

+18
-64
lines changed

NASA_scrape.py

Lines changed: 0 additions & 62 deletions
This file was deleted.

app/d3_testing.html

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,6 @@
102102
// Define the div for the tooltip
103103
var tooltip = d3.select("body").append("div")
104104
.attr("class", "tooltip")
105-
.attr("y",-50)
106105
.style("opacity", 0);
107106

108107
var chart = d3.select(".chart")
@@ -150,7 +149,7 @@
150149

151150
.on("mouseover", function(d){
152151
tooltip.html(dateFormat(d) + "<br>" + d3.select(this).attr("rainfall") + "mm")
153-
// .style("left", width/2 +"px")
152+
.style("left", width/2 +"px")
154153
tooltip.transition()
155154
.style("opacity",1)
156155
})
@@ -198,6 +197,18 @@
198197
.attr("width", total_x(total_rainfall))
199198
.duration(5000)
200199

200+
// var rainfall_bar = chart2.selectAll(".bar")
201+
// .data(rainfall_stats)
202+
// .enter().append("rect")
203+
// .attr("width",0)
204+
// .attr("height", 25)
205+
// .attr("class", "rainfall_bar")
206+
// .attr("y", function(d){return total_y(rainfall_stats.indexOf(d))})
207+
// .transition()
208+
// .attr("width", function(d){return total_x(d)})
209+
// .duration(5000)
210+
211+
201212
chart2.append("text")
202213
.text(0)
203214
.attr("class", "text")

app/static/d3_viz.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@
3232
.tickValues(x.domain().filter(function(d, i) {
3333
if(rainfall.length>60)
3434
{return !(i%30)}
35+
else if(rainfall.length<14)
36+
{return i}
3537
else
3638
{ return !(i % 7)}
3739
}))
File renamed without changes.
File renamed without changes.
File renamed without changes.

sql_scripts/flask_permissions.sql

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
grant select on all tables in schema rainfall to flask;
2+
grant connect on database nasatiled to flask;
3+
grant usage on schema rainfall to flask;
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)