From bf5b5f4d1fcf098d97a596749ef662b5f8649c72 Mon Sep 17 00:00:00 2001 From: Dan Vanderkam Date: Tue, 23 Mar 2010 06:41:47 -0700 Subject: [PATCH] tests divs --- docs/index.html | 64 ++++++++++++++++++++++++++++----------------------------- docs/style.css | 4 ++++ 2 files changed, 36 insertions(+), 32 deletions(-) diff --git a/docs/index.html b/docs/index.html index 3f6bfb6..bf18315 100644 --- a/docs/index.html +++ b/docs/index.html @@ -38,7 +38,7 @@
  • Performance Test
  • Filled Chart
  • Fractions
  • -
  • Visibility
  • +
  • Visibility
  • Labels in a DIV
  • Numeric Axis
  • Dotted Points
  • @@ -491,7 +491,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) boolean false Usually, dygraphs will use the range of the data plus some padding to set the range of the y-axis. If this option is set, the y-axis will always include zero, typically as the lowest value. This can be used to avoid exaggerating the variance in the data. -
    Tests: no-range numeric-gviz small-range-zero +
    Tests: no-range numeric-gviz small-range-zero
    @@ -499,7 +499,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) integer >= 1 1 Number of days over which to average data. Discussed extensively above. -
    Tests: demo two-series noise +
    Tests: demo two-series noise
    @@ -507,7 +507,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) boolean false If the rolling average period text box should be shown. -
    Tests: callback crosshair fractions isolated-points numeric-gviz underlay-callback +
    Tests: callback crosshair fractions isolated-points numeric-gviz underlay-callback
    @@ -515,7 +515,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) ['red', '#00FF00'] List of colors for the data series. These can be of the form "#AABBCC" or "rgb(255,100,200)" or "yellow", etc. If not specified, equally-spaced points around a color wheel are used. -
    Tests: color-visibility demo +
    Tests: color-visibility demo
    @@ -524,7 +524,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) false Should the area underneath the graph be filled? This option is not compatible with error bars. -
    Tests: fillGraph +
    Tests: fillGraph
    @@ -535,7 +535,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) been constructed, you can access and modify the visibility of each series using the visibility and setVisibility methods. -
    Tests: visibility color-visibility +
    Tests: visibility color-visibility
    @@ -543,7 +543,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) 0.0 - 1.0 1.0 If colors is not specified, saturation of the automatically-generated data series colors. -
    Tests: none +
    Tests: none
    @@ -551,7 +551,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) float (0.0 — 1.0) 1.0 If colors is not specified, value of the data series colors, as in hue/saturation/value. (0.0-1.0, default 0.5) -
    Tests: none +
    Tests: none
    @@ -559,7 +559,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) function(e, date){
        alert(date);
    }
    null A function to call when a data point is clicked. The function should take two arguments, the event object for the click and the date that was clicked. (default null) -
    Tests: callback +
    Tests: callback
    @@ -567,7 +567,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) function(minDate,
    maxDate){}
    null A function to call when the zoom window is changed (either by zooming in or out). minDate and maxDate are milliseconds since epoch. -
    Tests: callback +
    Tests: callback
    @@ -575,7 +575,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) integer 1 Width of the data lines. This can be used to increase the contrast or some graphs. -
    Tests: none +
    Tests: none
    @@ -583,14 +583,14 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) [
      Date.parse('2006-01-01'),
      (new Date()).valueOf()
    ]
    Full range of the
    input is shown
    Initially zoom in on a section of the graph. Is of the form [earliest, latest], where earliest/latest are milliseconds since epoch. -
    Tests: dateWindow link-interaction +
    Tests: dateWindow link-interaction
    valueRange [10, 110] Explicitly set the vertical range of the graph to [low, high]. -
    Tests: none +
    Tests: none
    @@ -598,7 +598,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) boolean false Put <br/> between lines in the label string. Often used in conjunction with labelsDiv. -
    Tests: customLabel demo +
    Tests: customLabel demo
    @@ -606,7 +606,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) document.
    getElementById('foo')
    null Show data labels in an external div, rather than on the graph. -
    Tests: demo label-div +
    Tests: demo label-div
    @@ -614,7 +614,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) true false Show K/M/B for thousands/millions/billions on y-axis. -
    Tests: demo labelsKMB no-range +
    Tests: demo labelsKMB no-range
    @@ -623,7 +623,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) false Show k/M/G for kilo/Mega/Giga on y-axis. This is different than labelsKMB in that it uses base 2, not 10. -
    Tests: labelsKMB +
    Tests: labelsKMB
    @@ -631,7 +631,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) 250 Width (in pixels) of the div which shows information on the currently-highlighted points. -
    Tests: customLabel +
    Tests: customLabel
    @@ -639,7 +639,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) {} null Additional styles to apply to the currently-highlighted points div. For example, { 'font-weight': 'bold' } will make the labels bold. -
    Tests: border customLabel +
    Tests: border customLabel
    @@ -647,7 +647,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) integer 3 The size in pixels of the dot drawn over highlighted points. -
    Tests: grid_dot +
    Tests: grid_dot
    @@ -655,7 +655,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) boolean false Draw a small dot at each point, in addition to a line going through the point. This makes the individual data points easier to see, but can increase visual clutter in the chart. -
    Tests: draw-points +
    Tests: draw-points
    @@ -663,7 +663,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) interger 1 The size of the dot to draw on each point in pixels (see drawPoints). A dot is always drawn when a point is "isolated", i.e. there is a missing point on either side of it. This also controls the size of those dots. -
    Tests: none +
    Tests: none
    @@ -671,7 +671,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) integer 60 Number of pixels to require between each x- and y-label. Larger values will yield a sparser axis with fewer ticks. -
    Tests: spacing +
    Tests: spacing
    @@ -683,7 +683,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) integer Width (in pixels) of the x- and y-axis labels. -
    Tests: customLabel +
    Tests: customLabel
    @@ -695,7 +695,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) integer 14 Size of the font (in pixels) to use in the axis labels, both x- and y-axis. -
    Tests: none +
    Tests: none
    @@ -703,7 +703,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) integer Number of pixels to leave blank at the right edge of the Dygraph. This makes it easier to highlight the right-most data point. -
    Tests: none +
    Tests: none
    @@ -711,7 +711,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) boolean false Does the data contain standard deviations? Setting this to true alters the input format (see above). -
    Tests: noise customLabel draw-points fillGraph fractions +
    Tests: noise customLabel draw-points fillGraph fractions
    @@ -719,7 +719,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) integer When errorBars is set, shade this many standard deviations above/below each point. -
    Tests: none +
    Tests: none
    @@ -727,7 +727,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) boolean false When set, attempt to parse each cell in the CSV file as "a/b", where a and b are integers. The ratio will be plotted. This allows computation of Wilson confidence intervals (see below). -
    Tests: fractions +
    Tests: fractions
    @@ -735,7 +735,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) boolean true Use in conjunction with the "fractions" option. Instead of plotting +/- N standard deviations, dygraphs will compute a Wilson confidence interval and plot that. This has more reasonable behavior for ratios close to 0 or 1. -
    Tests: none +
    Tests: none
    @@ -743,7 +743,7 @@ perl -ne 'BEGIN{print "Month,Nominal,Real\n"} chomp; ($m,$cpi,$low,$close,$high) boolean false When set, parse each CSV cell as "low;middle;high". Error bars will be drawn for each point between low and high, with the series itself going through middle. -
    Tests: custom-bars zero-series +
    Tests: custom-bars zero-series
    diff --git a/docs/style.css b/docs/style.css index 6edc799..4b7d4e1 100644 --- a/docs/style.css +++ b/docs/style.css @@ -55,3 +55,7 @@ font-size: 30px; pre { padding: 0 10px; } + +.tests { +font-size: 80%; +} -- 2.7.4