plotex v0.3.0 Plotex.Output.Svg
Link to this section 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.
Link to this section Functions
Link to this function
default_css()
Default example CSS Styling.
Link to this function
generate(plot, opts)
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
.