Skip to content

Commit

Permalink
still trying to get plotly to see the json
Browse files Browse the repository at this point in the history
  • Loading branch information
Soliprem committed Apr 1, 2024
1 parent cc19c5f commit 38826a8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion content/posts/gun_deaths_paper.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ title: "An analysis of the correlation between gun regulation and public safety
date: 2024-04-02T00:56:05+02:00
---
{{< load-plotly >}}
{{< plotly json="/posts/gun_stuff.json" height="500px" modebar="false">}}
{{< plotly json="posts/gun_stuff.json" height="500px" modebar="false">}}
6 changes: 3 additions & 3 deletions public/en/posts/gun_deaths_paper/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -102,10 +102,10 @@ <h1>An analysis of the correlation between gun regulation and public safety in t



<div id="/posts/gun_stuff.json" class="plotly" style="height:500px"></div>
<div id="posts/gun_stuff.json" class="plotly" style="height:500px"></div>
<script>
Plotly.d3.json("/posts/gun_stuff.json", function(err, fig) {
Plotly.plot('\/posts\/gun_stuff.json', fig.data, fig.layout, {responsive: true});
Plotly.d3.json("posts/gun_stuff.json", function(err, fig) {
Plotly.plot('posts\/gun_stuff.json', fig.data, fig.layout, {responsive: true});
});
</script>
</p>
Expand Down
6 changes: 3 additions & 3 deletions public/en/posts/index.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@
<div id="/posts/gun_stuff.json" class="plotly" style="height:500px"></div>
<div id="posts/gun_stuff.json" class="plotly" style="height:500px"></div>
<script>
Plotly.d3.json("/posts/gun_stuff.json", function(err, fig) {
Plotly.plot('\/posts\/gun_stuff.json', fig.data, fig.layout, {responsive: true});
Plotly.d3.json("posts/gun_stuff.json", function(err, fig) {
Plotly.plot('posts\/gun_stuff.json', fig.data, fig.layout, {responsive: true});
});
</script>
</p>
Expand Down

0 comments on commit 38826a8

Please sign in to comment.