Graflume · Alpha

Smith · Basic implementation · Common features

Transform normalized complex impedance into reflection coordinates over resistance circles and reactance curves. Start with only the required data and family encoding. Expand the code to run the same example. Use the tabs to compare header, tooltip, theme, legend, highlight, callout, selection, view controls, and accessibility one feature at a time.

Chart family · Advanced families

Smith

Transform normalized complex impedance into reflection coordinates over resistance circles and reactance curves.

Quick API
smith()
Browser snapshot
graflume/complete
mark
smith
Presets
1

Basic implementation

The smallest runnable chart

Start with only the required data and family encoding. Expand the code to run the same example.

Basic example

Transform normalized complex impedance into reflection coordinates over resistance circles and reactance curves.

StatusLoading

  • minimal-implementation
Graflume.smith() Canvas 2D
Control help

Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.

Use Tab to reach a control and Enter or Space to activate it. With the chart focused, use plus and minus to zoom and arrow keys to pan.

Auto placement compares perimeter candidates and avoids the plot, legend, and other callouts when possible. Explicit placement is preserved with only necessary safety correction. Callout text wraps safely inside the bubble. Long unbroken tokens are visually shortened within the line budget, while the complete source text remains available to assistive technology.

Loading

Browser API · Portable schema

Browser API

Graflume.smith()

const data = [
  {
    "imaginary": -1.376,
    "real": 0.12
  },
  {
    "imaginary": -1.265,
    "real": 0.31
  },
  {
    "imaginary": -1.108,
    "real": 0.5
  },
  {
    "imaginary": -0.912,
    "real": 0.69
  },
  {
    "imaginary": -0.682,
    "real": 0.88
  },
  {
    "imaginary": -0.429,
    "real": 1.07
  },
  {
    "imaginary": -0.159,
    "real": 1.26
  },
  {
    "imaginary": 0.116,
    "real": 1.45
  },
  {
    "imaginary": 0.387,
    "real": 1.64
  },
  {
    "imaginary": 0.644,
    "real": 1.83
  },
  {
    "imaginary": 0.878,
    "real": 2.02
  },
  {
    "imaginary": 1.08,
    "real": 2.21
  },
  {
    "imaginary": 1.243,
    "real": 2.4
  },
  {
    "imaginary": 1.362,
    "real": 2.59
  },
  {
    "imaginary": 1.431,
    "real": 2.78
  }
];

const options = {
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "options": {
      "mode": "line"
    }
  },
  "width": "container",
  "x": {
    "field": "real",
    "title": "Normalized resistance",
    "type": "quantitative"
  },
  "y": {
    "field": "imaginary",
    "title": "Normalized reactance",
    "type": "quantitative"
  }
};

Graflume.smith('#chart', data, options);

Portable schema

ChartSpec 0.1 · options

{
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "options": {
      "mode": "line"
    }
  },
  "width": "container",
  "x": {
    "field": "real",
    "title": "Normalized resistance",
    "type": "quantitative"
  },
  "y": {
    "field": "imaginary",
    "title": "Normalized reactance",
    "type": "quantitative"
  }
}

Common features

Features shared by every chart

Use the tabs to compare header, tooltip, theme, legend, highlight, callout, selection, view controls, and accessibility one feature at a time. Hover over a data mark. On supported charts, move the pointer along the axis to see the nearest value. All exact values are available in the table below.

Header

Add a chart title and supporting description inside the visualization.

StatusLoading

  • header
Graflume.smith() Canvas 2D
Control help

Zoom and pan inspect the rendered surface without changing data axes or values. When playback controls are available, they move through real steps in the order each unique value first appears in the source data.

Use Tab to reach a control and Enter or Space to activate it. With the chart focused, use plus and minus to zoom and arrow keys to pan.

Auto placement compares perimeter candidates and avoids the plot, legend, and other callouts when possible. Explicit placement is preserved with only necessary safety correction. Callout text wraps safely inside the bubble. Long unbroken tokens are visually shortened within the line budget, while the complete source text remains available to assistive technology.

Loading

Browser API · Portable schema

Browser API

Graflume.smith()

const data = [
  {
    "imaginary": -1.376,
    "real": 0.12
  },
  {
    "imaginary": -1.265,
    "real": 0.31
  },
  {
    "imaginary": -1.108,
    "real": 0.5
  },
  {
    "imaginary": -0.912,
    "real": 0.69
  },
  {
    "imaginary": -0.682,
    "real": 0.88
  },
  {
    "imaginary": -0.429,
    "real": 1.07
  },
  {
    "imaginary": -0.159,
    "real": 1.26
  },
  {
    "imaginary": 0.116,
    "real": 1.45
  },
  {
    "imaginary": 0.387,
    "real": 1.64
  },
  {
    "imaginary": 0.644,
    "real": 1.83
  },
  {
    "imaginary": 0.878,
    "real": 2.02
  },
  {
    "imaginary": 1.08,
    "real": 2.21
  },
  {
    "imaginary": 1.243,
    "real": 2.4
  },
  {
    "imaginary": 1.362,
    "real": 2.59
  },
  {
    "imaginary": 1.431,
    "real": 2.78
  }
];

const options = {
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "options": {
      "mode": "line"
    }
  },
  "title": {
    "subtitle": "Smith chart uses runnable data and options to demonstrate normalized impedance to reflection transform; resistance/reactance grid.",
    "text": "Smith"
  },
  "width": "container",
  "x": {
    "field": "real",
    "title": "Normalized resistance",
    "type": "quantitative"
  },
  "y": {
    "field": "imaginary",
    "title": "Normalized reactance",
    "type": "quantitative"
  }
};

Graflume.smith('#chart', data, options);

Portable schema

ChartSpec 0.1 · options

{
  "axes": {
    "x": false,
    "y": false
  },
  "height": 620,
  "locale": "en",
  "mark": {
    "options": {
      "mode": "line"
    }
  },
  "title": {
    "subtitle": "Smith chart uses runnable data and options to demonstrate normalized impedance to reflection transform; resistance/reactance grid.",
    "text": "Smith"
  },
  "width": "container",
  "x": {
    "field": "real",
    "title": "Normalized resistance",
    "type": "quantitative"
  },
  "y": {
    "field": "imaginary",
    "title": "Normalized reactance",
    "type": "quantitative"
  }
}