Skip to content

Instantly share code, notes, and snippets.

View cstefanache's full-sized avatar
⚔️
Focusing

Cornel Stefanache cstefanache

⚔️
Focusing
View GitHub Profile
@cstefanache
cstefanache / README.md
Last active July 15, 2019 07:24 — forked from boeric/README.md
D3 Based Real Time Chart

D3 Based Real Time Chart

The real time chart is a resuable Javascript component that accepts real time data. The chart's time domain is moving with the passage of time, which means that any data placed in the chart eventually will age out and leave the chart. In addition to the main chart, the component also manages a "focus" window with a viewport (d3.brush) that can moved and sized to view an arbitrary portion of the time series data.

The component adheres to the pattern described in Towards Reusable Chart.

The following options are currently supported:

  • width and height in pixels (Number)
  • border (Boolean)