I have a standalone plot which generates an .html file. The file itself is two plots below a title, using the code below, using this suggestion, where p and q are horizontal bar charts:
P = row(p,q)
div = Div(text=overallTitle)
save(column(div,P))
The result is this:
My aim is to centre align the text, so it is above the middle of the two charts, as well as change the font and size of the text. This answer suggests it can be done like this:
div.css_classes = ["my-custom"]
However, now it seems the CSS class "my-custom" needs to be created. This answer suggests (I think) that adding "a Div
element with the style sheet" is the way to achieve that.
I have no experience with CSS at all, do I need to create a .css file that is stored in the same directory as the Python script which defines the function that creates the .html file? It may also be worth mentioning that I'd like to keep the .html file output format, I do make use of the interactive features that it provides, e.g. tooltips.
Any help much appreciated.