View Source Luminous.Query.Attributes (luminous v1.4.1)

This struct collects all the attributes that apply to a particular Dataset. It is specified in the attrs argument of Luminous.Query.Result.new/2.

Link to this section Summary

Link to this section Types

@type decimal_precision() :: non_neg_integer()
@type t() :: %Luminous.Query.Attributes{
  fill: boolean(),
  halign: :left | :center | :right,
  order: non_neg_integer() | nil,
  table_totals: totals_function() | {totals_function(), decimal_precision()},
  title: binary(),
  type: :line | :bar,
  unit: binary()
}
@type totals_function() :: :sum | :avg | :min | :max | :count

Link to this section Functions

@spec define() :: t()
@spec define(Keyword.t()) :: t()