Css
plotjs offers a few utility functions to work with CSS, and a guide on how to work with CSS.
Warning
You likely just want to use the add_css() method from the PlotJS object instead of the following functions. Those are used under the hood and you can use them, but they might not provide you the simplest interface.
Get raw CSS in a string from a dictionnary. It's a utility function useful to write CSS from a Python dictionnary.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
css_dict
|
dict
|
A dictionnary with keys (selectors) and value (dictionnary of property-value). |
required |
Returns:
| Type | Description |
|---|---|
str
|
A string of raw CSS. |
Examples: