webslides / WebSlides

Create HTML presentations in seconds —
https://webslides.tv/
MIT License
6.2k stars 582 forks source link

Support for D3.js? #181

Open lrdegeest opened 3 years ago

lrdegeest commented 3 years ago

I'm trying to add a d3js graph but it doesn't render. After adding the d3js library in the <head> and declaring a <div> for the graph I made an empty slide:

<section>
  <script>
   <!-- d3js example here: https://www.d3-graph-gallery.com/graph/barplot_animation_start.html
  </script>
</section>

but the slide is empty. Any ideas?

Descent098 commented 3 years ago

Just tried out your example code from: https://www.d3-graph-gallery.com/graph/barplot_animation_start.html

It throws a console error about a missing function:

image

I checked and even on a page without webslides it throws the error