FrappeUIPhx.Charts.Scatter (frappe_ui_phx v0.3.1)

Copy Markdown View Source

Gráfico de dispersão: séries de pontos {x, y} em eixos numéricos.

Summary

Functions

Escalas e pontos em coordenadas SVG (função pura).

Functions

geometry(series, height)

@spec geometry([map()], pos_integer()) :: map()

Escalas e pontos em coordenadas SVG (função pura).

scatter_chart(assigns)

Attributes

  • series (:list) (required) - [%{name: String, points: [{x, y}]}].
  • height (:integer) - Defaults to 260.
  • legend (:boolean) - Defaults to true.
  • loading (:boolean) - Defaults to false.
  • error (:string) - Defaults to nil.
  • class (:any) - Defaults to nil.
  • Global attributes are accepted.