g = new Dygraph(document.getElementById("graph"),
"X,R,S,T\n" +
"1,0,3,18\n" +
"2,2,6,16\n" +
"3,4,8,14\n" +
"4,6,9,12\n" +
"5,8,9,13\n" +
"6,10,8,14\n" +
"7,12,6,15\n" +
"8,14,3,16\n",
{
legend: 'always',
animatedZooms: true,
title: 'Dygraphs multi-axis demo',
T : {
axis : { }
}
});
<!-- You may set style: "width: ...; height: ..." to size the chart -->
<div id="graph"></div>
/*
Relevant CSS classes include:
Labels on the X & Y axes:
.dygraph-axis-label
.dygraph-axis-label-x
.dygraph-axis-label-y
.dygraph-axis-label-y2
Chart labels, see http://dygraphs.com/tests/styled-chart-labels.html
.dygraph-title
.dygraph-xlabel
.dygraph-ylabel
.dygraph-y2label
The legend, see http://dygraphs.com/tests/series-highlight.html
.dygraph-legend
*/
.dygraph-title {
color: gray;
}