4 <meta http-equiv=
"X-UA-Compatible" content=
"IE=EmulateIE7; IE=EmulateIE9">
5 <title>Charting combinations
</title>
7 <script type=
"text/javascript" src=
"../excanvas.js"></script>
9 <script type=
"text/javascript" src=
"../dygraph-dev.js"></script>
10 <script type=
"text/javascript" src=
"data.js"></script>
11 <style type=
"text/css">
28 <p>There are four options which fundmanentally change the behavior of the standard plotter:
</p>
30 <li> errorBars / customBars
36 <p>This page exhaustively checks all combinations of these parameters.
</p>
38 <div id=container
> </div>
39 <div id=results
> <b>Valid combinations
</b>
44 <script type=
"text/javascript">
45 // NOTE: this is an odd thing to do; dygraphs should really throw here.
46 console.warn = function(x) {
50 var bools = [false, true];
51 var containerDiv = document.getElementById(
"container");
52 var resultsList = document.getElementById(
"results-ol");
53 bools.forEach(function(errorBars) {
54 var data_csv = errorBars ? NoisyData() : data();
55 bools.forEach(function(stepPlot) {
56 bools.forEach(function(fillGraph) {
57 bools.forEach(function(strokePattern) {
59 if (errorBars) title_parts.push('errorBars');
60 if (stepPlot) title_parts.push('stepPlot');
61 if (fillGraph) title_parts.push('fillGraph');
62 if (strokePattern) title_parts.push('strokePattern');
63 var title = title_parts.join(', ');
64 if (!title) title = '(none)';
66 var title_h2 = document.createElement('h2');
67 title_h2.innerHTML = title;
68 containerDiv.appendChild(title_h2);
70 var div = document.createElement('div');
71 div.className = 'chart';
72 containerDiv.appendChild(div);
75 var g = new Dygraph(div, data_csv, {
79 strokePattern: strokePattern ? Dygraph.DASHED_LINE : null
82 resultsList.innerHTML += '
<li> ' + title + '
</li>';