I was playing around with smoothiecharts and designed a chart for graphing tagpro ping:
var chart = new SmoothieChart({millisPerPixel:66,maxValueScale:1.19,interpolation:'step',scaleSmoothing:0.308,grid:
{fillStyle:'rgba(0,0,0,0.29)',millisPerLine:10000,verticalSections:6,borderVisible:false},labels:
{fillStyle:'rgba(255,255,255,0.42)',precision:0},minValue:0}),
canvas = document.getElementById('smoothie-chart'),
series = new TimeSeries();
chart.addTimeSeries(series, {lineWidth:2,strokeStyle:'#0080ff'});
chart.streamTo(canvas, 941);
I'm not sure how to input data (tagpro.ping.current) to the chart and how to place it on the canvas. I have basically zero experience with JS. I tried this a while ago and fucked up horribly. Any help would be appreciated. Thanks :)