Fixing chart initialization on re-open

I was using "properties" instead of "layout" to retreive my chart properties, and apparently layout is available earlier than properties. Enjoy!