Generated html file with dark plot should also have dark background
qarmin opened this issue · 1 comments
qarmin commented
Currently using
layout.template(&*PLOTLY_DARK);
will change color of plot, but not rest of the page.
As workaround i manually background color
let mut html = plot.to_html();
if !settings.white_plot_mode {
html = html.replace("<head>", "<head><style>body {background-color: #111111;color: white;}</style>");
}
mfreeborn commented
I'll have to check what the exact behaviour is with the Python/JavaScript implementations, as I tend to base all decisions like this one on what the canonical libraries do.