MCPcopy Index your code
hub / github.com/joewalnes/smoothie

github.com/joewalnes/smoothie @1.36.1

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.36.1 ↗ · + Follow
21 symbols 25 edges 3 files 2 documented · 10% 3 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

npm version

Smoothie Charts is a really small charting library designed for live streaming data. I built it to reduce the headaches I was getting from watching charts jerkily updating every second.

See http://smoothiecharts.org


Getting Started


Example

Given a <canvas>:

<canvas id="chart" width="400" height="100"></canvas>

Create a time series and chart with code resembling:

// Create a time series
var series = new TimeSeries();

// Find the canvas
var canvas = document.getElementById('chart');

// Create the chart
var chart = new SmoothieChart();
chart.addTimeSeries(series, { strokeStyle: 'rgba(0, 255, 0, 1)' });
chart.streamTo(canvas, 500);

Then, add data to your time series and it will be displayed on the chart:

// Randomly add a data point every 500ms
setInterval(function() {
    series.append(Date.now(), Math.random() * 10000);
}, 500);

Questions

For help, use the Smoothie Charts Google Group.


License (MIT)

Extension points exported contracts — how you extend this code

ITimeSeriesOptions (Interface)
(no doc)
smoothie.d.ts
ITimeSeriesPresentationOptions (Interface)
(no doc)
smoothie.d.ts
IGridOptions (Interface)
(no doc)
smoothie.d.ts
ILabelOptions (Interface)
(no doc)
smoothie.d.ts
ITitleOptions (Interface)
(no doc)
smoothie.d.ts

Core symbols most depended-on inside this repo

timeToXPosition
called by 4
smoothie.js
initHost
called by 4
examples/server-load.js
pad2
called by 3
smoothie.js
addRandomValueToDataSets
called by 2
examples/server-load.js
TimeSeries
called by 0
smoothie.js
SmoothieChart
called by 0
smoothie.js
requestAnimationFrame
called by 0
smoothie.js
cancelAnimationFrame
called by 0
smoothie.js

Shape

Function 9
Interface 8
Class 4

Languages

TypeScript100%

Modules by API surface

smoothie.d.ts12 symbols
smoothie.js6 symbols
examples/server-load.js3 symbols

For agents

$ claude mcp add smoothie \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact