Skip to content

Svg

SVGVis

Bases: Visualization

SVG visualization.

Use this visualization when you want full control over the rendered output by providing raw SVG markup.

Attributes:

Name Type Description
type Literal['svg']

Fixed discriminator "svg".

svg str

SVG markup as a string.

Source code in src/ocelescope/src/ocelescope/visualization/default/svg.py
class SVGVis(Visualization):
    """SVG visualization.

    Use this visualization when you want full control over the rendered output
    by providing raw SVG markup.

    Attributes:
        type: Fixed discriminator `"svg"`.
        svg: SVG markup as a string.
    """

    type: Literal["svg"] = "svg"
    svg: str