var cpuc00smoothie = new SmoothieChart({ grid: { strokeStyle: 'rgb(125, 0, 0)', fillStyle: 'rgb(60, 0, 0)', lineWidth: 1, millisPerLine: 250, verticalSections: 6 } });
cpuc00smoothie.addTimeSeries(cpulinec00l01, { strokeStyle: 'rgb(0, 255, 0)', fillStyle: 'rgba(0, 255, 0, 0.4)', lineWidth: 3 });
cpuc00smoothie.addTimeSeries(cpulinec00l02, { strokeStyle: 'rgb(0, 0, 0)', fillStyle: 'rgba(0, 0, 0, 0.0)', lineWidth: 3 });
cpuc00smoothie.addTimeSeries(cpulinec00l03, { strokeStyle: 'rgb(0, 0, 0)', fillStyle: 'rgba(0, 0, 0, 0.0)', lineWidth: 3 });
cpuc00smoothie.streamTo(document.getElementById("cpu00canvas"), 1000);
Note I've added 3 time series - the 0 value, the 100% value and the actual value. The 0 and 100% value have their rgba set to be 0, 0, 0, 0.0 - meaning invisible.
Then, when I add the values, I add 3 values instead of just one : 0, 100 and the actual value
cpulinec00l02.append(new Date().getTime(), 100);
cpulinec00l03.append(new Date().getTime(), 0);
cpulinec00l01.append(new Date().getTime(), result.cpu00);
Hope this helps.