Skip to main content
🌍 Public

Share visualization

Send this visualization to others.

[bug fix] SPC Icons

Public visualization

Viewing a saved revision (read-only)

ac624c3b236b425090f2336adfd88ed7

[bug fix] SPC Icons

1 star0🌍 Public
CCurran Kelleher
Last edited Dec 22, 2020
Created on Dec 22, 2020
Forked from SPC Icons

This example demonstrates a bug fix for SVG markers defined within `<defs>` elements, showing two variations of a "High" SPC icon with different performance states: improvement (blue) and concern (orange). The React components use d3’s `line` function to draw plot lines with circular markers applied via `marker-start`, `marker-mid`, and `marker-end` attributes. The fix ensures markers inherit the correct fill color from their parent definitions, rendering distinct colored endpoints for each performance state.

AI-generated description