Andrew Kuchling avatar Andrew Kuchling committed bec875c

Describe more options

Comments (0)

Files changed (1)


          // be assigned to the series.  If there are more series than colors, colors
          // will wrap around and start at the beginning again.
+    // when fillToZero is enabled, this sets the colors to use for portions of the line below zero.
+    negativeSeriesColors: [ "#498991", "#C08840", "#9F9274", "#546D61", "#646C4A", "#6F6621",
+                            "#6E3F5F", "#4F64B0", "#A89050", "#C45923", "#187399", "#945381", 
+                            "#959E5C", "#C7AF7B", "#478396", "#907294"], 
     sortData : true,    // if true, will sort the data passed in by the user.
     stackSeries: false, // if true, will create a stack plot.  
                         // Currently supported by line and bar graphs.
         show: true,
+    animate : false,        // if true, the series will be animated on initial drawing.
+                            // This support is renderer-dependent; the renderer must support animation.
+    animateReplot : false,  // if true, the series will be animated after every replot() call.
+                            // Use with caution!  Replots can happen very frequently under
+                            // certain circumstances (e.g. resizing, dragging points) and
+                            // animation in these situations can cause problems.
+    captureRightClick : false,   // if true, right-click events are intercepted and a jqplotRightClick
+                                 // event will be fired.  This will also block the context menu.
+    dataRenderer : undefined, // A callable which can be used to preprocess data passed into the plot.
+                              // Will be called with 3 arguments: the plot data, a reference to the plot,
+			      // and the value of dataRendererOptions.
+    dataRendererOptions : undefined,    // Options that will be passed to the dataRenderer,
+                                        // if that option is supplied.  Can be of any type.
+    gridData : [],  // array of grid coordinates corresponding to the data points; 
+                    // normally jqPlot will calculate this for you.
     axesDefaults: {
-        show: false,    // whether or not to renderer the axis.  Determined automatically.
+        show: false,    // whether or not to render the axis.  Determined automatically.
         min: null,      // minimum numerical value of the axis.  Determined automatically.
         max: null,      // maximum numerical value of the axis.  Determined automatically.
         pad: 1.2,       // a factor multiplied by the data range on the axis to give the 
                                     // CanvasGridRenderer takes no additional options.
+    // Size of the grid containing the plot.
+    gridDimensions: {
+        height: null,
+        width: null
+    },
+    // Padding to apply around the grid containing the plot.
+    gridPadding: {
+        top: null,
+        bottom: null,
+        left: null,
+        right: null
+    },
+    noDataIndicator : object, // For setting up a mock plot with a data loading indicator if
+                              // no data is specified.  Must have .show=true, .axes, and a
+			      // .indicator string that will be displayed.
     // Plugin and renderer options.
     // BarRenderer. 
 Options to be described:
-    animate
-    animateReplot
-    captureRightClick
-    clear
-    dataRenderer
-    fillBetween
-    forceTickAt0
-    gridData
-    gridDimensions
-    gridPadding
-    height, width
-    negativeSeriesColors
-    noDataIndicator
-    preventJqPlotSeriesDrawTrigger
-    toImage: x_offset, y_offset, backgroundColor
     .min, .max (?)
+    forceTickAt0 : false,   // If true, a tick will always be drawn at 0.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.