Skip to content

Commit

Permalink
more styling and attribution for google fonts
Browse files Browse the repository at this point in the history
  • Loading branch information
timelyportfolio committed Jun 28, 2013
1 parent 79360e8 commit 52e35cc
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 8 deletions.
4 changes: 3 additions & 1 deletion index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ assets:
body{
font-family: 'Oxygen', sans-serif;
font-size: 16px;
line-height: 24px;
}

h1,h2,h3,h4 {
Expand Down Expand Up @@ -136,4 +137,5 @@ As I hope you can tell, this post was more a function of the efforts of others t

Thanks specifically:
- Ramnath Vaidyanathan for [rCharts](http://rcharts.io/site) and [slidify](http://slidify.org).
- NYT Visualization Design Team for all their inspiring examples.
- NYT Visualization Design Team for all their inspiring examples.
- Google fonts [Raleway](http://www.google.com/fonts/specimen/Raleway) and [Oxygen](http://www.google.com/fonts/specimen/Oxygen)
8 changes: 5 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@
body{
font-family: 'Oxygen', sans-serif;
font-size: 16px;
line-height: 24px;
}

h1,h2,h3,h4 {
Expand Down Expand Up @@ -170,7 +171,7 @@ <h5 class="g-intro-sentence">

<div class="g-table-container">
<div class="g-table-intro">
<h4>Behind the data </h4>
<h4 style = "text-indent:0px;font-family:arial,sans-serif;">Behind the data </h4>
<p class="g-table-readin"></p>
</div>

Expand All @@ -189,7 +190,7 @@ <h4>Behind the data </h4>
<script>
(function() {
var params = {
"dom": "chart4f816d1292",
"dom": "chart4f86c8f743c",
"width": 800,
"height": 400,
"description": "This data comes from the managers dataset included in the R package PerformanceAnalytics.",
Expand All @@ -199,7 +200,7 @@ <h4>Behind the data </h4>
"val": [ 96.88, 96.987, 100.28, 107.06, 108.51, 107.16, 107.84, 108.33, 108.17, 105.56, 97.595, 98.346, 92.691, 95.444, 101.75, 98.466, 94.41, 92.04, 95.39, 101.6, 105.02, 108.26, 110.16, 110.2, 111.19, 116.54, 118.51, 121.77, 122.41, 122.4, 123.46, 122.93, 123.94, 127.15, 127.15, 127.85, 128.98, 128.9, 133.98, 139.87, 139.89, 142.89, 139.94, 137.01, 137.6, 139.81, 141.09, 142.68, 146.41, 143.67, 146.99, 150.82, 161.26, 163.6, 170.09, 169.91, 165.37, 168.94, 166.51, 169.19, 170.34, 177.61, 179.69, 181.76, 103.33, 101.06, 101.89, 101.85, 99.94, 96.232, 98.359, 97.218, 94.35, 91.161, 90.031, 89.995, 89.842, 90.228, 89.479, 89.282, 89.255, 87.925, 87.433, 86.393, 90.842, 92.977, 95.152, 94.353, 93.853, 95.111, 96.195, 98.975, 100.87, 101.74, 103.05, 103.89, 104.67, 106.11, 106.56, 105.87, 106.93, 108.5, 111.23, 112.15, 111.55, 113.89, 113.11, 112.66, 111.1, 113.25, 115.51, 116.93, 119.03, 116.82, 117.92, 118.92, 128.58, 124.38, 126.26, 128.43, 127.77, 126.28, 124.63, 123.22, 120.37, 122.39, 124.91, 124.13, 99.32, 97.284, 99.697, 99.876, 98.428, 94.353, 96.306, 93.869, 93.644, 89.421, 86.381, 86.588, 82.787, 83.631, 86.558, 80.915, 80.793, 80.963, 81.862, 86.159, 89.804, 90.783, 91.563, 94.329, 94.093, 99.785, 100.96, 101.92, 102.47, 103.94, 103.54, 101.47, 100.79, 100.89, 97.392, 96.846, 96.537, 96.43, 101.77, 103.61, 104.37, 108.72, 109.73, 109.53, 112.08, 112.47, 114.75, 114.52, 116.78, 115.48, 117.35, 119.48, 123.67, 126.96, 128.47, 128.87, 126.14, 123.76, 125.02, 128.18, 129.1, 131.47, 135, 136.49, 89.25, 93.418, 100.27, 111.69, 107.84, 105.12, 119.6, 126.87, 127.1, 121.09, 104.06, 102.07, 90.736, 91.562, 98.978, 102.48, 98.977, 98.512, 100.99, 112.58, 122.64, 128.53, 132.66, 131.55, 132.77, 141.18, 153.34, 160.82, 162.94, 170.13, 173.63, 158.72, 155.86, 156.58, 151.3, 155.9, 162.23, 161.11, 174.87, 183.07, 183.84, 178, 174.12, 172.48, 174.63, 187.21, 199.04, 193.83, 187.39, 181.9, 193.49, 200.3, 211.35, 199.96, 202.1, 205.74, 201.95, 205.06, 202.6, 198.9, 202.81, 213.32, 221.28, 225.83, 99.3, 86.192, 88.261, 92.533, 100.36, 99.498, 92.294, 96.531, 91.289, 86.989, 80.987, 87.264, 83.599, 81.032, 82.272, 82.519, 82.403, 81.851, 85.542, 86.697, 92.107, 97.376, 93.442, 92.377, 95.776, 101.4, 104.59, 100.24, 100, 102.94, 102.3, 98.353, 99.78, 100.45, 98.158, 95.537, 98.967, 97.848, 101.69, 107.23, 107.18, 107.86, 106.79, 103.65, 106.85, 107.21, 111.03, 113.98, 114.77, 113.47, 116.08, 114.33, 120.51, 120.09, 124.43, 127.49, 124.15, 122.74, 120.73, 122.77, 124.39, 127.7, 128.18, 132.24, 100.23, 103.69, 108.81, 114.26, 116.49, 118, 123.88, 124.46, 122.23, 119.47, 114.66, 115.75, 117.22, 116.15, 118.09, 117.59, 117.79, 118.18, 120.3, 120.25, 123.28, 123.19, 125.81, 128.8, 126.39, 133.76, 135.12, 142.02, 145.59, 146.67, 148.84, 146.06, 143.81, 145.52, 140.27, 138.7, 141.32, 142.82, 148.2, 152.41, 150.28, 154.66, 152.16, 146.06, 149.77, 151.56, 158.91, 161.22, 165.36, 158.68, 164.01, 168.29, 175.98, 176.9, 180.38, 186.54, 187.93, 189.27, 185.01, 188.58, 185.24, 188.74, 194.41, 198.59, 96.52, 97.476, 99.425, 101.21, 100.84, 99.6, 101.14, 100.72, 100.38, 97.877, 94.07, 94.455, 92.944, 94.087, 96.195, 94.762, 94.809, 94.458, 94.647, 97.467, 101, 102.29, 103.5, 105.35, 106.34, 109.52, 110.94, 113.06, 115.23, 116.65, 117.13, 115.19, 114.79, 115.84, 114.05, 113.8, 116.19, 117.05, 120.66, 122.8, 122.59, 125.17, 123.97, 121.69, 123.09, 125.49, 128.81, 130.06, 132.95, 130.64, 133.39, 136.71, 141.92, 142.15, 145.53, 148.04, 144.36, 143.47, 143.02, 144.65, 144.67, 147.48, 150.43, 152.73, 91.92, 93.676, 100.86, 101.75, 100.26, 98.328, 102.02, 95.842, 95.133, 88.359, 81.467, 82.005, 73.091, 79.523, 84.207, 79.264, 77.187, 76.029, 76.767, 83.093, 87.472, 88.591, 90.15, 91.908, 90.934, 96.081, 96.926, 102.01, 103.88, 105.33, 103.74, 102.11, 103.51, 105.52, 102.03, 102.45, 103.56, 105.14, 109.4, 113.12, 110.36, 112.68, 110.69, 108.58, 112.04, 112.2, 116.37, 115.31, 116.25, 114.31, 118.63, 118.66, 121.81, 122.14, 123.66, 125.32, 121.71, 121.88, 122.64, 125.56, 128.79, 132.99, 135.52, 137.42, 102.28, 105.14, 101.74, 99.954, 100.45, 101.73, 97.955, 100.76, 101.61, 103.7, 106.96, 110.15, 115.31, 112.99, 110.65, 114.57, 113.57, 116.71, 115.88, 115.92, 121.32, 119.89, 111.39, 112.58, 117.7, 114.78, 115.12, 116.08, 117.67, 119.64, 121.46, 115.59, 114.8, 115.57, 117.28, 120.93, 121.4, 122.68, 119.89, 121.68, 122.92, 121.05, 120.18, 123.45, 125.6, 126.63, 123.68, 126.48, 123.8, 122.01, 122.65, 124.1, 123.29, 123.12, 120.67, 119.14, 119.04, 119.3, 121.19, 123.84, 125.25, 125.98, 127.77, 125.79, 100.43, 100.69, 100.91, 101.07, 101.21, 101.35, 101.5, 101.66, 101.82, 101.97, 102.12, 102.27, 102.43, 102.58, 102.75, 102.87, 102.97, 103.06, 103.18, 103.28, 103.38, 103.52, 103.59, 103.68, 103.78, 103.86, 103.95, 104.05, 104.13, 104.21, 104.29, 104.38, 104.47, 104.54, 104.66, 104.79, 104.92, 105.06, 105.2, 105.43, 105.6, 105.77, 106.03, 106.27, 106.54, 106.79, 107.04, 107.35, 107.67, 107.96, 108.31, 108.66, 109, 109.35, 109.77, 110.18, 110.62, 111.05, 111.51, 112.01, 112.52, 112.95, 113.43, 113.93 ]
},
"groups": "manager",
"id": "chart4f816d1292"
"id": "chart4f86c8f743c"
}

//set description of the data provided in params
Expand Down Expand Up @@ -863,6 +864,7 @@ <h3>Thanks</h3>
<ul>
<li>Ramnath Vaidyanathan for <a href="http://rcharts.io/site">rCharts</a> and <a href="http://slidify.org">slidify</a>.</li>
<li>NYT Visualization Design Team for all their inspiring examples.</li>
<li>Google fonts <a href="http://www.google.com/fonts/specimen/Raleway">Raleway</a> and <a href="http://www.google.com/fonts/specimen/Oxygen">Oxygen</a></li>
</ul>

</div>
Expand Down
8 changes: 5 additions & 3 deletions index.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ assets:
body{
font-family: 'Oxygen', sans-serif;
font-size: 16px;
line-height: 24px;
}

h1,h2,h3,h4 {
Expand Down Expand Up @@ -132,7 +133,7 @@ it would be worth
<div class="g-chart"></div>
<div class="g-table-container">
<div class="g-table-intro">
<h4>Behind the data </h4>
<h4 style = "text-indent:0px;font-family:arial,sans-serif;">Behind the data </h4>
<p class="g-table-readin"></p>
</div>
<table class="g-table">
Expand All @@ -150,7 +151,7 @@ it would be worth
<script>
(function() {
var params = {
"dom": "chart4f816d1292",
"dom": "chart4f86c8f743c",
"width": 800,
"height": 400,
"description": "This data comes from the managers dataset included in the R package PerformanceAnalytics.",
Expand All @@ -160,7 +161,7 @@ it would be worth
"val": [ 96.88, 96.987, 100.28, 107.06, 108.51, 107.16, 107.84, 108.33, 108.17, 105.56, 97.595, 98.346, 92.691, 95.444, 101.75, 98.466, 94.41, 92.04, 95.39, 101.6, 105.02, 108.26, 110.16, 110.2, 111.19, 116.54, 118.51, 121.77, 122.41, 122.4, 123.46, 122.93, 123.94, 127.15, 127.15, 127.85, 128.98, 128.9, 133.98, 139.87, 139.89, 142.89, 139.94, 137.01, 137.6, 139.81, 141.09, 142.68, 146.41, 143.67, 146.99, 150.82, 161.26, 163.6, 170.09, 169.91, 165.37, 168.94, 166.51, 169.19, 170.34, 177.61, 179.69, 181.76, 103.33, 101.06, 101.89, 101.85, 99.94, 96.232, 98.359, 97.218, 94.35, 91.161, 90.031, 89.995, 89.842, 90.228, 89.479, 89.282, 89.255, 87.925, 87.433, 86.393, 90.842, 92.977, 95.152, 94.353, 93.853, 95.111, 96.195, 98.975, 100.87, 101.74, 103.05, 103.89, 104.67, 106.11, 106.56, 105.87, 106.93, 108.5, 111.23, 112.15, 111.55, 113.89, 113.11, 112.66, 111.1, 113.25, 115.51, 116.93, 119.03, 116.82, 117.92, 118.92, 128.58, 124.38, 126.26, 128.43, 127.77, 126.28, 124.63, 123.22, 120.37, 122.39, 124.91, 124.13, 99.32, 97.284, 99.697, 99.876, 98.428, 94.353, 96.306, 93.869, 93.644, 89.421, 86.381, 86.588, 82.787, 83.631, 86.558, 80.915, 80.793, 80.963, 81.862, 86.159, 89.804, 90.783, 91.563, 94.329, 94.093, 99.785, 100.96, 101.92, 102.47, 103.94, 103.54, 101.47, 100.79, 100.89, 97.392, 96.846, 96.537, 96.43, 101.77, 103.61, 104.37, 108.72, 109.73, 109.53, 112.08, 112.47, 114.75, 114.52, 116.78, 115.48, 117.35, 119.48, 123.67, 126.96, 128.47, 128.87, 126.14, 123.76, 125.02, 128.18, 129.1, 131.47, 135, 136.49, 89.25, 93.418, 100.27, 111.69, 107.84, 105.12, 119.6, 126.87, 127.1, 121.09, 104.06, 102.07, 90.736, 91.562, 98.978, 102.48, 98.977, 98.512, 100.99, 112.58, 122.64, 128.53, 132.66, 131.55, 132.77, 141.18, 153.34, 160.82, 162.94, 170.13, 173.63, 158.72, 155.86, 156.58, 151.3, 155.9, 162.23, 161.11, 174.87, 183.07, 183.84, 178, 174.12, 172.48, 174.63, 187.21, 199.04, 193.83, 187.39, 181.9, 193.49, 200.3, 211.35, 199.96, 202.1, 205.74, 201.95, 205.06, 202.6, 198.9, 202.81, 213.32, 221.28, 225.83, 99.3, 86.192, 88.261, 92.533, 100.36, 99.498, 92.294, 96.531, 91.289, 86.989, 80.987, 87.264, 83.599, 81.032, 82.272, 82.519, 82.403, 81.851, 85.542, 86.697, 92.107, 97.376, 93.442, 92.377, 95.776, 101.4, 104.59, 100.24, 100, 102.94, 102.3, 98.353, 99.78, 100.45, 98.158, 95.537, 98.967, 97.848, 101.69, 107.23, 107.18, 107.86, 106.79, 103.65, 106.85, 107.21, 111.03, 113.98, 114.77, 113.47, 116.08, 114.33, 120.51, 120.09, 124.43, 127.49, 124.15, 122.74, 120.73, 122.77, 124.39, 127.7, 128.18, 132.24, 100.23, 103.69, 108.81, 114.26, 116.49, 118, 123.88, 124.46, 122.23, 119.47, 114.66, 115.75, 117.22, 116.15, 118.09, 117.59, 117.79, 118.18, 120.3, 120.25, 123.28, 123.19, 125.81, 128.8, 126.39, 133.76, 135.12, 142.02, 145.59, 146.67, 148.84, 146.06, 143.81, 145.52, 140.27, 138.7, 141.32, 142.82, 148.2, 152.41, 150.28, 154.66, 152.16, 146.06, 149.77, 151.56, 158.91, 161.22, 165.36, 158.68, 164.01, 168.29, 175.98, 176.9, 180.38, 186.54, 187.93, 189.27, 185.01, 188.58, 185.24, 188.74, 194.41, 198.59, 96.52, 97.476, 99.425, 101.21, 100.84, 99.6, 101.14, 100.72, 100.38, 97.877, 94.07, 94.455, 92.944, 94.087, 96.195, 94.762, 94.809, 94.458, 94.647, 97.467, 101, 102.29, 103.5, 105.35, 106.34, 109.52, 110.94, 113.06, 115.23, 116.65, 117.13, 115.19, 114.79, 115.84, 114.05, 113.8, 116.19, 117.05, 120.66, 122.8, 122.59, 125.17, 123.97, 121.69, 123.09, 125.49, 128.81, 130.06, 132.95, 130.64, 133.39, 136.71, 141.92, 142.15, 145.53, 148.04, 144.36, 143.47, 143.02, 144.65, 144.67, 147.48, 150.43, 152.73, 91.92, 93.676, 100.86, 101.75, 100.26, 98.328, 102.02, 95.842, 95.133, 88.359, 81.467, 82.005, 73.091, 79.523, 84.207, 79.264, 77.187, 76.029, 76.767, 83.093, 87.472, 88.591, 90.15, 91.908, 90.934, 96.081, 96.926, 102.01, 103.88, 105.33, 103.74, 102.11, 103.51, 105.52, 102.03, 102.45, 103.56, 105.14, 109.4, 113.12, 110.36, 112.68, 110.69, 108.58, 112.04, 112.2, 116.37, 115.31, 116.25, 114.31, 118.63, 118.66, 121.81, 122.14, 123.66, 125.32, 121.71, 121.88, 122.64, 125.56, 128.79, 132.99, 135.52, 137.42, 102.28, 105.14, 101.74, 99.954, 100.45, 101.73, 97.955, 100.76, 101.61, 103.7, 106.96, 110.15, 115.31, 112.99, 110.65, 114.57, 113.57, 116.71, 115.88, 115.92, 121.32, 119.89, 111.39, 112.58, 117.7, 114.78, 115.12, 116.08, 117.67, 119.64, 121.46, 115.59, 114.8, 115.57, 117.28, 120.93, 121.4, 122.68, 119.89, 121.68, 122.92, 121.05, 120.18, 123.45, 125.6, 126.63, 123.68, 126.48, 123.8, 122.01, 122.65, 124.1, 123.29, 123.12, 120.67, 119.14, 119.04, 119.3, 121.19, 123.84, 125.25, 125.98, 127.77, 125.79, 100.43, 100.69, 100.91, 101.07, 101.21, 101.35, 101.5, 101.66, 101.82, 101.97, 102.12, 102.27, 102.43, 102.58, 102.75, 102.87, 102.97, 103.06, 103.18, 103.28, 103.38, 103.52, 103.59, 103.68, 103.78, 103.86, 103.95, 104.05, 104.13, 104.21, 104.29, 104.38, 104.47, 104.54, 104.66, 104.79, 104.92, 105.06, 105.2, 105.43, 105.6, 105.77, 106.03, 106.27, 106.54, 106.79, 107.04, 107.35, 107.67, 107.96, 108.31, 108.66, 109, 109.35, 109.77, 110.18, 110.62, 111.05, 111.51, 112.01, 112.52, 112.95, 113.43, 113.93 ]
},
"groups": "manager",
"id": "chart4f816d1292"
"id": "chart4f86c8f743c"
}

//set description of the data provided in params
Expand Down Expand Up @@ -822,3 +823,4 @@ As I hope you can tell, this post was more a function of the efforts of others t
Thanks specifically:
- Ramnath Vaidyanathan for [rCharts](http://rcharts.io/site) and [slidify](http://slidify.org).
- NYT Visualization Design Team for all their inspiring examples.
- Google fonts [Raleway](http://www.google.com/fonts/specimen/Raleway) and [Oxygen](http://www.google.com/fonts/specimen/Oxygen)
2 changes: 1 addition & 1 deletion libraries/widgets/nyt_home/layouts/nyt_home.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ <h5 class="g-intro-sentence">
<div class="g-chart"></div>
<div class="g-table-container">
<div class="g-table-intro">
<h4>Behind the data </h4>
<h4 style = "text-indent:0px;font-family:arial,sans-serif;">Behind the data </h4>
<p class="g-table-readin"></p>
</div>
<table class="g-table">
Expand Down

0 comments on commit 52e35cc

Please sign in to comment.