Skip to content
Browse files

href

  • Loading branch information...
1 parent 7b40a04 commit bc69f3c3ae5b343ec7d0ecf6c075b9ccaa2ab3e4 @tlevine committed Aug 18, 2013
Showing with 4 additions and 3 deletions.
  1. +1 −1 client/css/styles.css
  2. +3 −2 client/js/views/dashboard/page.js
View
2 client/css/styles.css
@@ -16,7 +16,7 @@ a.download {
margin-top: 20px;
}
-div.bar {
+a.bar {
display: inline-block;
margin: 0px;
padding: 0px;
View
5 client/js/views/dashboard/page.js
@@ -32,12 +32,13 @@ function createMap(){
})
permitApplications.sort(function(a, b) { return b.acreage - a.acreage })
- d3.select("#barplot").selectAll('div.bar')
+ d3.select("#barplot").selectAll('a.bar')
.data(permitApplications)
.enter()
- .append("div")
+ .append("a")
.attr("class", "bar")
.attr("title", function(permitApplication) { return permitApplication.projectDescription })
+ .attr("href", function(permitApplication) { return '#/applications/' + permitApplication.permitApplicationNumber })
.style("width", (100 / permitApplications.length) + '%')
.style("height", function(permitApplication) {
var barHeight = Math.max(1, permitApplication.acreage / 10);

0 comments on commit bc69f3c

Please sign in to comment.
Something went wrong with that request. Please try again.