Podium.Chart.ComboChart (Podium v0.3.0)

Copy Markdown View Source

Multi-type combo chart combining different chart types in one plot area.

A combo chart splits the series from a single ChartData struct across multiple plot specs, each with its own chart type and optional secondary axis.

Summary

Functions

Creates a new combo chart from chart data and plot specifications.

Types

t()

@type t() :: %Podium.Chart.ComboChart{
  chart_data: Podium.Chart.ChartData.t(),
  plots: [Podium.Chart.ComboChart.PlotSpec.t()]
}

Functions

new(chart_data, plot_specs)

@spec new(Podium.Chart.ChartData.t(), [{atom(), keyword()}]) :: t()

Creates a new combo chart from chart data and plot specifications.

Each plot spec is a {chart_type, opts} tuple where opts must include :series (list of zero-based series indices). Validates that at least 2 plots exist, series indices don't overlap, and bar/column types aren't mixed.