dcos-dygraphs
Version:
dygraphs is a fast, flexible open source JavaScript charting library.
21 lines (20 loc) • 553 B
JavaScript
/*global Gallery,Dygraph,data */
Gallery.register(
'border',
{
name: "Border test",
title: 'Graph stays within the border',
setup: function(parent) {
parent.innerHTML =
"<div id='bordered' style='border: 1px solid red; width:600px; height:300px;'></div>";
},
run: function() {
new Dygraph(document.getElementById('bordered'), data,
{
labelsDivStyles: { border: '1px solid black' },
title: 'Chart Title',
xlabel: 'Date',
ylabel: 'Temperature (F)'
});
}
});