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!

Can't override layout.xaxis

Hey Guys -
I got a pretty weird issue when trying to override layout.xaxis / layout.yaxis.
For example I override xaxis in var layout like this:
var layout = {
xaxis: { showgrid: false }

console.log(layout); returns the prefilled/default values of xaxis.
BUT if i call console.log(layout.xaxis), the overriden values show up.

Did you came across this issue already?

Thanks for you help!

You might want to read for more info on the topic.

Cheers! Gonna go trough everything and come back to you afterwards.