简体   繁体   中英

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.

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 ". Please help me, what I am doing wrong?

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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