Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Conditional Styling</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
background-color: white;
@enjulee
enjulee / index.html
Last active September 28, 2015 08:53
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Conditional Styling</title>
<script type="text/javascript" src="http://d3js.org/d3.v3.js"></script>
<style type="text/css">
body {
background-color: white;
subject male female
Teacher training and education science 18.0062 4.0194
Arts 3.0818 6.4621
Humanities 4.0194 6.1959
Social and behavioural science 6.4621 5.2463
Journalism and information 4 32.0024
Business and administration 9.4491 1.8282
Law 0.7124 10.7553
Life sciences 0.7635 3.222
Physical sciences 3.44 4
Teacher training and education science 18.0062 4.0194
Arts 3.0818 6.4621
Humanities 4.0194 6.1959
Social and behavioural science 6.4621 5.2463
Journalism and information 4 32.0024
Business and administration 9.4491 1.8282
Law 0.7124 10.7553
Life sciences 0.7635 3.222
Physical sciences 3.44 4
Teacher training and education science 18.0062 4.0194
Arts 3.0818 6.4621
Humanities 4.0194 6.1959
Social and behavioural science 6.4621 5.2463
Journalism and information 4 32.0024
Business and administration 9.4491 1.8282
Law 0.7124 10.7553
Life sciences 0.7635 3.222
Physical sciences 3.44 4
subject male
Teacher training and education science 18.0062
Arts 3.0818
Humanities 4.0194
Social and behavioural science 6.4621
Journalism and information 4
Business and administration 9.4491
Law 0.7124
Life sciences 0.7635
Physical sciences 3.44
Teacher training and education science 18.0062
Arts 3.0818
Humanities 4.0194
Social and behavioural science 6.4621
Journalism and information 4
Business and administration 9.4491
Law 0.7124
Life sciences 0.7635
Physical sciences 3.44
subject male
Teacher training and education science 18.0062
Arts 3.0818
Humanities 4.0194
Social and behavioural science 6.4621
Journalism and information 0.1258
Business and administration 9.4491
Law 0.7124
Life sciences 0.7635
Physical sciences 3.44
Teacher training and education science 18.0062
Arts 3.0818
Humanities 4.0194
Social and behavioural science 6.4621
Journalism and information 4
Business and administration 9.4491
Law 0.7124
Life sciences 0.7635
Physical sciences 3.44
Teacher training and education science 18.0062
Arts 3.0818
Humanities 4.0194
Social and behavioural science 6.4621
Journalism and information 4
Business and administration 9.4491
Law 0.7124
Life sciences 0.7635
Physical sciences 3.44