I'm making a radar chart, based on code from here, but I'm having a weird problem that I can't figure out. When I knit the document in RStudio (Ctrl + Shift + K), it produces the desired plot in the RStudio preview browser, and in any other browser I've tried:
However, when I use
blogdown::serve_site(), the plot doesn't show, either in the preview or the browser, or when I've uploaded to GitHub and had Netlify build the site:
I tried changing the location of where
d3.js was being sourced from, to a local file, but then blogdown didn't find
d3.js, so I changed it back to
<script src="https://d3js.org/d3.v3.min.js"></script>. Any ideas as to what is happening?