outfielding-jqplot-rails 1.0.5 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (36) hide show
  1. data/CHANGELOG.md +5 -0
  2. data/README-jqplot.txt +2 -2
  3. data/changes-jqplot.txt +440 -0
  4. data/copyright-jqplot.txt +56 -0
  5. data/lib/outfielding-jqplot-rails/version.rb +1 -1
  6. data/vendor/assets/javascripts/jqplot-plugins/jqplot.BezierCurveRenderer.js +3 -2
  7. data/vendor/assets/javascripts/jqplot-plugins/jqplot.barRenderer.js +8 -5
  8. data/vendor/assets/javascripts/jqplot-plugins/jqplot.blockRenderer.js +2 -2
  9. data/vendor/assets/javascripts/jqplot-plugins/jqplot.bubbleRenderer.js +2 -2
  10. data/vendor/assets/javascripts/jqplot-plugins/jqplot.canvasAxisLabelRenderer.js +4 -4
  11. data/vendor/assets/javascripts/jqplot-plugins/jqplot.canvasAxisTickRenderer.js +16 -6
  12. data/vendor/assets/javascripts/jqplot-plugins/jqplot.canvasOverlay.js +3 -3
  13. data/vendor/assets/javascripts/jqplot-plugins/jqplot.canvasTextRenderer.js +3 -3
  14. data/vendor/assets/javascripts/jqplot-plugins/jqplot.categoryAxisRenderer.js +4 -4
  15. data/vendor/assets/javascripts/jqplot-plugins/jqplot.ciParser.js +2 -2
  16. data/vendor/assets/javascripts/jqplot-plugins/jqplot.cursor.js +3 -3
  17. data/vendor/assets/javascripts/jqplot-plugins/jqplot.dateAxisRenderer.js +30 -26
  18. data/vendor/assets/javascripts/jqplot-plugins/jqplot.donutRenderer.js +3 -3
  19. data/vendor/assets/javascripts/jqplot-plugins/jqplot.dragable.js +2 -2
  20. data/vendor/assets/javascripts/jqplot-plugins/jqplot.enhancedLegendRenderer.js +2 -2
  21. data/vendor/assets/javascripts/jqplot-plugins/jqplot.funnelRenderer.js +4 -4
  22. data/vendor/assets/javascripts/jqplot-plugins/jqplot.highlighter.js +3 -3
  23. data/vendor/assets/javascripts/jqplot-plugins/jqplot.logAxisRenderer.js +7 -2
  24. data/vendor/assets/javascripts/jqplot-plugins/jqplot.mekkoAxisRenderer.js +3 -3
  25. data/vendor/assets/javascripts/jqplot-plugins/jqplot.mekkoRenderer.js +4 -4
  26. data/vendor/assets/javascripts/jqplot-plugins/jqplot.meterGaugeRenderer.js +7 -7
  27. data/vendor/assets/javascripts/jqplot-plugins/jqplot.mobile.js +2 -2
  28. data/vendor/assets/javascripts/jqplot-plugins/jqplot.ohlcRenderer.js +4 -4
  29. data/vendor/assets/javascripts/jqplot-plugins/jqplot.pieRenderer.js +3 -3
  30. data/vendor/assets/javascripts/jqplot-plugins/jqplot.pointLabels.js +6 -8
  31. data/vendor/assets/javascripts/jqplot-plugins/jqplot.pyramidAxisRenderer.js +4 -4
  32. data/vendor/assets/javascripts/jqplot-plugins/jqplot.pyramidGridRenderer.js +2 -2
  33. data/vendor/assets/javascripts/jqplot-plugins/jqplot.pyramidRenderer.js +2 -2
  34. data/vendor/assets/javascripts/jqplot-plugins/jqplot.trendline.js +3 -3
  35. data/vendor/assets/javascripts/jquery.jqplot.js +74 -60
  36. metadata +4 -2
@@ -2,8 +2,8 @@
2
2
  * jqPlot
3
3
  * Pure JavaScript plotting plugin using jQuery
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2009-2013 Chris Leonello
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -2,8 +2,8 @@
2
2
  * jqPlot
3
3
  * Pure JavaScript plotting plugin using jQuery
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2009-2013 Chris Leonello
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -1,9 +1,9 @@
1
- /**
1
+ /**
2
2
  * jqPlot
3
3
  * Pure JavaScript plotting plugin using jQuery
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2009-2013 Chris Leonello
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -102,7 +102,7 @@
102
102
  // spacing between funnel sections in pixels.
103
103
  this.sectionMargin = 6;
104
104
  // prop: fill
105
- // true or false, wether to fill the areas.
105
+ // true or false, whether to fill the areas.
106
106
  this.fill = true;
107
107
  // prop: shadowOffset
108
108
  // offset of the shadow from the area and offset of
@@ -2,8 +2,8 @@
2
2
  * jqPlot
3
3
  * Pure JavaScript plotting plugin using jQuery
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2009-2013 Chris Leonello
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -44,7 +44,7 @@
44
44
  * To disable the tooltip, set "showTooltip" to false.
45
45
  *
46
46
  * You can control what data is displayed in the tooltip with various
47
- * options. The "tooltipAxes" option controls wether the x, y or both
47
+ * options. The "tooltipAxes" option controls whether the x, y or both
48
48
  * data values are displayed.
49
49
  *
50
50
  * Some chart types (e.g. hi-low-close) have more than one y value per
@@ -2,8 +2,8 @@
2
2
  * jqPlot
3
3
  * Pure JavaScript plotting plugin using jQuery
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2009-2013 Chris Leonello
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -192,6 +192,11 @@
192
192
  // rmax = rmax*(1+adj);
193
193
  // }
194
194
 
195
+ // Handle case where a data value was zero
196
+ if (rmin === 0) {
197
+ rmin = 1;
198
+ }
199
+
195
200
  var order = Math.round(Math.log(rmin)/Math.LN10);
196
201
 
197
202
  if (this.tickOptions == null || !this.tickOptions.formatString) {
@@ -2,8 +2,8 @@
2
2
  * jqPlot
3
3
  * Pure JavaScript plotting plugin using jQuery
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2009-2013 Chris Leonello
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -91,7 +91,7 @@
91
91
  // call it within the scope of the axis.
92
92
  this.renderer.createTicks.call(this);
93
93
  // fill a div with axes labels in the right direction.
94
- // Need to pregenerate each axis to get it's bounds and
94
+ // Need to pregenerate each axis to get its bounds and
95
95
  // position it and the labels correctly on the plot.
96
96
  var dim=0;
97
97
  var temp;
@@ -2,8 +2,8 @@
2
2
  * jqPlot
3
3
  * Pure JavaScript plotting plugin using jQuery
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2009-2013 Chris Leonello
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -33,7 +33,7 @@
33
33
  * Class: $.jqplot.MekkoRenderer
34
34
  * Draws a Mekko style chart which shows 3 dimensional data on a 2 dimensional graph.
35
35
  * the <$.jqplot.MekkoAxisRenderer> should be used with mekko charts. The mekko renderer
36
- * overrides the default legend renderer with it's own $.jqplot.MekkoLegendRenderer
36
+ * overrides the default legend renderer with its own $.jqplot.MekkoLegendRenderer
37
37
  * which allows more flexibility to specify number of rows and columns in the legend.
38
38
  *
39
39
  * Data is specified per bar in the chart. You can specify data as an array of y values, or as
@@ -434,4 +434,4 @@
434
434
 
435
435
  $.jqplot.preInitHooks.push(preInit);
436
436
 
437
- })(jQuery);
437
+ })(jQuery);
@@ -2,8 +2,8 @@
2
2
  * jqPlot
3
3
  * Pure JavaScript plotting plugin using jQuery
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2009-2013 Chris Leonello
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -94,7 +94,7 @@
94
94
  this.needleColor = "#C3D3E5";
95
95
  // prop: tickColor
96
96
  // color of the tick marks around the gauge.
97
- this.tickColor = "989898";
97
+ this.tickColor = "#989898";
98
98
  // prop: ringWidth
99
99
  // width of the ring around the gauge. Auto computed by default.
100
100
  this.ringWidth = null;
@@ -358,7 +358,7 @@
358
358
 
359
359
 
360
360
 
361
- // pre-draw so can get it's dimensions.
361
+ // pre-draw so can get its dimensions.
362
362
  if (this.label) {
363
363
  this._labelElem = $('<div class="jqplot-meterGauge-label" style="position:absolute;">'+this.label+'</div>');
364
364
  this.canvas._elem.after(this._labelElem);
@@ -719,7 +719,7 @@
719
719
  l = this._tickPoints[i][0] - ew * (this._tickPoints[i][2]-Math.PI)/Math.PI - tp * Math.cos(this._tickPoints[i][2]);
720
720
  t = this._tickPoints[i][1] - eh/2 + eh/2 * Math.pow(Math.abs((Math.sin(this._tickPoints[i][2]))), 0.5) + tp/3 * Math.pow(Math.abs((Math.sin(this._tickPoints[i][2]))), 0.5) ;
721
721
  // t = this._tickPoints[i][1] - eh/2 - eh/2 * Math.sin(this._tickPoints[i][2]) - tp/2 * Math.sin(this._tickPoints[i][2]);
722
- elem.css({left:l, top:t});
722
+ elem.css({left:l, top:t, color: this.tickColor});
723
723
  dim = ew*Math.cos(this._tickPoints[i][2]) + eh*Math.sin(Math.PI/2+this._tickPoints[i][2]/2);
724
724
  maxdim = (dim > maxdim) ? dim : maxdim;
725
725
  }
@@ -739,7 +739,7 @@
739
739
 
740
740
  else if (this.label && this.labelPosition == 'bottom') {
741
741
  var l = this._center[0] + this.canvas._offsets.left - this._labelElem.outerWidth(true)/2;
742
- var t = this._center[1] + this.canvas._offsets.top + this.innerPad + + this.ringWidth + this.padding + this.labelHeightAdjust;
742
+ var t = this._center[1] + this.canvas._offsets.top + this.innerPad + this.ringWidth + this.padding + this.labelHeightAdjust;
743
743
  this._labelElem.css({left:l, top:t});
744
744
 
745
745
  }
@@ -1027,4 +1027,4 @@
1027
1027
 
1028
1028
  })(jQuery);
1029
1029
 
1030
-
1030
+
@@ -2,8 +2,8 @@
2
2
  * jqplot.jquerymobile plugin
3
3
  * jQuery Mobile virtual event support.
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2011 Takashi Okamoto
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -2,8 +2,8 @@
2
2
  * jqPlot
3
3
  * Pure JavaScript plotting plugin using jQuery
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2009-2013 Chris Leonello
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -65,7 +65,7 @@
65
65
  *
66
66
  */
67
67
  $.jqplot.OHLCRenderer = function(){
68
- // subclass line renderer to make use of some of it's methods.
68
+ // subclass line renderer to make use of some of its methods.
69
69
  $.jqplot.LineRenderer.call(this);
70
70
  // prop: candleStick
71
71
  // true to render chart as candleStick.
@@ -370,4 +370,4 @@
370
370
 
371
371
  //$.jqplot.preInitHooks.push($.jqplot.OHLCRenderer.checkOptions);
372
372
 
373
- })(jQuery);
373
+ })(jQuery);
@@ -2,8 +2,8 @@
2
2
  * jqPlot
3
3
  * Pure JavaScript plotting plugin using jQuery
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2009-2013 Chris Leonello
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -88,7 +88,7 @@
88
88
  // angular spacing between pie slices in degrees.
89
89
  this.sliceMargin = 0;
90
90
  // prop: fill
91
- // true or false, wether to fil the slices.
91
+ // true or false, whether to fil the slices.
92
92
  this.fill = true;
93
93
  // prop: shadowOffset
94
94
  // offset of the shadow from the slice and offset of
@@ -2,8 +2,8 @@
2
2
  * jqPlot
3
3
  * Pure JavaScript plotting plugin using jQuery
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2009-2013 Chris Leonello
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -155,7 +155,7 @@
155
155
  labelIdx = p.seriesLabelIndex;
156
156
  }
157
157
  else if (this.renderer.constructor === $.jqplot.BarRenderer && this.barDirection === 'horizontal') {
158
- labelIdx = 0;
158
+ labelIdx = (this._plotData[0].length < 3) ? 0 : this._plotData[0].length -1;
159
159
  }
160
160
  else {
161
161
  labelIdx = (this._plotData.length === 0) ? 0 : this._plotData[0].length -1;
@@ -294,13 +294,11 @@
294
294
  for (var i=0, l=p._labels.length; i < l; i++) {
295
295
  var label = p._labels[i];
296
296
 
297
- if (p.hideZeros && parseInt(p._labels[i], 10) == 0) {
298
- label = '';
297
+ if (label == null || (p.hideZeros && parseInt(label, 10) == 0)) {
298
+ continue;
299
299
  }
300
300
 
301
- if (label != null) {
302
- label = p.formatter(p.formatString, label);
303
- }
301
+ label = p.formatter(p.formatString, label);
304
302
 
305
303
  helem = document.createElement('div');
306
304
  p._elems[i] = $(helem);
@@ -2,8 +2,8 @@
2
2
  * jqPlot
3
3
  * Pure JavaScript plotting plugin using jQuery
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2009-2013 Chris Leonello
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -111,7 +111,7 @@
111
111
  // call it within the scope of the axis.
112
112
  this.renderer.createTicks.call(this, plot);
113
113
  // fill a div with axes labels in the right direction.
114
- // Need to pregenerate each axis to get it's bounds and
114
+ // Need to pregenerate each axis to get its bounds and
115
115
  // position it and the labels correctly on the plot.
116
116
  var dim=0;
117
117
  var temp;
@@ -725,4 +725,4 @@
725
725
 
726
726
  ticks = null;
727
727
  };
728
- })(jQuery);
728
+ })(jQuery);
@@ -2,8 +2,8 @@
2
2
  * jqPlot
3
3
  * Pure JavaScript plotting plugin using jQuery
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2009-2013 Chris Leonello
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -2,8 +2,8 @@
2
2
  * jqPlot
3
3
  * Pure JavaScript plotting plugin using jQuery
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2009-2013 Chris Leonello
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -2,8 +2,8 @@
2
2
  * jqPlot
3
3
  * Pure JavaScript plotting plugin using jQuery
4
4
  *
5
- * Version: 1.0.5
6
- * Revision: 1122+
5
+ * Version: 1.0.7
6
+ * Revision: 1224
7
7
  *
8
8
  * Copyright (c) 2009-2013 Chris Leonello
9
9
  * jqPlot is currently available for use in all personal or commercial projects
@@ -60,7 +60,7 @@
60
60
  // Either 'exponential', 'exp', or 'linear'.
61
61
  this.type = 'linear';
62
62
  // prop: shadow
63
- // true or false, wether or not to show the shadow.
63
+ // true or false, whether or not to show the shadow.
64
64
  this.shadow = true;
65
65
  // prop: markerRenderer
66
66
  // Renderer to use to draw markers on the line.
@@ -5,8 +5,8 @@
5
5
  *
6
6
  * About: Version
7
7
  *
8
- * version: 1.0.5
9
- * revision: 1122+
8
+ * version: 1.0.7
9
+ * revision: 1224
10
10
  *
11
11
  * About: Copyright & License
12
12
  *
@@ -244,8 +244,8 @@
244
244
  }
245
245
  };
246
246
 
247
- $.jqplot.version = "1.0.5";
248
- $.jqplot.revision = "1122+";
247
+ $.jqplot.version = "1.0.7";
248
+ $.jqplot.revision = "1224";
249
249
 
250
250
  $.jqplot.targetCounter = 1;
251
251
 
@@ -511,7 +511,7 @@
511
511
  /**
512
512
  * Class: Axis
513
513
  * An individual axis object. Cannot be instantiated directly, but created
514
- * by the Plot oject. Axis properties can be set or overriden by the
514
+ * by the Plot object. Axis properties can be set or overridden by the
515
515
  * options passed in from the user.
516
516
  *
517
517
  */
@@ -848,7 +848,7 @@
848
848
  /**
849
849
  * Class: Legend
850
850
  * Legend object. Cannot be instantiated directly, but created
851
- * by the Plot oject. Legend properties can be set or overriden by the
851
+ * by the Plot object. Legend properties can be set or overridden by the
852
852
  * options passed in from the user.
853
853
  */
854
854
  function Legend(options) {
@@ -1077,7 +1077,7 @@
1077
1077
  /**
1078
1078
  * Class: Title
1079
1079
  * Plot Title object. Cannot be instantiated directly, but created
1080
- * by the Plot oject. Title properties can be set or overriden by the
1080
+ * by the Plot object. Title properties can be set or overridden by the
1081
1081
  * options passed in from the user.
1082
1082
  *
1083
1083
  * Parameters:
@@ -1091,7 +1091,7 @@
1091
1091
  // text of the title;
1092
1092
  this.text = text;
1093
1093
  // prop: show
1094
- // wether or not to show the title
1094
+ // whether or not to show the title
1095
1095
  this.show = true;
1096
1096
  // prop: fontFamily
1097
1097
  // css font-family spec for the text.
@@ -1140,7 +1140,7 @@
1140
1140
  /**
1141
1141
  * Class: Series
1142
1142
  * An individual data series object. Cannot be instantiated directly, but created
1143
- * by the Plot oject. Series properties can be set or overriden by the
1143
+ * by the Plot object. Series properties can be set or overridden by the
1144
1144
  * options passed in from the user.
1145
1145
  */
1146
1146
  function Series(options) {
@@ -1159,7 +1159,7 @@
1159
1159
  // > }
1160
1160
 
1161
1161
  // prop: show
1162
- // wether or not to draw the series.
1162
+ // whether or not to draw the series.
1163
1163
  this.show = true;
1164
1164
  // prop: xaxis
1165
1165
  // which x axis to use with this series, either 'xaxis' or 'x2axis'.
@@ -1233,16 +1233,16 @@
1233
1233
  // see <$.jqplot.MarkerRenderer>.
1234
1234
  this.markerOptions = {};
1235
1235
  // prop: showLine
1236
- // wether to actually draw the line or not. Series will still be renderered, even if no line is drawn.
1236
+ // whether to actually draw the line or not. Series will still be renderered, even if no line is drawn.
1237
1237
  this.showLine = true;
1238
1238
  // prop: showMarker
1239
- // wether or not to show the markers at the data points.
1239
+ // whether or not to show the markers at the data points.
1240
1240
  this.showMarker = true;
1241
1241
  // prop: index
1242
1242
  // 0 based index of this series in the plot series array.
1243
1243
  this.index;
1244
1244
  // prop: fill
1245
- // true or false, wether to fill under lines or in bars.
1245
+ // true or false, whether to fill under lines or in bars.
1246
1246
  // May not be implemented in all renderers.
1247
1247
  this.fill = false;
1248
1248
  // prop: fillColor
@@ -1369,7 +1369,7 @@
1369
1369
  this.markerOptions.show = this.showMarker;
1370
1370
  }
1371
1371
  this.showMarker = this.markerOptions.show;
1372
- // the markerRenderer is called within it's own scaope, don't want to overwrite series options!!
1372
+ // the markerRenderer is called within its own scope, don't want to overwrite series options!!
1373
1373
  this.markerRenderer.init(this.markerOptions);
1374
1374
  };
1375
1375
 
@@ -1524,15 +1524,15 @@
1524
1524
  * Object representing the grid on which the plot is drawn. The grid in this
1525
1525
  * context is the area bounded by the axes, the area which will contain the series.
1526
1526
  * Note, the series are drawn on their own canvas.
1527
- * The Grid object cannot be instantiated directly, but is created by the Plot oject.
1528
- * Grid properties can be set or overriden by the options passed in from the user.
1527
+ * The Grid object cannot be instantiated directly, but is created by the Plot object.
1528
+ * Grid properties can be set or overridden by the options passed in from the user.
1529
1529
  */
1530
1530
  function Grid() {
1531
1531
  $.jqplot.ElemContainer.call(this);
1532
1532
  // Group: Properties
1533
1533
 
1534
1534
  // prop: drawGridlines
1535
- // wether to draw the gridlines on the plot.
1535
+ // whether to draw the gridlines on the plot.
1536
1536
  this.drawGridlines = true;
1537
1537
  // prop: gridLineColor
1538
1538
  // color of the grid lines.
@@ -1553,7 +1553,7 @@
1553
1553
  // True to draw border around grid.
1554
1554
  this.drawBorder = true;
1555
1555
  // prop: shadow
1556
- // wether to show a shadow behind the grid.
1556
+ // whether to show a shadow behind the grid.
1557
1557
  this.shadow = true;
1558
1558
  // prop: shadowAngle
1559
1559
  // shadow angle in degrees
@@ -1741,7 +1741,7 @@
1741
1741
  // animation in these situations can cause problems.
1742
1742
  this.animateReplot = false;
1743
1743
  // prop: axes
1744
- // up to 4 axes are supported, each with it's own options,
1744
+ // up to 4 axes are supported, each with its own options,
1745
1745
  // See <Axis> for axis specific options.
1746
1746
  this.axes = {xaxis: new Axis('xaxis'), yaxis: new Axis('yaxis'), x2axis: new Axis('x2axis'), y2axis: new Axis('y2axis'), y3axis: new Axis('y3axis'), y4axis: new Axis('y4axis'), y5axis: new Axis('y5axis'), y6axis: new Axis('y6axis'), y7axis: new Axis('y7axis'), y8axis: new Axis('y8axis'), y9axis: new Axis('y9axis'), yMidAxis: new Axis('yMidAxis')};
1747
1747
  this.baseCanvas = new $.jqplot.GenericCanvas();
@@ -1757,7 +1757,8 @@
1757
1757
  this.data = [];
1758
1758
  // prop: dataRenderer
1759
1759
  // A callable which can be used to preprocess data passed into the plot.
1760
- // Will be called with 2 arguments, the plot data and a reference to the plot.
1760
+ // Will be called with 3 arguments: the plot data, a reference to the plot,
1761
+ // and the value of dataRendererOptions.
1761
1762
  this.dataRenderer;
1762
1763
  // prop: dataRendererOptions
1763
1764
  // Options that will be passed to the dataRenderer.
@@ -1820,7 +1821,6 @@
1820
1821
  this.legend = new Legend();
1821
1822
  // prop: noDataIndicator
1822
1823
  // Options to set up a mock plot with a data loading indicator if no data is specified.
1823
- this.negativeSeriesColors = $.jqplot.config.defaultNegativeColors;
1824
1824
  this.noDataIndicator = {
1825
1825
  show: false,
1826
1826
  indicator: 'Loading Data...',
@@ -1839,16 +1839,19 @@
1839
1839
  }
1840
1840
  }
1841
1841
  };
1842
+ // prop: negativeSeriesColors
1843
+ // colors to use for portions of the line below zero.
1844
+ this.negativeSeriesColors = $.jqplot.config.defaultNegativeColors;
1842
1845
  // container to hold all of the merged options. Convienence for plugins.
1843
1846
  this.options = {};
1844
1847
  this.previousSeriesStack = [];
1845
- // Namespece to hold plugins. Generally non-renderer plugins add themselves to here.
1848
+ // Namespace to hold plugins. Generally non-renderer plugins add themselves to here.
1846
1849
  this.plugins = {};
1847
1850
  // prop: series
1848
1851
  // Array of series object options.
1849
1852
  // see <Series> for series specific options.
1850
1853
  this.series = [];
1851
- // array of series indicies. Keep track of order
1854
+ // array of series indices. Keep track of order
1852
1855
  // which series canvases are displayed, lowest
1853
1856
  // to highest, back to front.
1854
1857
  this.seriesStack = [];
@@ -1860,7 +1863,7 @@
1860
1863
  this.seriesColors = $.jqplot.config.defaultColors;
1861
1864
  // prop: sortData
1862
1865
  // false to not sort the data passed in by the user.
1863
- // Many bar, stakced and other graphs as well as many plugins depend on
1866
+ // Many bar, stacked and other graphs as well as many plugins depend on
1864
1867
  // having sorted data.
1865
1868
  this.sortData = true;
1866
1869
  // prop: stackSeries
@@ -1887,7 +1890,7 @@
1887
1890
  // Mostly used to test if plot has never been dran (=0), has been successfully drawn
1888
1891
  // into a visible container once (=1) or draw more than once into a visible container.
1889
1892
  // Can use this in tests to see if plot has been visibly drawn at least one time.
1890
- // After plot has been visibly drawn once, it generally doesn't need redrawn if its
1893
+ // After plot has been visibly drawn once, it generally doesn't need redrawing if its
1891
1894
  // container is hidden and shown.
1892
1895
  this._drawCount = 0;
1893
1896
  // sum of y values for all series in plot.
@@ -2924,7 +2927,7 @@
2924
2927
  for (i=0, l=$.jqplot.preDrawHooks.length; i<l; i++) {
2925
2928
  $.jqplot.preDrawHooks[i].call(this);
2926
2929
  }
2927
- for (i=0, l=this.preDrawHooks.length; i<l; i++) {
2930
+ for (i=0, l=this.preDrawHooks.hooks.length; i<l; i++) {
2928
2931
  this.preDrawHooks.hooks[i].apply(this, this.preDrawSeriesHooks.args[i]);
2929
2932
  }
2930
2933
  // create an underlying canvas to be used for special features.
@@ -4082,6 +4085,7 @@
4082
4085
 
4083
4086
 
4084
4087
 
4088
+
4085
4089
  // class: $.jqplot.AxisLabelRenderer
4086
4090
  // Renderer to place labels on the axes.
4087
4091
  $.jqplot.AxisLabelRenderer = function(options) {
@@ -4090,7 +4094,7 @@
4090
4094
  // name of the axis associated with this tick
4091
4095
  this.axis;
4092
4096
  // prop: show
4093
- // wether or not to show the tick (mark and label).
4097
+ // whether or not to show the tick (mark and label).
4094
4098
  this.show = true;
4095
4099
  // prop: label
4096
4100
  // The text or html for the label.
@@ -4159,10 +4163,10 @@
4159
4163
  // name of the axis associated with this tick
4160
4164
  this.axis;
4161
4165
  // prop: showMark
4162
- // wether or not to show the mark on the axis.
4166
+ // whether or not to show the mark on the axis.
4163
4167
  this.showMark = true;
4164
4168
  // prop: showGridline
4165
- // wether or not to draw the gridline on the grid at this tick.
4169
+ // whether or not to draw the gridline on the grid at this tick.
4166
4170
  this.showGridline = true;
4167
4171
  // prop: isMinorTick
4168
4172
  // if this is a minor tick.
@@ -4176,12 +4180,12 @@
4176
4180
  // will be stoked above and below axis, so total length will be twice this.
4177
4181
  this.markSize = 6;
4178
4182
  // prop: show
4179
- // wether or not to show the tick (mark and label).
4183
+ // whether or not to show the tick (mark and label).
4180
4184
  // Setting this to false requires more testing. It is recommended
4181
4185
  // to set showLabel and showMark to false instead.
4182
4186
  this.show = true;
4183
4187
  // prop: showLabel
4184
- // wether or not to show the label.
4188
+ // whether or not to show the label.
4185
4189
  this.showLabel = true;
4186
4190
  this.label = null;
4187
4191
  this.value = null;
@@ -6142,7 +6146,7 @@
6142
6146
  // call it within the scope of the axis.
6143
6147
  this.renderer.createTicks.call(this, plot);
6144
6148
  // fill a div with axes labels in the right direction.
6145
- // Need to pregenerate each axis to get it's bounds and
6149
+ // Need to pregenerate each axis to get its bounds and
6146
6150
  // position it and the labels correctly on the plot.
6147
6151
  var dim=0;
6148
6152
  var temp;
@@ -7399,7 +7403,7 @@
7399
7403
  // Group: Properties
7400
7404
 
7401
7405
  // prop: show
7402
- // wether or not to show the marker.
7406
+ // whether or not to show the marker.
7403
7407
  this.show = true;
7404
7408
  // prop: style
7405
7409
  // One of diamond, circle, square, x, plus, dash, filledDiamond, filledCircle, filledSquare
@@ -7414,7 +7418,7 @@
7414
7418
  // color of marker. Will be set to color of series by default on init.
7415
7419
  this.color = '#666666';
7416
7420
  // prop: shadow
7417
- // wether or not to draw a shadow on the line
7421
+ // whether or not to draw a shadow on the line
7418
7422
  this.shadow = true;
7419
7423
  // prop: shadowAngle
7420
7424
  // Shadow angle in degrees
@@ -7625,7 +7629,7 @@
7625
7629
  this.depth = 3;
7626
7630
  this.strokeStyle = 'rgba(0,0,0,0.1)';
7627
7631
  // prop: isarc
7628
- // wether the shadow is an arc or not.
7632
+ // whether the shadow is an arc or not.
7629
7633
  this.isarc = false;
7630
7634
 
7631
7635
  $.extend(true, this, options);
@@ -7727,7 +7731,7 @@
7727
7731
  // whether to fill the shape.
7728
7732
  this.fill = false;
7729
7733
  // prop: isarc
7730
- // wether the shadow is an arc or not.
7734
+ // whether the shadow is an arc or not.
7731
7735
  this.isarc = false;
7732
7736
  // prop: fillRect
7733
7737
  // true to draw shape as a filled rectangle.
@@ -9328,7 +9332,7 @@
9328
9332
  * under both the MIT and GPL version 2.0 licenses. This means that you can
9329
9333
  * choose the license that best suits your project and use it accordingly.
9330
9334
  *
9331
- * <p>Ken's origianl Date Instance Methods and copyright notice:</p>
9335
+ * <p>Ken's original Date Instance Methods and copyright notice:</p>
9332
9336
  * <pre>
9333
9337
  * Ken Snyder (ken d snyder at gmail dot com)
9334
9338
  * 2008-09-10
@@ -9616,7 +9620,7 @@
9616
9620
 
9617
9621
  jsDate.prototype.getIsoWeek = function() {
9618
9622
  var d = this.proxy;
9619
- var woy = d.getWeekOfYear();
9623
+ var woy = this.getWeekOfYear();
9620
9624
  var dow1_1 = (new Date('' + d.getFullYear() + '/1/1')).getDay();
9621
9625
  // First week is 01 and not 00 as in the case of %U and %W,
9622
9626
  // so we add 1 to the final result except if day 1 of the year
@@ -9957,16 +9961,16 @@
9957
9961
  },
9958
9962
 
9959
9963
  'fr': {
9960
- monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
9961
- monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun','Jul','Aoû','Sep','Oct','Nov','Déc'],
9964
+ monthNames: ['Janvier','Février','Mars','Avril','Mai','Juin','Juillet','Août','Septembre','Octobre','Novembre','Décembre'],
9965
+ monthNamesShort: ['Jan','Fév','Mar','Avr','Mai','Jun','Jul','Aoû','Sep','Oct','Nov','Déc'],
9962
9966
  dayNames: ['Dimanche','Lundi','Mardi','Mercredi','Jeudi','Vendredi','Samedi'],
9963
9967
  dayNamesShort: ['Dim','Lun','Mar','Mer','Jeu','Ven','Sam'],
9964
9968
  formatString: '%Y-%m-%d %H:%M:%S'
9965
9969
  },
9966
9970
 
9967
9971
  'de': {
9968
- monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],
9969
- monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'],
9972
+ monthNames: ['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember'],
9973
+ monthNamesShort: ['Jan','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez'],
9970
9974
  dayNames: ['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],
9971
9975
  dayNamesShort: ['So','Mo','Di','Mi','Do','Fr','Sa'],
9972
9976
  formatString: '%Y-%m-%d %H:%M:%S'
@@ -9981,18 +9985,18 @@
9981
9985
  },
9982
9986
 
9983
9987
  'ru': {
9984
- monthNames: ['Январь','Февраль','Март','Ð?прель','Май','Июнь','Июль','Ð?вгуÑ?Ñ‚','СентÑ?брь','ОктÑ?брь','Ð?оÑ?брь','Декабрь'],
9985
- monthNamesShort: ['Янв','Фев','Мар','Ð?пр','Май','Июн','Июл','Ð?вг','Сен','Окт','Ð?оÑ?','Дек'],
9986
- dayNames: ['воÑ?креÑ?енье','понедельник','вторник','Ñ?реда','четверг','пÑ?тница','Ñ?уббота'],
9987
- dayNamesShort: ['вÑ?к','пнд','втр','Ñ?рд','чтв','птн','Ñ?бт'],
9988
+ monthNames: ['Январь','Февраль','Март','Апрель','Май','Июнь','Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь'],
9989
+ monthNamesShort: ['Янв','Фев','Мар','Апр','Май','Июн','Июл','Авг','Сен','Окт','Ноя','Дек'],
9990
+ dayNames: ['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'],
9991
+ dayNamesShort: ['вск','пнд','втр','срд','чтв','птн','сбт'],
9988
9992
  formatString: '%Y-%m-%d %H:%M:%S'
9989
9993
  },
9990
9994
 
9991
9995
  'ar': {
9992
- monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'آذار', 'حزيران','تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'],
9996
+ monthNames: ['كانون الثاني', 'شباط', 'آذار', 'نيسان', 'آذار', 'حزيران','تموز', 'آب', 'أيلول', 'تشرين الأول', 'تشرين الثاني', 'كانون الأول'],
9993
9997
  monthNamesShort: ['1','2','3','4','5','6','7','8','9','10','11','12'],
9994
- dayNames: ['السبت', 'الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة'],
9995
- dayNamesShort: ['سبت', 'أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة'],
9998
+ dayNames: ['السبت', 'الأحد', 'الاثنين', 'الثلاثاء', 'الأربعاء', 'الخميس', 'الجمعة'],
9999
+ dayNamesShort: ['سبت', 'أحد', 'اثنين', 'ثلاثاء', 'أربعاء', 'خميس', 'جمعة'],
9996
10000
  formatString: '%Y-%m-%d %H:%M:%S'
9997
10001
  },
9998
10002
 
@@ -10010,8 +10014,15 @@
10010
10014
  dayNames: ['Domingo','Segunda-feira','Ter&ccedil;a-feira','Quarta-feira','Quinta-feira','Sexta-feira','S&aacute;bado'],
10011
10015
  dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','S&aacute;b'],
10012
10016
  formatString: '%Y-%m-%d %H:%M:%S'
10013
- }
10017
+ },
10014
10018
 
10019
+ 'pl': {
10020
+ monthNames: ['Styczeń','Luty','Marzec','Kwiecień','Maj','Czerwiec','Lipiec','Sierpień','Wrzesień','Październik','Listopad','Grudzień'],
10021
+ monthNamesShort: ['Sty', 'Lut', 'Mar', 'Kwi', 'Maj', 'Cze','Lip', 'Sie', 'Wrz', 'Paź', 'Lis', 'Gru'],
10022
+ dayNames: ['Niedziela', 'Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota'],
10023
+ dayNamesShort: ['Ni', 'Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'Sb'],
10024
+ formatString: '%Y-%m-%d %H:%M:%S'
10025
+ }
10015
10026
 
10016
10027
  };
10017
10028
 
@@ -10976,15 +10987,18 @@
10976
10987
  var method = ['toExponential', 'toFixed', 'toPrecision']['efg'.indexOf(type.toLowerCase())];
10977
10988
  var textTransform = ['toString', 'toUpperCase']['eEfFgG'.indexOf(type) % 2];
10978
10989
  var number_str = Math.abs(number)[method](precision);
10979
- number_str = thousandSeparation ? thousand_separate(number_str): number_str;
10990
+
10991
+ // Apply the decimal mark properly by splitting the number by the
10992
+ // decimalMark, applying thousands separator, and then placing it
10993
+ // back in.
10994
+ var parts = number_str.toString().split('.');
10995
+ parts[0] = thousandSeparation ? thousand_separate(parts[0]) : parts[0];
10996
+ number_str = parts.join($.jqplot.sprintf.decimalMark);
10997
+
10980
10998
  value = prefix + number_str;
10981
10999
  var justified = justify(value, prefix, leftJustify, minWidth, zeroPad, htmlSpace)[textTransform]();
10982
-
10983
- if ($.jqplot.sprintf.decimalMark !== '.' && $.jqplot.sprintf.decimalMark !== $.jqplot.sprintf.thousandsSeparator) {
10984
- return justified.replace(/\./, $.jqplot.sprintf.decimalMark);
10985
- } else {
10986
- return justified;
10987
- }
11000
+
11001
+ return justified;
10988
11002
  }
10989
11003
  case 'p':
10990
11004
  case 'P':
@@ -10997,7 +11011,7 @@
10997
11011
  var prefix = number < 0 ? '-' : positivePrefix;
10998
11012
 
10999
11013
  var parts = String(Number(Math.abs(number)).toExponential()).split(/e|E/);
11000
- var sd = (parts[0].indexOf('.') != -1) ? parts[0].length - 1 : parts[0].length;
11014
+ var sd = (parts[0].indexOf('.') != -1) ? parts[0].length - 1 : String(number).length;
11001
11015
  var zeros = (parts[1] < 0) ? -parts[1] - 1 : 0;
11002
11016
 
11003
11017
  if (Math.abs(number) < 1) {
@@ -11053,7 +11067,7 @@
11053
11067
  return $.jqplot.getSignificantFigures(number).digitsRight;
11054
11068
  };
11055
11069
 
11056
- })(jQuery);
11070
+
11057
11071
 
11058
11072
 
11059
11073
  var backCompat = $.uiBackCompat !== false;
@@ -11378,4 +11392,4 @@
11378
11392
 
11379
11393
  };
11380
11394
 
11381
-
11395
+ })(jQuery);