Podium.Chart.BubbleChartData (Podium v0.3.0)

Copy Markdown View Source

Bubble chart data with X values, Y values, and bubble sizes per series.

Extends Podium.Chart.XyChartData with a third dimension (bubble size) for each data point.

Example

alias Podium.Chart.BubbleChartData

data =
  BubbleChartData.new()
  |> BubbleChartData.add_series("Markets",
    [10, 20, 30], [50, 40, 60], [5, 10, 15],
    color: "4472C4"
  )

See the Charts guide for full documentation.

Summary

Functions

Adds a bubble series with X values, Y values, and bubble sizes.

Creates a new empty BubbleChartData.

Returns the Excel range reference for a series' bubble sizes.

Returns the Excel cell reference for a series name.

Returns the Excel range reference for a series' X values.

Returns the Excel range reference for a series' Y values.

Types

t()

@type t() :: %Podium.Chart.BubbleChartData{series: [Series.t()]}

Functions

add_series(data, name, x_values, y_values, bubble_sizes, opts \\ [])

@spec add_series(t(), String.t(), [number()], [number()], [number()], keyword()) ::
  t()

Adds a bubble series with X values, Y values, and bubble sizes.

Options

  • :color - series color (hex RGB string)
  • :pattern - pattern fill keyword list
  • :marker - marker options keyword list
  • :point_colors - %{index => color} map for per-point colors
  • :point_formats - %{index => opts} map for per-point formatting
  • :data_labels - %{index => opts} map for per-point data labels

new()

@spec new() :: t()

Creates a new empty BubbleChartData.

series_bubble_sizes_ref(bubble_chart_data, series)

@spec series_bubble_sizes_ref(t(), Podium.Chart.BubbleChartData.Series.t()) ::
  String.t()

Returns the Excel range reference for a series' bubble sizes.

series_name_ref(bubble_chart_data, series)

@spec series_name_ref(t(), Podium.Chart.BubbleChartData.Series.t()) :: String.t()

Returns the Excel cell reference for a series name.

series_x_values_ref(bubble_chart_data, series)

@spec series_x_values_ref(t(), Podium.Chart.BubbleChartData.Series.t()) :: String.t()

Returns the Excel range reference for a series' X values.

series_y_values_ref(bubble_chart_data, series)

@spec series_y_values_ref(t(), Podium.Chart.BubbleChartData.Series.t()) :: String.t()

Returns the Excel range reference for a series' Y values.