【问题标题】:Plotly + Reveal.js: plot is moved outside of my slidePlotly + Reveal.js:情节移到我的幻灯片之外
【发布时间】:2020-08-03 00:52:25
【问题描述】:

我正在尝试在reveal.js 中的幻灯片上使用plotly。
但是,我的情节不在幻灯片的中间,而是在下方某处移动。

截图:

这是我幻灯片的代码(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:可以在这里看到:https://denisyaroshevskiy.github.io/my_first_simd_1_presentation/#/2 有时需要一两次更新。 Safari、Chrome 和 Yandex 浏览器。

【问题讨论】:

    标签: html plotly reveal.js


    【解决方案1】:

    尝试在你的 plot div 上使用class="r-stretch"

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2017-03-13
      • 2016-08-15
      • 1970-01-01
      • 1970-01-01
      • 2014-02-02
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多