SvgCharts
SVG chart renderer for Elixir powered by charts-rs.
Supports bar, line, pie, radar, scatter, candlestick, heatmap, table, and multi-chart types.
Installation
def deps do
[{:svg_charts, "~> 0.1"}]
endUsage
{:ok, svg} = SvgCharts.render(:bar, %{
"title_text" => "Downloads",
"series_list" => [
%{"name" => "MDEx", "data" => [120.0, 200.0, 150.0]}
],
"x_axis_data" => ["Jan", "Feb", "Mar"]
})See the charts-rs documentation for the full JSON configuration options.
Building from source
SVG_CHARTS_BUILD=true mix compile