<script type="text/javascript" src="../excanvas.js"></script>
<![endif]-->
<script type="text/javascript" src="../dygraph-dev.js"></script>
+ <style type="text/css">
+ body {
+ line-height: 150%;
+ }
+ </style>
</head>
<body style="max-width: 700px;">
<p>Gridlines and axis labels make charts easier to understand. They give
title: 'Four series on different scales',
xlabel: 'Date',
ylabel: 'Count',
- yValueFormatter: function(y, opts, series_name) {
- var unscaled = y * scales[series_name];
- if (series_name == 'sine wave') return unscaled.toPrecision(4);
- return unscaled;
+ axes : {
+ y : {
+ valueFormatter: function(y, opts, series_name) {
+ var unscaled = y * scales[series_name];
+ if (series_name == 'sine wave') return unscaled.toPrecision(4);
+ return unscaled;
+ }
+ }
}
}
);