4

I have my own web applications and need to implement reporting in it. So I want to know how can we embed the graph generated by apache superset in my web application/project ?

TylerH
  • 20,799
  • 66
  • 75
  • 101
shriram
  • 69
  • 1
  • 3
  • This may be a duplicate of [Apache superset dashboard in webpage](https://stackoverflow.com/questions/54219101/apache-superset-dashboard-in-webpage) – Alexander Nied Jul 18 '22 at 19:21

1 Answers1

1

Quick Answer:

You can insert it with an HTML IFrame tag. For example if the Url of your dashborad is

http://52.59.247.208:8088/superset/dashboard/1/

enter image description here

Add simply the following suffix "?standalone=true" and add it in your HTML code like:

<html>
<head>
    <title>Testing Charts</title>
</head>
<body>
    <h1>Testing IFrame</h1>
    <iframe
      width=100%
      height=100%
      frameBorder="0"
      src="http://52.59.247.208:8088/superset/dashboard/1/?standalone=true"
    >
    </iframe>
</body>

But first you have to edit your superset_config.py file by adding following line, if you want to use it without any problems:

SESSION_COOKIE_SAMESITE="None"
Luka Klarić
  • 323
  • 2
  • 16