Clip path IDs are not unique when exporting to SVG · Issue #2166 · oxyplot/oxyplot · GitHub
Skip to content

Clip path IDs are not unique when exporting to SVG #2166

Open

Description

@Klikini

When including multiple exported SVGs in the same HTML document, the generated clip path IDs collide and cause weird rendering issues (e.g. one chart will be clipped based on geometry of another chart).

This could be resolved by changing clip path IDs from $"clipPath{number++}" to something like $"clipPath-{new Guid()}" in SvgWriter.

For now, I am just exporting one type of chart to PNG so it doesn't conflict with the other type of chart, but it would be nice to export everything as SVG.

Activity

  1. changed the title [-]Clip path IDs are not unique exporting to SVG[/-] [+]Clip path IDs are not unique when exporting to SVG[/+] on Jun 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions