SelectoComponents.Views.Graph.Component (selecto_components v0.4.5)

Link to this section Summary

Link to this section Functions

Link to this function

chart_summary(chart_data, chart_type)

Link to this function

format_aggregate_label(aggregate)

Link to this function

format_chart_label(value)

Link to this function

format_numeric_value(value)

Link to this function

generate_color(index, alpha)

Link to this function

get_aggregate_label(_)

Link to this function

get_chart_type(assigns)

Link to this function

prepare_chart_data(assigns, results, aliases)

Transform query results into Chart.js compatible data format

Link to this function

prepare_chart_options(assigns)

Prepare Chart.js options from view configuration

Link to this function

render(assigns)

Callback implementation for Phoenix.LiveComponent.render/1.

Link to this function

update(assigns, socket)

Callback implementation for Phoenix.LiveComponent.update/2.