Skip to main content

Crate plotlars

Crate plotlars 

Source
Expand description

Plotlars bridges Polars DataFrames with visualization backends.

Two mutually exclusive backends are supported via Cargo features:

  • plotly — interactive HTML charts (all 22 plot types)
  • plotters — static PNG/SVG output (8 plot types)

See the README for full documentation and examples.

Modules§

polars
Re-exported Polars prelude for advanced data manipulation.

Structs§

Array2dPlot
A structure representing a 2D array plot.
Axis
A structure representing a customizable axis.
BarPlot
A structure representing a bar plot.
BoxPlot
A structure representing a box plot.
CandlestickPlot
A structure representing a Candlestick financial chart.
Cell
A structure representing cell formatting for tables.
ColorBar
A structure representing a color bar component for visualizations.
ContourPlot
A structure representing a contour plot.
CsvReader
A CSV file reader with configurable parsing options.
DensityMapbox
A structure representing a density mapbox visualization.
Dimensions
A structure representing plot dimensions and sizing behavior.
Direction
A structure representing the styling for candlestick directions (increasing/decreasing).
ExcelReader
An Excel file reader supporting .xlsx format.
FacetConfig
A structure representing facet configuration for creating small multiples.
Header
A structure representing header formatting for tables.
HeatMap
A structure representing a heat map.
Histogram
A structure representing a histogram.
Image
A structure representing an image plot.
JsonReader
An NDJSON (newline-delimited JSON) file reader.
Legend
A structure representing a customizable plot legend.
Lighting
A structure describing the lighting model.
LinePlot
A structure representing a line plot.
Mesh3D
A structure representing a 3D mesh plot.
OhlcPlot
A structure representing an OHLC (Open-High-Low-Close) financial chart.
ParquetReader
A Parquet file reader.
PieChart
A structure representing a pie chart.
Rgb
A structure representing an RGB color with red, green, and blue components.
SankeyDiagram
A structure representing a Sankey diagram.
Scatter3dPlot
A structure representing a 3D scatter plot.
ScatterGeo
A structure representing a geographic scatter plot.
ScatterMap
A structure representing a scatter plot on a map.
ScatterPlot
A structure representing a scatter plot.
ScatterPolar
A structure representing a scatter polar plot.
SubplotGrid
A structure representing a subplot grid layout.
SurfacePlot
A structure representing a 3-D surface plot.
Table
A structure representing a table plot.
Text
A structure representing text with customizable content, font, size, and color.
TimeSeriesPlot
A structure representing a time series plot.

Enums§

Arrangement
An enumeration representing node arrangement strategies for Sankey diagrams.
AxisSide
Enumeration representing the position of the axis.
AxisType
Enumeration representing the type of the axis.
BarMode
An enumeration representing how bars are displayed when multiple bar traces share the same axis.
Coloring
Enumeration representing the coloring strategy applied to contour levels.
FacetScales
Controls axis scaling behavior across facets in a faceted plot.
Fill
An enumeration representing different fill modes for area traces in plots.
IntensityMode
An enumeration representing the source of intensity values for mesh coloring.
Line
An enumeration representing different styles of lines that can be used in plots.
Mode
An enumeration representing different drawing modes for scatter-type plots.
Orientation
An enumeration representing the orientation of the legend.
Palette
Example
PlotlarsError
Unified error type for plotlars I/O and plot construction failures.
Shape
An enumeration of various marker shapes used in plots.
TickDirection
Enumeration representing the direction of axis ticks.
UnsupportedOptionPolicy
Controls how unsupported styling options are reported during rendering.
ValueExponent
An enumeration representing the format for value exponents on the axis.

Traits§

Plot
Plotly rendering extension trait. Provides all visualization methods.
PlotData
Core trait implemented by all plot types. Provides access to the intermediate representation (IR) data.

Functions§

set_unsupported_option_policy
Set the global unsupported option policy. First call wins; subsequent calls are ignored. If never called, the default is Warn.