Skip to content

use SVG for markers #431

@leeoniya

Description

@leeoniya

ideally, tiny, single-path SVGs where the path d attribute can be reused for both the svg elements of hover points as well as Path2D cached paths for canvas draw.

grafana/grafana#30192

these can be in the core if they're small and visually distinctive:

  • circle
  • square
  • triangle
  • star
  • plus
  • asterisk
  • rhombus
  • cross (rotated plus?)

image

image

e.g. tiny star:

<svg viewBox="0 0 260 245"><path d="M55 237L129 9l74 228L9 96h240"/></svg>

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions