barlix v0.6.0 Barlix.SVG 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
print(arg, options \\ [])
View Source
print(Barlix.code(), Keyword.t()) :: :ok | {:ok, iodata()}
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 to1
.:height
- (integer) - height of the bar in pixels. Defaults to100
.:margin
- (integer) - margin size in pixels. Defaults to10
.