简体   繁体   English

如何在 React/Next.js 应用程序中嵌入预设仪表板/图表?

[英]How to embed Preset Dashboard/Charts in React/Next.js app?

I created a sample pie chart in a published dashboard, then I copied <iframe /> code snippet from "Share > Embed code" and pasted in a /test page.我在已发布的仪表板中创建了一个示例饼图,然后我从“共享 > 嵌入代码”复制了<iframe />代码片段并粘贴到/test页面中。

export default function Test() {
  return (
    <>
      <iframe
        width="600"
        height="400"
        seamless
        frameBorder="0"
        scrolling="no"
        src="https://c2e8b9ae.us2a.app.preset.io/superset/explore/p/G48PLPkAFEJ/?standalone=1&height=400"
      ></iframe>
    </>
  );
}

But it shows " manage.app.preset.io refused to connect ".但它显示“ manage.app.preset.io 拒绝连接”。 Please help me, what I am doing wrong?请帮助我,我做错了什么?

由于跨域限制,此功能与 Preset Cloud 不兼容: https ://preset.atlassian.net/browse/PPR-191

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

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