When working on a slidify deck titled "Foo" with the revealjs framework and a solarized theme, I encountered a problem. Specifically, I needed to set the background color of an NVD3 plot iframe to white.
If I knit it and then edit the <style>
block in the generated figure/nvd3plot2.html
by adding background-color: white;
, I can achieve the desired result:
<style>
.rChart {
display: block;
margin-left: auto;
margin-right: auto;
width: 800px;
height: 400px;
background-color: white;
}
</style>
My question now is, how can I accomplish this directly from the .Rmd file?