We often get issues/questions regarding customization of the HTML output. In most situations, these are not related to Plotly functionality but rather custom behavior related to HTML rendering.
This directory contains examples of the most frequent raised questions by users of plotly-rs, such as:
- making the resulting HTML plot responsive on browser window size change
- making the resulting HTML fill the entire browser page
- placing multiple plots in the same HTML page, e.g., by using the
build_htmlcrate - exporting plots to different formats with consistent font rendering
Demonstrates creating a responsive density mapbox plot with OpenStreetMap styling and zoom controls.
cd density_mapbox_example
cargo runShows how to embed multiple plotly plots on a single HTML page using inline HTML generation.
cd multiple_plots_example
cargo runDemonstrates exporting plots to SVG, PNG, and PDF formats with consistent font rendering across browsers.
cd consistent_static_format_export
cargo run