Enabling "Use live preview" user preference editing option breaks graph preview.
To reproduce,
- enable "Use live preview"
- Navigate to any page with a graph (could also paste last example from the demo page)
- preview
This works fine for non-logged-in users, or those without this option enabled