# Plotly not found error in javascript code

**URL:** <https://community.plotly.com/t/plotly-not-found-error-in-javascript-code/25250>\
**Category:** plotly.js\
**Created:** [July 1, 2019, 1:09pm UTC](https://community.plotly.com/t/plotly-not-found-error-in-javascript-code/25250 "2019-07-01T13:09:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mahopacs](https://avatars.discourse-cdn.com/v4/letter/m/b4bc9f/32.png) [@Mahopacs](https://community.plotly.com/u/Mahopacs)\
**Post date:** [July 1, 2019, 1:09pm UTC](https://community.plotly.com/t/plotly-not-found-error-in-javascript-code/25250/1 "2019-07-01T13:09:47Z")

</div>

I am trying to use the snipet of code provided and I am getting an error in the line:  
Plotly.newPlot(‘myDiv’, data, {}, {showSendToCloud: true});

There error is ‘cannot find name’. Is there other setup required other than the line below?

Thank you!

HTML:

JS:  
Plotly.newPlot(‘myDiv’, data, {}, {showSendToCloud: true});

---

<div class="post-metadata">

**Author:** ![koushikphy](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@koushikphy](https://community.plotly.com/u/koushikphy)\
**Post date:** [July 2, 2019, 1:27pm UTC](https://community.plotly.com/t/plotly-not-found-error-in-javascript-code/25250/2 "2019-07-02T13:27:47Z")

</div>

have you loaded plotly ?
