kailo_beewell_dashboard.images
Helper functions for working with image files
Module Contents
Functions
|
Convert plotly fig to HTML by saving it as a temporary PNG file, and then |
|
Get path for image in the kailo-beewell-dashboard package |
- kailo_beewell_dashboard.images.convert_fig_to_html(fig, alt_text)
Convert plotly fig to HTML by saving it as a temporary PNG file, and then importing that and converting it to HTML which can produce the figure.
Parameters
- figplotly figure object
Figure to be converted
- alt_textstring
Alternative text for the figure
Returns
- img_tagstring
HTML to generate image