smoothie

Smoothie Charts: smooooooth JavaScript charts for realtime streaming data

Github星跟踪图

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)

主要指标

概览
名称与所有者joewalnes/smoothie
主编程语言JavaScript
编程语言JavaScript (语言数: 2)
平台
许可证Other
所有者活动
创建于2010-08-10 09:54:54
推送于2023-01-08 10:09:30
最后一次提交2023-01-08 14:05:37
发布数55
最新版本名称1.36.1 (发布于 )
第一版名称v1.2 (发布于 )
用户参与
星数2.3k
关注者数68
派生数233
提交数318
已启用问题?
问题数77
打开的问题数19
拉请求数55
打开的拉请求数9
关闭的拉请求数13
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?