Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

CSS with the plot import

I put it into a div and use inline style which works. But when i try to do it inside script, it doesn’t work(it does change the div but not the graph)

That sounds strange. Can you share a code snippet?

html>

.hello { width:"100px"; } {% for a in params2 %}
{% include a.HTMLFileName %}
{% endfor %}

This will work, but I am try to use divTag.style.width=“500px”

This http://codepen.io/etpinard/pen/qNbRrQ might answer your question.

Ah, but I actually draw plot in my python code not in js, because I need grab data from database.

Also, how to import plotly to html? Thanks