Components Reference
Plotly
plotly(figure)
The plotly
function allows you to embed interactive Plotly charts into your application. It’s a powerful way to visualize data dynamically and intuitively.
Parameters
figure
(Plotly figure object): The Plotly figure object to be rendered. This can be created using Plotly Express or the Plotly Graph Objects API.size
(float): (Optional) The width of the component in a row. Defaults to1.0
(full row). See the Layout Guide for details.
Usage Example
Here’s a quick example demonstrating how to use the plotly
function:
Creating Plotly Charts
You can create a variety of charts using Plotly Express or Plotly Graph Objects, such as:
- Line charts
- Bar charts
- Scatter plots
- Pie charts
- Histograms
- 3D plots
Here’s an example of a bar chart:
Why Use plotly
?
- Interactivity: Zoom, pan, hover, and more.
- Customization: Tailor every aspect of the chart to suit your needs.
- Versatility: Supports a wide range of visualizations.
Visualize your data like never before with Plotly! 🌟
Was this page helpful?