Baike.dev
All toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
S

smoothie

> 编程语言
Open source

Smoothie Charts: smooooooth JavaScript charts for realtime streaming data

2.3K stars0 likes2 views
WebsiteGitHub

About

Smoothie Charts: smooooooth JavaScript charts for realtime streaming data

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

  • Hello world example
  • Another example (server CPU usage)
  • Another example (responsive layout)
  • Tutorial
  • Interactive builder
  • Just the JavaScript: smoothie.js
  • Full distribution (docs and examples): zip or tgz
  • Repository: git clone [email protected]:joewalnes/smoothie.git
  • Bower: bower install smoothie
  • NPM: npm install smoothie
  • Yarn: yarn add smoothie
  • Introducing Smoothie Charts (blog entry)

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)

  • Joe Walnes
  • Drew Noakes

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

JavaScriptchartchart-componentcharting-libraryjavascript

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category编程语言
PricingOpen source

> Related tools

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言