Skip to content

Functions

  • SVG Wrapper


    Wraps one or more Elements, Defs, Compounds, applying required metadata and <SVG> tags

  • Elements


    SVG primitives (i.e. <Rect>, <Circle>, <line>)

  • Compounds


    Complex Compound components (i.e. boxplot, violin) made from Elements

  • Defs


    Define reusable SVG elements (i.e. <linearGradient>, <clipPath>, and shapes).

  • Attr


    Create Attributes (i.e.fill, stroke, opacity) string that can applied to Elements and Defs

  • Transforms


    Create Transform strings

  • Scales


    Mapping values between scales

  • Colors


    Themes and functions for colour manipulation.