Plotex.Output.Svg (plotex v0.5.7)
Summary
Functions
Default example CSS Styling.
Primary function to generate SVG plots from a given Plotex structure. The SVG can be styled using standard CSS. Options include ability to set the tick rotation and offset.
Functions
Link to this function
default_css()
Default example CSS Styling.
Link to this function
generate(assigns)
Link to this function
render(assigns)
Primary function to generate SVG plots from a given Plotex structure. The SVG can be styled using standard CSS. Options include ability to set the tick rotation and offset.
The overall SVG structure and CSS classes that can be used to style the SVG graph are:
.plx-graph
.plx-title
.plx-label-title
.plx-labels
.plx-x-labels
.plx-y-labels
.plx-grid
.plx-data
.plx-dataset-<n>
.plx-data-point
.plx-data-line
The generated SVG includes both a ployline connecting each dataset, and also either
datapoints as either rect
or circle
type via opts.data.type = :rect | :circle
.
Attributes
opts
(Plotex.Output.Options
) (required)plot
(Plotex
) (required)config
(Plotex.Config
) - Defaults tonil
.- Global attributes are accepted.
Slots
custom_svg