Question: I want to embed my chart from Apache Superset into my React.js App.
So far I know there is possibility to use like this:

```
<iframe
        id="myIFRAME"
        width="1600"
        height="1200"
        seamless
        frameBorder="10"
        scrolling="no"
        src="http://localhost:8080/r/3"
      >
</iframe>

```

It works fine but I want to use only a chart with filter options without all the superset dashbord pane:
[![enter image description here](https://i.stack.imgur.com/l524D.png)](https://i.stack.imgur.com/l524D.png)

I was trying to use <https://www.npmjs.com/package/@superset-ui/core> but there is no good documentation how to use it and it require to downgrade react version to 16, while I think in my project will be better newer version.

Currently I am trying to manipulate things inside iframe by catching things by

```
var iframe = document.getElementById("myIFRAME");
  var elmnt = iframe.contentWindow.document.getElementsByClassName(
    "dashboard-content css-185d7vi"
  );
   elmnt.style.display = "none";

```

But i think it's not a good way to do this and Im getting errors with `CORS` and `Consider adding an error boundary to your tree to customize error handling behavior.`

Answer: 
**I think this approach will work for your task.**

```
import string
import random

random.seed(0)

def stock_generator():
    return (''.join(random.choices(string.ascii_uppercase, k=4)), random.random())

parse_result =[]
n=100
for i in range(0,n):
    parse_result.append(stock_generator())

print(parse_result)

```
Try:

```
import string
import random

def stock_generator(num):
    names = []

    for n in range(num):
        x = ''.join(random.choices(string.ascii_uppercase, k=4))
        names.append(x)

    return names    
print(stock_generator(100))

```

Each time you will call the function stock\_generator using a number of your choice as parameter, you'll generate the stock name you need.