X-Git-Url: https://adrianiainlam.tk/git/?a=blobdiff_plain;f=generate-documentation.py;h=d73fcc49f1d491fa0e048d24b0208534de6ec717;hb=88a17b3f3b73348cfe2d986b01751814f7c8724b;hp=1a66689371506fc59d0c4c180bb28e5af8757914;hpb=c02097ab8767f4977d97964a092923baddc7ca08;p=dygraphs.git diff --git a/generate-documentation.py b/generate-documentation.py index 1a66689..d73fcc4 100755 --- a/generate-documentation.py +++ b/generate-documentation.py @@ -80,52 +80,36 @@ if debug_tests: sys.exit(0) # Extract a labels list. labels = [] -for nu, opt in docs.iteritems(): +for _, opt in docs.iteritems(): for label in opt['labels']: if label not in labels: labels.append(label) -print """ - - - Dygraphs Options Reference - - - - +print """ + + + + + + """ print """ -\n\n' print """ -
+

Options Reference

Dygraphs tries to do a good job of displaying your data without any further configuration. But inevitably, you're going to want to tinker. Dygraphs provides a rich set of options for configuring its display and behavior.

@@ -146,6 +130,9 @@ print """ new_option2: value2 }); + +

Some options can be set on a per-axis and per-series basis. See the docs on per-axis and per-series options to learn how to do this. The options which may be set in this way are marked as such on this page.

+

And, without further ado, here's the complete list of options:

""" @@ -217,10 +204,11 @@ Some callbacks take a point argument. Its properties are:
  • xval/yval: The data coordinates of the point (with dates/times as millis since epoch)
  • canvasx/canvasy: The canvas coordinates at which the point is drawn.
  • name: The name of the data series to which the point belongs
  • +
  • idx: The row number of the point in the data set
  • -
    - - +
    + + """ # This page was super-helpful: