Skip to content

Commit

Permalink
no longer uses the page option d3: true/false, since there has only b…
Browse files Browse the repository at this point in the history
…een one example on this
  • Loading branch information
yihui committed Jun 10, 2013
1 parent 4eb1bcd commit e8b9eaa
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
3 changes: 0 additions & 3 deletions _includes/themes/dinky/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,6 @@
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="{{ ASSET_PATH }}/js/jquery.scianimator.min.js"></script>
{% endif %}
{% if page.d3 %}
<script src="http://d3js.org/d3.v2.min.js"></script>
{% endif %}
<script src="https://c328740.ssl.cf1.rackcdn.com/mathjax/2.0-latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script type="text/javascript">
MathJax.Hub.Config({
Expand Down
3 changes: 3 additions & 0 deletions _posts/2012-11-07-contour-plots-with-d3-and-r.md
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ var data = [{

Now we are ready to call D3 to draw all the lines (see the HTML source code of this page):

<script src="http://d3js.org/d3.v2.min.js">
</script>

<div id="volcano" style="text-align: center;"></div>

<script type="text/javascript">
Expand Down
3 changes: 3 additions & 0 deletions _source/2012-11-07-contour-plots-with-d3-and-r.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ cat('<script>',

Now we are ready to call D3 to draw all the lines (see the HTML source code of this page):

<script src="http://d3js.org/d3.v2.min.js">
</script>

<div id="volcano" style="text-align: center;"></div>

<script type="text/javascript">
Expand Down
2 changes: 1 addition & 1 deletion about.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ You can write math in the LaTeX syntax, e.g. `$$\alpha+\beta$$` in a paragraph r

$$f(x)=\frac{1}{\sqrt{2\pi}}e^{-x^2/2}$$

If you want to generate animations, set `animation: true` in the preamble of the article and use the chunk option `fig.show='animate'` in the chunk header ([example](https://github.com/supstat/vistat/blob/gh-pages/_source/2012-11-06-brownian-motion-with-r.Rmd)). Similarly, `d3: true` will load D3 in the page ([example](https://github.com/supstat/vistat/blob/gh-pages/_source/2012-11-07-contour-plots-with-d3-and-r.Rmd)).
If you want to generate animations, set `animation: true` in the preamble of the article and use the chunk option `fig.show='animate'` in the chunk header ([example](https://github.com/supstat/vistat/blob/gh-pages/_source/2012-11-06-brownian-motion-with-r.Rmd)).

## Compilation

Expand Down

0 comments on commit e8b9eaa

Please sign in to comment.