dcos-dygraphs
Version:
dygraphs is a fast, flexible open source JavaScript charting library.
21 lines (20 loc) • 476 B
JavaScript
/*global Gallery,Dygraph,data */
/*global NoisyData */
Gallery.register(
'resize',
{
name: 'Resizable Graph',
title: 'Resize the window. The dygraph will resize with it.',
setup: function(parent) {
parent.innerHTML = "<div id='div_g'>";
},
run: function() {
new Dygraph(
document.getElementById("div_g"),
NoisyData, {
rollPeriod: 7,
errorBars: true
}
);
}
});