Playground

This component's contract doesn't list typed props, so the playground shows its documented example.

Documented example VizLinePreview : mount the authored fragment or shared-renderer SVG, SVG bytes hash e797e674539c5baeb689f22cb916333ddc5c09915d7778621dca1db6a8b22531.

The render follows the page's theme switch: light, dark or high contrast. Both frameworks render the same example.

The real VizLinePreview, live
React
Vue

Code

The documented example. HTML is the markup the React component renders for it, which @oods/component-styles styles.

import { VizLinePreview } from '@oods/components-react';
import '@oods/component-styles/css';

export function Example() {
  return (
    <VizLinePreview
      svg={"<svg xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\" version=\"1.1\" class=\"marks\" width=\"370\" height=\"210\" viewBox=\"0 0 370 210\" role=\"img\" aria-label=\"Line chart sample\" aria-description=\"Four authored sample observations, grouped into category A and category B series.\"><title>Line chart sample</title><desc>Four authored sample observations, grouped into category A and category B series.</desc><rect width=\"370\" height=\"210\" fill=\"#FFFFFF\"/><g fill=\"none\" stroke-miterlimit=\"10\" transform=\"translate(43,36)\"><g class=\"mark-group role-frame root\" role=\"graphics-object\" aria-roledescription=\"group mark container\"><g transform=\"translate(0,0)\"><path class=\"background\" aria-hidden=\"true\" d=\"M0,0h234v123h-234Z\"/><g><g class=\"mark-group role-axis\" aria-hidden=\"true\"><g transform=\"translate(0.5,0.5)\"><path class=\"background\" aria-hidden=\"true\" d=\"M0,0h0v0h0Z\" pointer-events=\"none\"/><g><g class=\"mark-rule role-axis-grid\" pointer-events=\"none\"><line transform=\"translate(0,123)\" x2=\"234\" y2=\"0\" stroke=\"#E5E5E5\" stroke-width=\"1\" opacity=\"1\"/><line transform=\"translate(0,95)\" x2=\"234\" y2=\"0\" stroke=\"#E5E5E5\" stroke-width=\"1\" opacity=\"1\"/><line transform=\"translate(0,67)\" x2=\"234\" y2=\"0\" stroke=\"#E5E5E5\" stroke-width=\"1\" opacity=\"1\"/><line transform=\"translate(0,39)\" x2=\"234\" y2=\"0\" stroke=\"#E5E5E5\" stroke-width=\"1\" opacity=\"1\"/><line transform=\"translate(0,11)\" x2=\"234\" y2=\"0\" stroke=\"#E5E5E5\" stroke-width=\"1\" opacity=\"1\"/></g></g><path class=\"foreground\" aria-hidden=\"true\" d=\"\" pointer-events=\"none\" display=\"none\"/></g></g><g class=\"mark-group role-axis\" role=\"graphics-symbol\" aria-roledescription=\"axis\" aria-label=\"X-axis titled 'Period' for a discrete scale with 2 values: Jan, Feb\"><g transform=\"translate(0.5,123.5)\"><path class=\"background\" aria-hidden=\"true\" d=\"M0,0h0v0h0Z\" pointer-events=\"none\"/><g><g class=\"mark-rule role-axis-tick\" pointer-events=\"none\"><line transform=\"translate(59,0)\" x2=\"0\" y2=\"5\" stroke=\"#D4D4D4\" stroke-width=\"1\" opacity=\"1\"/><line transform=\"translate(176,0)\" x2=\"0\" y2=\"5\" stroke=\"#D4D4D4\" stroke-width=\"1\" opacity=\"1\"/></g><g class=\"mark-text role-axis-label\" pointer-events=\"none\"><text text-anchor=\"end\" transform=\"translate(58.5,7) rotate(270) translate(0,3)\" font-family=\"Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\" font-size=\"10px\" fill=\"#525252\" opacity=\"1\">Jan</text><text text-anchor=\"end\" transform=\"translate(175.5,7) rotate(270) translate(0,3)\" font-family=\"Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\" font-size=\"10px\" fill=\"#525252\" opacity=\"1\">Feb</text></g><g class=\"mark-rule role-axis-domain\" pointer-events=\"none\"><line transform=\"translate(0,0)\" x2=\"234\" y2=\"0\" stroke=\"#D4D4D4\" stroke-width=\"1\" opacity=\"1\"/></g><g class=\"mark-text role-axis-title\" pointer-events=\"none\"><text text-anchor=\"middle\" transform=\"translate(117,44)\" font-family=\"Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\" font-size=\"11px\" font-weight=\"bold\" fill=\"#0A0A0A\" opacity=\"1\">Period</text></g></g><path class=\"foreground\" aria-hidden=\"true\" d=\"\" pointer-events=\"none\" display=\"none\"/></g></g><g class=\"mark-group role-axis\" role=\"graphics-symbol\" aria-roledescription=\"axis\" aria-label=\"Y-axis titled 'Value' for a linear scale with values from 0 to 22\"><g transform=\"translate(0.5,0.5)\"><path class=\"background\" aria-hidden=\"true\" d=\"M0,0h0v0h0Z\" pointer-events=\"none\"/><g><g class=\"mark-rule role-axis-tick\" pointer-events=\"none\"><line transform=\"translate(0,123)\" x2=\"-5\" y2=\"0\" stroke=\"#D4D4D4\" stroke-width=\"1\" opacity=\"1\"/><line transform=\"translate(0,95)\" x2=\"-5\" y2=\"0\" stroke=\"#D4D4D4\" stroke-width=\"1\" opacity=\"1\"/><line transform=\"translate(0,67)\" x2=\"-5\" y2=\"0\" stroke=\"#D4D4D4\" stroke-width=\"1\" opacity=\"1\"/><line transform=\"translate(0,39)\" x2=\"-5\" y2=\"0\" stroke=\"#D4D4D4\" stroke-width=\"1\" opacity=\"1\"/><line transform=\"translate(0,11)\" x2=\"-5\" y2=\"0\" stroke=\"#D4D4D4\" stroke-width=\"1\" opacity=\"1\"/></g><g class=\"mark-text role-axis-label\" pointer-events=\"none\"><text text-anchor=\"end\" transform=\"translate(-7,126)\" font-family=\"Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\" font-size=\"10px\" fill=\"#525252\" opacity=\"1\">0</text><text text-anchor=\"end\" transform=\"translate(-7,98.04545454545455)\" font-family=\"Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\" font-size=\"10px\" fill=\"#525252\" opacity=\"1\">5</text><text text-anchor=\"end\" transform=\"translate(-7,70.09090909090908)\" font-family=\"Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\" font-size=\"10px\" fill=\"#525252\" opacity=\"1\">10</text><text text-anchor=\"end\" transform=\"translate(-7,42.13636363636364)\" font-family=\"Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\" font-size=\"10px\" fill=\"#525252\" opacity=\"1\">15</text><text text-anchor=\"end\" transform=\"translate(-7,14.181818181818185)\" font-family=\"Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\" font-size=\"10px\" fill=\"#525252\" opacity=\"1\">20</text></g><g class=\"mark-rule role-axis-domain\" pointer-events=\"none\"><line transform=\"translate(0,123)\" x2=\"0\" y2=\"-123\" stroke=\"#D4D4D4\" stroke-width=\"1\" opacity=\"1\"/></g><g class=\"mark-text role-axis-title\" pointer-events=\"none\"><text text-anchor=\"middle\" transform=\"translate(-27,61.5) rotate(-90) translate(0,-2)\" font-family=\"Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\" font-size=\"11px\" font-weight=\"bold\" fill=\"#0A0A0A\" opacity=\"1\">Value</text></g></g><path class=\"foreground\" aria-hidden=\"true\" d=\"\" pointer-events=\"none\" display=\"none\"/></g></g><g class=\"mark-group role-scope pathgroup\" role=\"graphics-object\" aria-roledescription=\"group mark container\"><g transform=\"translate(0,0)\"><path class=\"background\" aria-hidden=\"true\" d=\"M0,0h234v123h-234Z\"/><g><g class=\"mark-line role-mark marks\" role=\"graphics-object\" aria-roledescription=\"line mark container\"><path aria-label=\"Period: Jan; Value: 12; Category: A\" role=\"graphics-symbol\" aria-roledescription=\"line mark\" d=\"M58.5,55.909L175.5,0\" stroke=\"#3E63DD\" stroke-width=\"2.5\"/></g></g><path class=\"foreground\" aria-hidden=\"true\" d=\"\" display=\"none\"/></g><g transform=\"translate(0,0)\"><path class=\"background\" aria-hidden=\"true\" d=\"M0,0h234v123h-234Z\"/><g><g class=\"mark-line role-mark marks\" role=\"graphics-object\" aria-roledescription=\"line mark container\"><path aria-label=\"Period: Jan; Value: 18; Category: B\" role=\"graphics-symbol\" aria-roledescription=\"line mark\" d=\"M58.5,22.364L175.5,39.136\" stroke=\"#B98E00\" stroke-width=\"2.5\"/></g></g><path class=\"foreground\" aria-hidden=\"true\" d=\"\" display=\"none\"/></g></g><g class=\"mark-group role-legend\" role=\"graphics-symbol\" aria-roledescription=\"legend\" aria-label=\"Symbol legend titled 'Category' for stroke color with 2 values: A, B\"><g transform=\"translate(252,0)\"><path class=\"background\" aria-hidden=\"true\" d=\"M0,0h70v40h-70Z\" pointer-events=\"none\"/><g><g class=\"mark-group role-legend-entry\"><g transform=\"translate(0,16)\"><path class=\"background\" aria-hidden=\"true\" d=\"M0,0h0v0h0Z\" pointer-events=\"none\"/><g><g class=\"mark-group role-scope\" role=\"graphics-object\" aria-roledescription=\"group mark container\"><g transform=\"translate(0,0)\"><path class=\"background\" aria-hidden=\"true\" d=\"M0,0h24v11h-24Z\" pointer-events=\"none\" opacity=\"1\"/><g><g class=\"mark-symbol role-legend-symbol\" pointer-events=\"none\"><path transform=\"translate(6,6)\" d=\"M-5,0L5,0\" stroke=\"#3E63DD\" stroke-width=\"1.5\" opacity=\"1\"/></g><g class=\"mark-text role-legend-label\" pointer-events=\"none\"><text text-anchor=\"start\" transform=\"translate(16,9)\" font-family=\"Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\" font-size=\"10px\" fill=\"#525252\" opacity=\"1\">A</text></g></g><path class=\"foreground\" aria-hidden=\"true\" d=\"\" pointer-events=\"none\" display=\"none\"/></g><g transform=\"translate(0,13)\"><path class=\"background\" aria-hidden=\"true\" d=\"M0,0h24v11h-24Z\" pointer-events=\"none\" opacity=\"1\"/><g><g class=\"mark-symbol role-legend-symbol\" pointer-events=\"none\"><path transform=\"translate(6,6)\" d=\"M-5,0L5,0\" stroke=\"#B98E00\" stroke-width=\"1.5\" opacity=\"1\"/></g><g class=\"mark-text role-legend-label\" pointer-events=\"none\"><text text-anchor=\"start\" transform=\"translate(16,9)\" font-family=\"Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\" font-size=\"10px\" fill=\"#525252\" opacity=\"1\">B</text></g></g><path class=\"foreground\" aria-hidden=\"true\" d=\"\" pointer-events=\"none\" display=\"none\"/></g></g></g><path class=\"foreground\" aria-hidden=\"true\" d=\"\" pointer-events=\"none\" display=\"none\"/></g></g><g class=\"mark-text role-legend-title\" pointer-events=\"none\"><text text-anchor=\"start\" transform=\"translate(0,9)\" font-family=\"Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\" font-size=\"11px\" font-weight=\"bold\" fill=\"#0A0A0A\" opacity=\"1\">Category</text></g></g><path class=\"foreground\" aria-hidden=\"true\" d=\"\" pointer-events=\"none\" display=\"none\"/></g></g><g class=\"mark-group role-title\"><g transform=\"translate(-38,-30.5)\"><path class=\"background\" aria-hidden=\"true\" d=\"M0,0h0v0h0Z\" pointer-events=\"none\"/><g><g class=\"mark-text role-title-text\" role=\"graphics-symbol\" aria-roledescription=\"title\" aria-label=\"Title text 'Line chart sample'\" pointer-events=\"none\"><text text-anchor=\"start\" transform=\"translate(0,19)\" font-family=\"Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif\" font-size=\"24px\" font-weight=\"600\" fill=\"#0A0A0A\" opacity=\"1\">Line chart sample</text></g></g><path class=\"foreground\" aria-hidden=\"true\" d=\"\" pointer-events=\"none\" display=\"none\"/></g></g></g><path class=\"foreground\" aria-hidden=\"true\" d=\"\" display=\"none\"/></g></g></g></svg>"}
      title="Line chart sample"
      description="Four authored sample observations, grouped into category A and category B series."
      width={360}
      height={200}
    />
  );
}

Props, slots and events

Contract version 1.1.0. Types are from the React declarations in @oods/components-react.

Props
PropTypeRequiredDocumented example
svg string | undefined no <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" class="marks" width="370" height="210" viewBox="0 0 370 210" role="img" aria-label="Line chart sample" aria-description="Four authored sample observations, grouped into category A and category B series."><title>Line chart sample</title><desc>Four authored sample observations, grouped into category A and category B series.</desc><rect width="370" height="210" fill="#FFFFFF"/><g fill="none" stroke-miterlimit="10" transform="translate(43,36)"><g class="mark-group role-frame root" role="graphics-object" aria-roledescription="group mark container"><g transform="translate(0,0)"><path class="background" aria-hidden="true" d="M0,0h234v123h-234Z"/><g><g class="mark-group role-axis" aria-hidden="true"><g transform="translate(0.5,0.5)"><path class="background" aria-hidden="true" d="M0,0h0v0h0Z" pointer-events="none"/><g><g class="mark-rule role-axis-grid" pointer-events="none"><line transform="translate(0,123)" x2="234" y2="0" stroke="#E5E5E5" stroke-width="1" opacity="1"/><line transform="translate(0,95)" x2="234" y2="0" stroke="#E5E5E5" stroke-width="1" opacity="1"/><line transform="translate(0,67)" x2="234" y2="0" stroke="#E5E5E5" stroke-width="1" opacity="1"/><line transform="translate(0,39)" x2="234" y2="0" stroke="#E5E5E5" stroke-width="1" opacity="1"/><line transform="translate(0,11)" x2="234" y2="0" stroke="#E5E5E5" stroke-width="1" opacity="1"/></g></g><path class="foreground" aria-hidden="true" d="" pointer-events="none" display="none"/></g></g><g class="mark-group role-axis" role="graphics-symbol" aria-roledescription="axis" aria-label="X-axis titled 'Period' for a discrete scale with 2 values: Jan, Feb"><g transform="translate(0.5,123.5)"><path class="background" aria-hidden="true" d="M0,0h0v0h0Z" pointer-events="none"/><g><g class="mark-rule role-axis-tick" pointer-events="none"><line transform="translate(59,0)" x2="0" y2="5" stroke="#D4D4D4" stroke-width="1" opacity="1"/><line transform="translate(176,0)" x2="0" y2="5" stroke="#D4D4D4" stroke-width="1" opacity="1"/></g><g class="mark-text role-axis-label" pointer-events="none"><text text-anchor="end" transform="translate(58.5,7) rotate(270) translate(0,3)" font-family="Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="10px" fill="#525252" opacity="1">Jan</text><text text-anchor="end" transform="translate(175.5,7) rotate(270) translate(0,3)" font-family="Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="10px" fill="#525252" opacity="1">Feb</text></g><g class="mark-rule role-axis-domain" pointer-events="none"><line transform="translate(0,0)" x2="234" y2="0" stroke="#D4D4D4" stroke-width="1" opacity="1"/></g><g class="mark-text role-axis-title" pointer-events="none"><text text-anchor="middle" transform="translate(117,44)" font-family="Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="11px" font-weight="bold" fill="#0A0A0A" opacity="1">Period</text></g></g><path class="foreground" aria-hidden="true" d="" pointer-events="none" display="none"/></g></g><g class="mark-group role-axis" role="graphics-symbol" aria-roledescription="axis" aria-label="Y-axis titled 'Value' for a linear scale with values from 0 to 22"><g transform="translate(0.5,0.5)"><path class="background" aria-hidden="true" d="M0,0h0v0h0Z" pointer-events="none"/><g><g class="mark-rule role-axis-tick" pointer-events="none"><line transform="translate(0,123)" x2="-5" y2="0" stroke="#D4D4D4" stroke-width="1" opacity="1"/><line transform="translate(0,95)" x2="-5" y2="0" stroke="#D4D4D4" stroke-width="1" opacity="1"/><line transform="translate(0,67)" x2="-5" y2="0" stroke="#D4D4D4" stroke-width="1" opacity="1"/><line transform="translate(0,39)" x2="-5" y2="0" stroke="#D4D4D4" stroke-width="1" opacity="1"/><line transform="translate(0,11)" x2="-5" y2="0" stroke="#D4D4D4" stroke-width="1" opacity="1"/></g><g class="mark-text role-axis-label" pointer-events="none"><text text-anchor="end" transform="translate(-7,126)" font-family="Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="10px" fill="#525252" opacity="1">0</text><text text-anchor="end" transform="translate(-7,98.04545454545455)" font-family="Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="10px" fill="#525252" opacity="1">5</text><text text-anchor="end" transform="translate(-7,70.09090909090908)" font-family="Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="10px" fill="#525252" opacity="1">10</text><text text-anchor="end" transform="translate(-7,42.13636363636364)" font-family="Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="10px" fill="#525252" opacity="1">15</text><text text-anchor="end" transform="translate(-7,14.181818181818185)" font-family="Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="10px" fill="#525252" opacity="1">20</text></g><g class="mark-rule role-axis-domain" pointer-events="none"><line transform="translate(0,123)" x2="0" y2="-123" stroke="#D4D4D4" stroke-width="1" opacity="1"/></g><g class="mark-text role-axis-title" pointer-events="none"><text text-anchor="middle" transform="translate(-27,61.5) rotate(-90) translate(0,-2)" font-family="Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="11px" font-weight="bold" fill="#0A0A0A" opacity="1">Value</text></g></g><path class="foreground" aria-hidden="true" d="" pointer-events="none" display="none"/></g></g><g class="mark-group role-scope pathgroup" role="graphics-object" aria-roledescription="group mark container"><g transform="translate(0,0)"><path class="background" aria-hidden="true" d="M0,0h234v123h-234Z"/><g><g class="mark-line role-mark marks" role="graphics-object" aria-roledescription="line mark container"><path aria-label="Period: Jan; Value: 12; Category: A" role="graphics-symbol" aria-roledescription="line mark" d="M58.5,55.909L175.5,0" stroke="#3E63DD" stroke-width="2.5"/></g></g><path class="foreground" aria-hidden="true" d="" display="none"/></g><g transform="translate(0,0)"><path class="background" aria-hidden="true" d="M0,0h234v123h-234Z"/><g><g class="mark-line role-mark marks" role="graphics-object" aria-roledescription="line mark container"><path aria-label="Period: Jan; Value: 18; Category: B" role="graphics-symbol" aria-roledescription="line mark" d="M58.5,22.364L175.5,39.136" stroke="#B98E00" stroke-width="2.5"/></g></g><path class="foreground" aria-hidden="true" d="" display="none"/></g></g><g class="mark-group role-legend" role="graphics-symbol" aria-roledescription="legend" aria-label="Symbol legend titled 'Category' for stroke color with 2 values: A, B"><g transform="translate(252,0)"><path class="background" aria-hidden="true" d="M0,0h70v40h-70Z" pointer-events="none"/><g><g class="mark-group role-legend-entry"><g transform="translate(0,16)"><path class="background" aria-hidden="true" d="M0,0h0v0h0Z" pointer-events="none"/><g><g class="mark-group role-scope" role="graphics-object" aria-roledescription="group mark container"><g transform="translate(0,0)"><path class="background" aria-hidden="true" d="M0,0h24v11h-24Z" pointer-events="none" opacity="1"/><g><g class="mark-symbol role-legend-symbol" pointer-events="none"><path transform="translate(6,6)" d="M-5,0L5,0" stroke="#3E63DD" stroke-width="1.5" opacity="1"/></g><g class="mark-text role-legend-label" pointer-events="none"><text text-anchor="start" transform="translate(16,9)" font-family="Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="10px" fill="#525252" opacity="1">A</text></g></g><path class="foreground" aria-hidden="true" d="" pointer-events="none" display="none"/></g><g transform="translate(0,13)"><path class="background" aria-hidden="true" d="M0,0h24v11h-24Z" pointer-events="none" opacity="1"/><g><g class="mark-symbol role-legend-symbol" pointer-events="none"><path transform="translate(6,6)" d="M-5,0L5,0" stroke="#B98E00" stroke-width="1.5" opacity="1"/></g><g class="mark-text role-legend-label" pointer-events="none"><text text-anchor="start" transform="translate(16,9)" font-family="Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="10px" fill="#525252" opacity="1">B</text></g></g><path class="foreground" aria-hidden="true" d="" pointer-events="none" display="none"/></g></g></g><path class="foreground" aria-hidden="true" d="" pointer-events="none" display="none"/></g></g><g class="mark-text role-legend-title" pointer-events="none"><text text-anchor="start" transform="translate(0,9)" font-family="Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="11px" font-weight="bold" fill="#0A0A0A" opacity="1">Category</text></g></g><path class="foreground" aria-hidden="true" d="" pointer-events="none" display="none"/></g></g><g class="mark-group role-title"><g transform="translate(-38,-30.5)"><path class="background" aria-hidden="true" d="M0,0h0v0h0Z" pointer-events="none"/><g><g class="mark-text role-title-text" role="graphics-symbol" aria-roledescription="title" aria-label="Title text 'Line chart sample'" pointer-events="none"><text text-anchor="start" transform="translate(0,19)" font-family="Geist, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif" font-size="24px" font-weight="600" fill="#0A0A0A" opacity="1">Line chart sample</text></g></g><path class="foreground" aria-hidden="true" d="" pointer-events="none" display="none"/></g></g></g><path class="foreground" aria-hidden="true" d="" display="none"/></g></g></g></svg>
svgNarrow string | undefined no
svgWide string | undefined no
svgDark string | undefined no
svgDarkNarrow string | undefined no
svgDarkWide string | undefined no
svgHc string | undefined no
svgHcNarrow string | undefined no
svgHcWide string | undefined no
title string | undefined no Line chart sample
description string | undefined no Four authored sample observations, grouped into category A and category B series.
width number | undefined no 360
height number | undefined no 200

Slots

default

Events

none

States

unbound, rendered

Accessibility

Role
img
How it gets its name
aria-label on [data-oods-component="VizLinePreview"]

Keyboard

The contract lists no keyboard behaviour.

Obligations in the contract

  • Static shared-renderer SVG is preserved inside a named image figure; absence is explicitly disclosed.

Recipe over VizAreaPreview's static SVG mechanism. VizLinePreview uses the existing line renderer; this is no new chart family. No pixels are invented when svg is absent.

Tokens

The token roles this component reads.

  • surface.panel
  • text.body

Readiness

The evidence recorded for this component, with its label.

proven-in-generated-apps: catalog_list gives this label when generated React and Vue apps in the runtime sweep that ships with this version both use the component. That sweep was measured on the published 0.4.1, not on this version.

Readiness evidence
EvidenceReactVue
stateimplemented-evidence-completeimplemented-evidence-complete
versioned contractpassedpassed
target implementationpassedpassed
package exportpassedpassed
public declarationpassedpassed
dependency closurepassedpassed
framework scenariopassedpassed
accessibilityverifiedverified
interactionnot-applicablenot-applicable
visual themesverifiedverified

VizLinePreview displays an authored chart input or rendered static SVG and owns no focusable control or consumer action.

Use your own

You can replace this component with your own React or Vue component. Map it, and generated code imports yours at the exact version you name. A contract report, run in a real browser, lists what your component met, what it didn't, and what wasn't checked.

The component_map call, with the parts in angle brackets yours to fill:

{
  "action": "create",
  "apply": true,
  "externalSystem": "<your design system>",
  "externalComponent": "<YourVizLinePreview>",
  "oodsTraits": [
    "MarkLine"
  ],
  "substitution": {
    "component": "VizLinePreview",
    "react": {
      "package": "<your-package>/react",
      "version": "<exact version>",
      "export": "<YourVizLinePreview>"
    },
    "vue": {
      "package": "<your-package>/vue",
      "version": "<exact version>",
      "export": "<YourVizLinePreview>"
    }
  }
}

How this page was made

Generated at build from the published data, each source with the hash of what was read. The page's manifest.

  • Contract: @oods/component-contracts@0.10.1 componentContracts.VizLinePreview sha256:cbf7cb7d2d5b…
  • Documented example: @oods/component-contracts@0.10.1 sharedScenarios VizLinePreview sha256:5f6745308ee6…
  • Catalog entry (catalog_list): generated/0.10.1/system/catalog.json VizLinePreview sha256:ffa8762b6496…
  • React readiness: @oods/components-react@0.10.1 readiness VizLinePreview sha256:1df229b8c9d4…
  • Vue readiness: @oods/components-vue@0.10.1 readiness VizLinePreview sha256:5c6065731f5d…
  • Prop types: generated/0.10.1/components/prop-types.json VizLinePreview sha256:520236e3f821…