View Source LiveCharts (live_charts v0.4.0)

LiveCharts is a library to render static and dynamic charts in Phoenix LiveView applications.

To get started, see the README.

LiveCharts currently comes with support for ApexCharts out of the box, but it can work with any JS charting library that has a LiveCharts.Adapter defined.

Summary

Functions

Build a new chart config.

Renders a chart component.

Push a data update event to LiveView.

Functions

build(assigns)

Build a new chart config.

See LiveCharts.Chart.build/1 for more details.

chart(assigns)

Renders a chart component.

See LiveCharts.Components.chart/1 for more details.

push_update(socket, chart_id, new_data)

Push a data update event to LiveView.

See LiveCharts.Components.push_update/3 for more details.