Skip to content

Instantly share code, notes, and snippets.

@rickdg
Created November 5, 2014 18:00
Show Gist options
  • Save rickdg/2d8fec5f7d22c7b3fa50 to your computer and use it in GitHub Desktop.
Save rickdg/2d8fec5f7d22c7b3fa50 to your computer and use it in GitHub Desktop.
Tributary inlet
{"description":"Tributary inlet","endpoint":"","display":"svg","public":true,"require":[],"fileconfigs":{"inlet.js":{"default":true,"vim":false,"emacs":false,"fontSize":12},"_.md":{"default":true,"vim":false,"emacs":false,"fontSize":12},"config.json":{"default":true,"vim":false,"emacs":false,"fontSize":12},"divgrid2.csv":{"default":true,"vim":false,"emacs":false,"fontSize":12}},"fullscreen":false,"play":false,"loop":false,"restart":false,"autoinit":true,"pause":true,"loop_type":"pingpong","bv":false,"nclones":15,"clone_opacity":0.4,"duration":3000,"ease":"linear","dt":0.01,"thumbnail":"http://i.imgur.com/gIEsxSV.png","ajax-caching":true}
name group row col
Academic Excellence goal 1 0
Student Success goal 2 0
Research Leadership goal 3 0
Equity & Inclusion goal 4 0
Sustainable Funding Model goal 5 0
World Class Operations goal 6 0
Outcomes & Impact tier 0 1
Activities / Output tier 0 2
Stakeholder Engagement tier 0 3
Resources / Financials tier 0 4
Recognition & Rankings indicator 1 1
Alumni Engagement indicator 2 1
Research Outcomes indicator 3 1
Diversity Profile indicator 4 1
Operating Profit/Deficit indicator 5 1
Service Satisfaction indicator 6 1
Instructional Productivity indicator 1 2
Student Satisfaction indicator 2 2
Research Programs and Productivity indicator 3 2
Diversity Plan Outputs indicator 4 2
Expense Management indicator 5 2
Service Cost-Efficiency indicator 6 2
Faculty Composition indicator 1 3
Student Composition indicator 2 3
External/Partner Engagement indicator 3 3
Campus Climate Survey indicator 4 3
Community Engagement indicator 5 3
Staff Engagement indicator 6 3
Faculty Compensation indicator 1 4
Financial Aid indicator 2 4
Funding Sources indicator 3 4
Renumeration indicator 4 4
Financial Risk Management indicator 5 4
var svg = d3.select("svg");
var data = tributary.divgrid2
main(data)
function main(data){
var group1 = svg.append("g").classed("group1", true)
var blocks = group1.selectAll("g").data(data)
.enter()
.append("g")
.attr("transform", function(d,i){ return get_location(d)})
var rects = blocks.append("rect")
.attr({
"width": base_width,
"height": base_width,
"rx": rounding, "ry": rounding
})
.style({
"fill": function(d){
return clist[d.named_type] },
"fill-opacity": function(d){
return opacity_from_mass(d.Mass) },
"stroke": function(d){
return clist[d.named_type] },
"stroke-width": border_width
})
var text_content = blocks.append("text")
.attr({x:3, y:14})
.style({
"fill": "#232323",
"font-size": 1.2 + "em",
"text-anchor": "right",
"alignment-baseline": "middle",
"font-family": font_name1
})
.text(function(d,i){return d.Symbol})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment