프로젝트
GitHub에서 보기
joewalnes/smoothie
소개
Smoothie Charts: 실시간 스트리밍 데이터를 부드럽게 표시하는 JavaScript 차트
데이터 및 분석측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- -1
- in 1 month
- 0
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
OriginalSmoothie 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.
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)
관련 프로젝트 살펴보기
불러오는 중…