Barlix.SVG (barlix v0.6.3) View Source

This module implements the SVG renderer.

Link to this section Summary

Functions

Renders the given code in svg format.

Link to this section Functions

Link to this function

print(arg, options \\ [])

View Source

Specs

print(Barlix.code(), Keyword.t()) :: :ok | {:ok, iodata()}

Renders the given code in svg format.

Options

  • :file - (path) - target file path. If not set, SVG will be returned as iodata.
  • :xdim - (integer) - width of a single bar in pixels. Defaults to 1.
  • :height - (integer) - height of the bar in pixels. Defaults to 100.
  • :margin - (integer) - margin size in pixels. Defaults to 10.