View Source Contex.PlotContent protocol (ContEx v0.5.0)

Defines what a charting component needs to implement to be rendered within a Contex.Plot

Link to this section Summary

Functions

Generates svg content for a legend appropriate for the plot content.

Sets the size for the plot content. This is called after the main layout and margin calculations are performed by the container plot.

Generates svg as a string or improper list of strings without the SVG containing element.

Link to this section Types

Link to this section Functions

Generates svg content for a legend appropriate for the plot content.

Link to this function

set_size(plot, width, height)

View Source

Sets the size for the plot content. This is called after the main layout and margin calculations are performed by the container plot.

Link to this function

to_svg(plot, plot_options)

View Source

Generates svg as a string or improper list of strings without the SVG containing element.