简体   繁体   English

Plotly + Reveal.js:plot 移到我的幻灯片之外

[英]Plotly + Reveal.js: plot is moved outside of my slide

I am trying to use plotly on a slide in reveal.js.我正在尝试在reveal.js 的幻灯片上使用plotly。
However, my plot is not in the middle of the slide but rather it moves somewhere below.但是,我的 plot 不在幻灯片的中间,而是在下方某处移动。

Screenshot:截屏: 问题

Here is the code of my slide (presentationEntryPoint eventually draws in 'some_plot'):这是我幻灯片的代码(presentationEntryPoint 最终绘制在“some_plot”中):

  <section>
    <h3>Plot</h3>
    <div id='some_plot'> </div>
    <script>presentationEntryPoint('some_plot', {
        name: 'remove 0',
        size: 10000,
        algorithm: 'std::remove',
        type: 'int',
        time: 'y',
        padding: 'x',
        group: 'intel_9700K',
        percentage: 50,
      }, []);
    </script>
  </section>

UPD: Can be seen here: https://denisyaroshevskiy.github.io/my_first_simd_1_presentation/#/2 Some times requires an update or two. UPD:可以在这里看到: https://denisyaroshevskiy.github.io/my_first_simd_1_presentation/#/2有时需要一两次更新。 Safari, Chrome and Yandex Browser. Safari、Chrome 和 Yandex 浏览器。

Try using class="r-stretch" on your plot div.尝试在 plot div 上使用class="r-stretch"

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM