✊🏿 Black Lives Matter. Please consider donating to Black Girls Code today.
⚾️ It's finally Baseball season! Root for the home team... & Register for our Sports Analytics Webinar!

Error in plotly cheatsheet

There is an error in #4 in the cheatsheet, it says:

trace = "'x':[1,2],'y':[1,2]}
data = [trace]
data = {}
fig = go.Figure(data=data, layout=layout)

the third line overwrite data. It should be:

trace = "'x':[1,2],'y':[1,2]}
data = [trace]
layout= {}
fig = go.Figure(data=data, layout=layout)

Thank you Sago! I opened an issue in the documentation project (https://github.com/plotly/documentation/issues/1136)!