Skip to content

Commit

Permalink
Revert static change to enable function on tablets
Browse files Browse the repository at this point in the history
  • Loading branch information
LianeHughes committed Oct 5, 2023
1 parent 7640091 commit 1f3a21d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions layouts/shortcodes/plotly.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
<div id="{{$json}}" class="plotly" style="height:{{$height}}"></div>
<script>
Plotly.d3.json({{$json}}, function(err, fig) {
var config = {responsive: true};
// For smaller devices turn off interactive plots
if (document.documentElement.clientWidth < 768){
config.staticPlot = true;
}
// var config = {responsive: true};
// // For smaller devices turn off interactive plots
// if (document.documentElement.clientWidth < 768){
// config.staticPlot = true;
// }
Plotly.plot('{{$json}}', fig.data, fig.layout, config);
});
</script>

0 comments on commit 1f3a21d

Please sign in to comment.