Skip to content

Commit d079842

Browse files
committed
hide graph on startup
1 parent 95b3dd5 commit d079842

File tree

2 files changed

+35
-31
lines changed

2 files changed

+35
-31
lines changed

src/Graph.svelte

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -298,33 +298,33 @@
298298
.selectAll('*')
299299
.remove();
300300
301-
// size chart
302-
var margin = { top: 20, right: 20, bottom: 70, left: 40 },
303-
width = w - margin.left - margin.right,
304-
height = 0.75 * w - margin.top - margin.bottom;
305-
306-
// parse the date time
307-
var parseDate = d3.timeParse('%Y%m%d');
308-
309-
// set ranges
310-
this.x = d3.scaleBand().rangeRound([0, width]);
311-
this.y = d3.scaleLinear().range([height, 0]);
312-
313-
// attach graphic
314-
var svg = d3
315-
.select(el)
316-
.append('svg')
317-
.attr('width', width + margin.left + margin.right)
318-
.attr('height', height + margin.top + margin.bottom)
319-
.append('g')
320-
.attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');
321-
322-
// draw axes
323-
svg
324-
.append('g')
325-
.attr('transform', 'translate(0,' + height + ')')
326-
.call(d3.axisBottom(this.x).tickFormat(''));
327-
svg.append('g').call(d3.axisLeft(this.y).tickFormat(''));
301+
// // size chart
302+
// var margin = { top: 20, right: 20, bottom: 70, left: 40 },
303+
// width = w - margin.left - margin.right,
304+
// height = 0.75 * w - margin.top - margin.bottom;
305+
306+
// // parse the date time
307+
// var parseDate = d3.timeParse('%Y%m%d');
308+
309+
// // set ranges
310+
// this.x = d3.scaleBand().rangeRound([0, width]);
311+
// this.y = d3.scaleLinear().range([height, 0]);
312+
313+
// // attach graphic
314+
// var svg = d3
315+
// .select(el)
316+
// .append('svg')
317+
// .attr('width', width + margin.left + margin.right)
318+
// .attr('height', height + margin.top + margin.bottom)
319+
// .append('g')
320+
// .attr('transform', 'translate(' + margin.left + ',' + margin.top + ')');
321+
322+
// // draw axes
323+
// svg
324+
// .append('g')
325+
// .attr('transform', 'translate(0,' + height + ')')
326+
// .call(d3.axisBottom(this.x).tickFormat(''));
327+
// svg.append('g').call(d3.axisLeft(this.y).tickFormat(''));
328328
}
329329
330330
updateChart() {}

src/MapBox.svelte

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -427,10 +427,14 @@
427427
// found allegheny / Pittsburgh
428428
const randomFeature = found[0];
429429
////console.log(randomFeature);
430-
currentRegionName.set(randomFeature.properties.NAME);
431-
currentRegion.set(randomFeature.properties.id);
432-
clickedId = randomFeature.id;
433-
map.setFeatureState({ source: $currentLevel, id: clickedId }, { select: true });
430+
// currentRegionName.set(randomFeature.properties.NAME);
431+
// currentRegion.set(randomFeature.properties.id);
432+
// clickedId = randomFeature.id;
433+
// map.setFeatureState({ source: $currentLevel, id: clickedId }, { select: true });
434+
currentRegionName.set('');
435+
currentRegion.set('');
436+
// clickedId = randomFeature.id;
437+
// map.setFeatureState({ source: $currentLevel, id: clickedId }, { select: true });
434438
chosenRandom = true;
435439
} else {
436440
const index = Math.floor(Math.random() * (viableFeatures.length - 1));

0 commit comments

Comments
 (0)