outfielding-jqplot-rails 1.0.7 → 1.0.8
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/changes-jqplot.txt +18 -0
- data/lib/outfielding-jqplot-rails/version.rb +1 -1
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.BezierCurveRenderer.js +2 -2
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.barRenderer.js +26 -25
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.blockRenderer.js +2 -2
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.bubbleRenderer.js +6 -6
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.canvasAxisLabelRenderer.js +4 -4
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.canvasAxisTickRenderer.js +6 -6
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.canvasOverlay.js +159 -3
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.canvasTextRenderer.js +2 -2
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.categoryAxisRenderer.js +14 -8
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.ciParser.js +3 -3
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.cursor.js +4 -4
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.dateAxisRenderer.js +4 -4
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.donutRenderer.js +6 -6
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.dragable.js +2 -2
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.enhancedLegendRenderer.js +3 -3
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.funnelRenderer.js +6 -6
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.highlighter.js +10 -10
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.logAxisRenderer.js +4 -4
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.mekkoAxisRenderer.js +2 -2
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.mekkoRenderer.js +2 -2
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.meterGaugeRenderer.js +6 -7
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.mobile.js +2 -2
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.ohlcRenderer.js +2 -2
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.pieRenderer.js +6 -6
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.pointLabels.js +2 -2
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.pyramidAxisRenderer.js +2 -2
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.pyramidGridRenderer.js +2 -2
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.pyramidRenderer.js +3 -3
- data/vendor/assets/javascripts/jqplot-plugins/jqplot.trendline.js +2 -2
- data/vendor/assets/javascripts/jquery.jqplot.js +47 -31
- data/vendor/assets/stylesheets/jquery.jqplot.css +8 -8
- metadata +2 -2
@@ -2,8 +2,8 @@
|
|
2
2
|
* jqPlot
|
3
3
|
* Pure JavaScript plotting plugin using jQuery
|
4
4
|
*
|
5
|
-
* Version: 1.0.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
7
7
|
*
|
8
8
|
* Copyright (c) 2009-2013 Chris Leonello
|
9
9
|
* jqPlot is currently available for use in all personal or commercial projects
|
@@ -703,7 +703,7 @@
|
|
703
703
|
plot.target.trigger(evt1, ins);
|
704
704
|
if (plot.series[ins[0]].highlightMouseOver && !(ins[0] == plot.plugins.donutRenderer.highlightedSeriesIndex && ins[1] == plot.series[ins[0]]._highlightedPoint)) {
|
705
705
|
var evt = jQuery.Event('jqplotDataHighlight');
|
706
|
-
|
706
|
+
evt.which = ev.which;
|
707
707
|
evt.pageX = ev.pageX;
|
708
708
|
evt.pageY = ev.pageY;
|
709
709
|
plot.target.trigger(evt, ins);
|
@@ -720,7 +720,7 @@
|
|
720
720
|
var ins = [neighbor.seriesIndex, neighbor.pointIndex, neighbor.data];
|
721
721
|
if (plot.series[ins[0]].highlightMouseDown && !(ins[0] == plot.plugins.donutRenderer.highlightedSeriesIndex && ins[1] == plot.series[ins[0]]._highlightedPoint)) {
|
722
722
|
var evt = jQuery.Event('jqplotDataHighlight');
|
723
|
-
|
723
|
+
evt.which = ev.which;
|
724
724
|
evt.pageX = ev.pageX;
|
725
725
|
evt.pageY = ev.pageY;
|
726
726
|
plot.target.trigger(evt, ins);
|
@@ -743,7 +743,7 @@
|
|
743
743
|
if (neighbor) {
|
744
744
|
var ins = [neighbor.seriesIndex, neighbor.pointIndex, neighbor.data];
|
745
745
|
var evt = jQuery.Event('jqplotDataClick');
|
746
|
-
|
746
|
+
evt.which = ev.which;
|
747
747
|
evt.pageX = ev.pageX;
|
748
748
|
evt.pageY = ev.pageY;
|
749
749
|
plot.target.trigger(evt, ins);
|
@@ -758,7 +758,7 @@
|
|
758
758
|
unhighlight(plot);
|
759
759
|
}
|
760
760
|
var evt = jQuery.Event('jqplotDataRightClick');
|
761
|
-
|
761
|
+
evt.which = ev.which;
|
762
762
|
evt.pageX = ev.pageX;
|
763
763
|
evt.pageY = ev.pageY;
|
764
764
|
plot.target.trigger(evt, ins);
|
@@ -2,8 +2,8 @@
|
|
2
2
|
* jqPlot
|
3
3
|
* Pure JavaScript plotting plugin using jQuery
|
4
4
|
*
|
5
|
-
* Version: 1.0.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
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.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
7
7
|
*
|
8
8
|
* Copyright (c) 2009-2013 Chris Leonello
|
9
9
|
* jqPlot is currently available for use in all personal or commercial projects
|
@@ -73,7 +73,7 @@
|
|
73
73
|
var legend = this;
|
74
74
|
if (this.show) {
|
75
75
|
var series = this._series;
|
76
|
-
|
76
|
+
var s;
|
77
77
|
var ss = 'position:absolute;';
|
78
78
|
ss += (this.background) ? 'background:'+this.background+';' : '';
|
79
79
|
ss += (this.border) ? 'border:'+this.border+';' : '';
|
@@ -2,8 +2,8 @@
|
|
2
2
|
* jqPlot
|
3
3
|
* Pure JavaScript plotting plugin using jQuery
|
4
4
|
*
|
5
|
-
* Version: 1.0.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
7
7
|
*
|
8
8
|
* Copyright (c) 2009-2013 Chris Leonello
|
9
9
|
* jqPlot is currently available for use in all personal or commercial projects
|
@@ -841,7 +841,7 @@
|
|
841
841
|
plot.target.trigger(evt1, ins);
|
842
842
|
if (plot.series[ins[0]].highlightMouseOver && !(ins[0] == plot.plugins.funnelRenderer.highlightedSeriesIndex && ins[1] == plot.series[ins[0]]._highlightedPoint)) {
|
843
843
|
var evt = jQuery.Event('jqplotDataHighlight');
|
844
|
-
|
844
|
+
evt.which = ev.which;
|
845
845
|
evt.pageX = ev.pageX;
|
846
846
|
evt.pageY = ev.pageY;
|
847
847
|
plot.target.trigger(evt, ins);
|
@@ -858,7 +858,7 @@
|
|
858
858
|
var ins = [neighbor.seriesIndex, neighbor.pointIndex, neighbor.data];
|
859
859
|
if (plot.series[ins[0]].highlightMouseDown && !(ins[0] == plot.plugins.funnelRenderer.highlightedSeriesIndex && ins[1] == plot.series[ins[0]]._highlightedPoint)) {
|
860
860
|
var evt = jQuery.Event('jqplotDataHighlight');
|
861
|
-
|
861
|
+
evt.which = ev.which;
|
862
862
|
evt.pageX = ev.pageX;
|
863
863
|
evt.pageY = ev.pageY;
|
864
864
|
plot.target.trigger(evt, ins);
|
@@ -881,7 +881,7 @@
|
|
881
881
|
if (neighbor) {
|
882
882
|
var ins = [neighbor.seriesIndex, neighbor.pointIndex, neighbor.data];
|
883
883
|
var evt = jQuery.Event('jqplotDataClick');
|
884
|
-
|
884
|
+
evt.which = ev.which;
|
885
885
|
evt.pageX = ev.pageX;
|
886
886
|
evt.pageY = ev.pageY;
|
887
887
|
plot.target.trigger(evt, ins);
|
@@ -896,7 +896,7 @@
|
|
896
896
|
unhighlight(plot);
|
897
897
|
}
|
898
898
|
var evt = jQuery.Event('jqplotDataRightClick');
|
899
|
-
|
899
|
+
evt.which = ev.which;
|
900
900
|
evt.pageX = ev.pageX;
|
901
901
|
evt.pageY = ev.pageY;
|
902
902
|
plot.target.trigger(evt, ins);
|
@@ -2,8 +2,8 @@
|
|
2
2
|
* jqPlot
|
3
3
|
* Pure JavaScript plotting plugin using jQuery
|
4
4
|
*
|
5
|
-
* Version: 1.0.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
7
7
|
*
|
8
8
|
* Copyright (c) 2009-2013 Chris Leonello
|
9
9
|
* jqPlot is currently available for use in all personal or commercial projects
|
@@ -339,12 +339,12 @@
|
|
339
339
|
if (series.markerRenderer.show == true) {
|
340
340
|
ms = (series.markerRenderer.size + opts.sizeAdjust)/2;
|
341
341
|
}
|
342
|
-
|
343
|
-
|
344
|
-
|
345
|
-
|
346
|
-
|
347
|
-
|
342
|
+
|
343
|
+
var loc = locations;
|
344
|
+
if (series.fillToZero && series.fill && neighbor.data[1] < 0) {
|
345
|
+
loc = oppositeLocations;
|
346
|
+
}
|
347
|
+
|
348
348
|
switch (loc[locationIndicies[opts.tooltipLocation]]) {
|
349
349
|
case 'nw':
|
350
350
|
var x = gridpos.x + plot._gridPadding.left - elem.outerWidth(true) - opts.tooltipOffset - fact * ms;
|
@@ -432,7 +432,7 @@
|
|
432
432
|
if (hl.showMarker) {
|
433
433
|
draw(plot, neighbor);
|
434
434
|
}
|
435
|
-
if (hl.showTooltip && (!c || !c._zoom.started)) {
|
435
|
+
if (plot.series[neighbor.seriesIndex].show && hl.showTooltip && (!c || !c._zoom.started)) {
|
436
436
|
showTooltip(plot, plot.series[neighbor.seriesIndex], neighbor);
|
437
437
|
}
|
438
438
|
if (hl.bringSeriesToFront) {
|
@@ -452,7 +452,7 @@
|
|
452
452
|
if (hl.showMarker) {
|
453
453
|
draw(plot, neighbor);
|
454
454
|
}
|
455
|
-
if (hl.showTooltip && (!c || !c._zoom.started)) {
|
455
|
+
if (plot.series[neighbor.seriesIndex].show && hl.showTooltip && (!c || !c._zoom.started)) {
|
456
456
|
showTooltip(plot, plot.series[neighbor.seriesIndex], neighbor);
|
457
457
|
}
|
458
458
|
if (hl.bringSeriesToFront) {
|
@@ -2,8 +2,8 @@
|
|
2
2
|
* jqPlot
|
3
3
|
* Pure JavaScript plotting plugin using jQuery
|
4
4
|
*
|
5
|
-
* Version: 1.0.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
7
7
|
*
|
8
8
|
* Copyright (c) 2009-2013 Chris Leonello
|
9
9
|
* jqPlot is currently available for use in all personal or commercial projects
|
@@ -161,10 +161,10 @@
|
|
161
161
|
|
162
162
|
// perform some checks
|
163
163
|
if (this.min != null && this.min <= 0) {
|
164
|
-
throw(
|
164
|
+
throw new Error("Log axis minimum must be greater than 0");
|
165
165
|
}
|
166
166
|
if (this.max != null && this.max <= 0) {
|
167
|
-
throw(
|
167
|
+
throw new Error("Log axis maximum must be greater than 0");
|
168
168
|
}
|
169
169
|
|
170
170
|
function findCeil (val) {
|
@@ -2,8 +2,8 @@
|
|
2
2
|
* jqPlot
|
3
3
|
* Pure JavaScript plotting plugin using jQuery
|
4
4
|
*
|
5
|
-
* Version: 1.0.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
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.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
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.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
7
7
|
*
|
8
8
|
* Copyright (c) 2009-2013 Chris Leonello
|
9
9
|
* jqPlot is currently available for use in all personal or commercial projects
|
@@ -413,13 +413,12 @@
|
|
413
413
|
// will be center of hub.
|
414
414
|
this._center = [(cw-trans*offx)/2 + trans * offx, (ch-trans*offy)/2 + trans * offy];
|
415
415
|
}
|
416
|
+
if (this._labelElem && this.labelPosition == 'bottom') {
|
417
|
+
this._center[1] -= this._labelElem.outerHeight(true);
|
418
|
+
}
|
419
|
+
|
416
420
|
}
|
417
421
|
|
418
|
-
|
419
|
-
if (this._labelElem && this.labelPosition == 'bottom') {
|
420
|
-
this._center[1] -= this._labelElem.outerHeight(true);
|
421
|
-
}
|
422
|
-
|
423
422
|
this._radius = this.diameter/2;
|
424
423
|
|
425
424
|
this.tickSpacing = 6000/this.diameter;
|
@@ -2,8 +2,8 @@
|
|
2
2
|
* jqplot.jquerymobile plugin
|
3
3
|
* jQuery Mobile virtual event support.
|
4
4
|
*
|
5
|
-
* Version: 1.0.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
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.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
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.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
7
7
|
*
|
8
8
|
* Copyright (c) 2009-2013 Chris Leonello
|
9
9
|
* jqPlot is currently available for use in all personal or commercial projects
|
@@ -801,7 +801,7 @@
|
|
801
801
|
plot.target.trigger(evt1, ins);
|
802
802
|
if (plot.series[ins[0]].highlightMouseOver && !(ins[0] == plot.plugins.pieRenderer.highlightedSeriesIndex && ins[1] == plot.series[ins[0]]._highlightedPoint)) {
|
803
803
|
var evt = jQuery.Event('jqplotDataHighlight');
|
804
|
-
|
804
|
+
evt.which = ev.which;
|
805
805
|
evt.pageX = ev.pageX;
|
806
806
|
evt.pageY = ev.pageY;
|
807
807
|
plot.target.trigger(evt, ins);
|
@@ -818,7 +818,7 @@
|
|
818
818
|
var ins = [neighbor.seriesIndex, neighbor.pointIndex, neighbor.data];
|
819
819
|
if (plot.series[ins[0]].highlightMouseDown && !(ins[0] == plot.plugins.pieRenderer.highlightedSeriesIndex && ins[1] == plot.series[ins[0]]._highlightedPoint)) {
|
820
820
|
var evt = jQuery.Event('jqplotDataHighlight');
|
821
|
-
|
821
|
+
evt.which = ev.which;
|
822
822
|
evt.pageX = ev.pageX;
|
823
823
|
evt.pageY = ev.pageY;
|
824
824
|
plot.target.trigger(evt, ins);
|
@@ -841,7 +841,7 @@
|
|
841
841
|
if (neighbor) {
|
842
842
|
var ins = [neighbor.seriesIndex, neighbor.pointIndex, neighbor.data];
|
843
843
|
var evt = jQuery.Event('jqplotDataClick');
|
844
|
-
|
844
|
+
evt.which = ev.which;
|
845
845
|
evt.pageX = ev.pageX;
|
846
846
|
evt.pageY = ev.pageY;
|
847
847
|
plot.target.trigger(evt, ins);
|
@@ -856,7 +856,7 @@
|
|
856
856
|
unhighlight(plot);
|
857
857
|
}
|
858
858
|
var evt = jQuery.Event('jqplotDataRightClick');
|
859
|
-
|
859
|
+
evt.which = ev.which;
|
860
860
|
evt.pageX = ev.pageX;
|
861
861
|
evt.pageY = ev.pageY;
|
862
862
|
plot.target.trigger(evt, ins);
|
@@ -2,8 +2,8 @@
|
|
2
2
|
* jqPlot
|
3
3
|
* Pure JavaScript plotting plugin using jQuery
|
4
4
|
*
|
5
|
-
* Version: 1.0.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
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.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
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.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
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.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
7
7
|
*
|
8
8
|
* Copyright (c) 2009-2013 Chris Leonello
|
9
9
|
* jqPlot is currently available for use in all personal or commercial projects
|
@@ -495,7 +495,7 @@
|
|
495
495
|
plot.target.trigger(evt1, ins);
|
496
496
|
if (plot.series[ins[0]].highlightMouseOver && !(ins[0] == plot.plugins.pyramidRenderer.highlightedSeriesIndex && ins[1] == plot.series[ins[0]]._highlightedPoint)) {
|
497
497
|
var evt = jQuery.Event('jqplotDataHighlight');
|
498
|
-
|
498
|
+
evt.which = ev.which;
|
499
499
|
evt.pageX = ev.pageX;
|
500
500
|
evt.pageY = ev.pageY;
|
501
501
|
plot.target.trigger(evt, ins);
|
@@ -2,8 +2,8 @@
|
|
2
2
|
* jqPlot
|
3
3
|
* Pure JavaScript plotting plugin using jQuery
|
4
4
|
*
|
5
|
-
* Version: 1.0.
|
6
|
-
* Revision:
|
5
|
+
* Version: 1.0.8
|
6
|
+
* Revision: 1250
|
7
7
|
*
|
8
8
|
* Copyright (c) 2009-2013 Chris Leonello
|
9
9
|
* jqPlot is currently available for use in all personal or commercial projects
|
@@ -5,8 +5,8 @@
|
|
5
5
|
*
|
6
6
|
* About: Version
|
7
7
|
*
|
8
|
-
* version: 1.0.
|
9
|
-
* revision:
|
8
|
+
* version: 1.0.8
|
9
|
+
* revision: 1250
|
10
10
|
*
|
11
11
|
* About: Copyright & License
|
12
12
|
*
|
@@ -244,8 +244,8 @@
|
|
244
244
|
}
|
245
245
|
};
|
246
246
|
|
247
|
-
$.jqplot.version = "1.0.
|
248
|
-
$.jqplot.revision = "
|
247
|
+
$.jqplot.version = "1.0.8";
|
248
|
+
$.jqplot.revision = "1250";
|
249
249
|
|
250
250
|
$.jqplot.targetCounter = 1;
|
251
251
|
|
@@ -1966,7 +1966,7 @@
|
|
1966
1966
|
// remove any error class that may be stuck on target.
|
1967
1967
|
this.target.removeClass('jqplot-error');
|
1968
1968
|
if (!this.target.get(0)) {
|
1969
|
-
throw "No plot target specified";
|
1969
|
+
throw new Error("No plot target specified");
|
1970
1970
|
}
|
1971
1971
|
|
1972
1972
|
// make sure the target is positioned by some means and set css
|
@@ -2025,7 +2025,7 @@
|
|
2025
2025
|
this.eventCanvas._plotDimensions = this._plotDimensions;
|
2026
2026
|
this.legend._plotDimensions = this._plotDimensions;
|
2027
2027
|
if (this._height <=0 || this._width <=0 || !this._height || !this._width) {
|
2028
|
-
throw "Canvas dimension not set";
|
2028
|
+
throw new Error("Canvas dimension not set");
|
2029
2029
|
}
|
2030
2030
|
|
2031
2031
|
if (options.dataRenderer && $.isFunction(options.dataRenderer)) {
|
@@ -2043,7 +2043,7 @@
|
|
2043
2043
|
if (data == null || $.isArray(data) == false || data.length == 0 || $.isArray(data[0]) == false || data[0].length == 0) {
|
2044
2044
|
|
2045
2045
|
if (this.noDataIndicator.show == false) {
|
2046
|
-
throw "No
|
2046
|
+
throw new Error("No data specified");
|
2047
2047
|
}
|
2048
2048
|
|
2049
2049
|
else {
|
@@ -2208,7 +2208,7 @@
|
|
2208
2208
|
this._width = this.target.width();
|
2209
2209
|
|
2210
2210
|
if (this._height <=0 || this._width <=0 || !this._height || !this._width) {
|
2211
|
-
throw "Target dimension not set";
|
2211
|
+
throw new Error("Target dimension not set");
|
2212
2212
|
}
|
2213
2213
|
|
2214
2214
|
this._plotDimensions.height = this._height;
|
@@ -2364,7 +2364,7 @@
|
|
2364
2364
|
this._width = this.target.width();
|
2365
2365
|
|
2366
2366
|
if (this._height <=0 || this._width <=0 || !this._height || !this._width) {
|
2367
|
-
throw "Target dimension not set";
|
2367
|
+
throw new Error("Target dimension not set");
|
2368
2368
|
}
|
2369
2369
|
|
2370
2370
|
this._plotDimensions.height = this._height;
|
@@ -3299,7 +3299,7 @@
|
|
3299
3299
|
minang = (j>0) ? s.gridData[j-1][1]+sm : sm;
|
3300
3300
|
maxang = s.gridData[j][1];
|
3301
3301
|
if (theta > minang && theta < maxang) {
|
3302
|
-
return {seriesIndex:s.index, pointIndex:j, gridData:
|
3302
|
+
return {seriesIndex:s.index, pointIndex:j, gridData:[gridpos.x,gridpos.y], data:s.data[j]};
|
3303
3303
|
}
|
3304
3304
|
}
|
3305
3305
|
}
|
@@ -3344,7 +3344,7 @@
|
|
3344
3344
|
minang = (j>0) ? s.gridData[j-1][1]+sm : sm;
|
3345
3345
|
maxang = s.gridData[j][1];
|
3346
3346
|
if (theta > minang && theta < maxang) {
|
3347
|
-
return {seriesIndex:s.index, pointIndex:j, gridData:
|
3347
|
+
return {seriesIndex:s.index, pointIndex:j, gridData:[gridpos.x,gridpos.y], data:s.data[j]};
|
3348
3348
|
}
|
3349
3349
|
}
|
3350
3350
|
}
|
@@ -3909,7 +3909,7 @@
|
|
3909
3909
|
return $.jqplot.hex2rgb(s, a);
|
3910
3910
|
}
|
3911
3911
|
else {
|
3912
|
-
throw '
|
3912
|
+
throw new Error('Invalid color spec');
|
3913
3913
|
}
|
3914
3914
|
};
|
3915
3915
|
|
@@ -4217,7 +4217,7 @@
|
|
4217
4217
|
// true to escape HTML entities in the label.
|
4218
4218
|
this.escapeHTML = false;
|
4219
4219
|
this._elem;
|
4220
|
-
|
4220
|
+
this._breakTick = false;
|
4221
4221
|
|
4222
4222
|
$.extend(true, this, options);
|
4223
4223
|
};
|
@@ -4277,9 +4277,9 @@
|
|
4277
4277
|
if (this.textColor) {
|
4278
4278
|
this._elem.css('color', this.textColor);
|
4279
4279
|
}
|
4280
|
-
|
4281
|
-
|
4282
|
-
|
4280
|
+
if (this._breakTick) {
|
4281
|
+
this._elem.addClass('jqplot-breakTick');
|
4282
|
+
}
|
4283
4283
|
|
4284
4284
|
return this._elem;
|
4285
4285
|
};
|
@@ -4353,8 +4353,8 @@
|
|
4353
4353
|
this._elem.addClass('jqplot-grid-canvas');
|
4354
4354
|
this._elem.css({ position: 'absolute', left: 0, top: 0 });
|
4355
4355
|
|
4356
|
-
|
4357
|
-
|
4356
|
+
elem = plot.canvasManager.initCanvas(elem);
|
4357
|
+
|
4358
4358
|
this._top = this._offsets.top;
|
4359
4359
|
this._bottom = h - this._offsets.bottom;
|
4360
4360
|
this._left = this._offsets.left;
|
@@ -4758,11 +4758,11 @@
|
|
4758
4758
|
|
4759
4759
|
$.jqplot.LinePattern = function (ctx, pattern) {
|
4760
4760
|
|
4761
|
-
|
4762
|
-
|
4763
|
-
|
4764
|
-
|
4765
|
-
|
4761
|
+
var defaultLinePatterns = {
|
4762
|
+
dotted: [ dotlen, $.jqplot.config.dotGapLength ],
|
4763
|
+
dashed: [ $.jqplot.config.dashLength, $.jqplot.config.gapLength ],
|
4764
|
+
solid: null
|
4765
|
+
};
|
4766
4766
|
|
4767
4767
|
if (typeof pattern === 'string') {
|
4768
4768
|
if (pattern[0] === '.' || pattern[0] === '-') {
|
@@ -5736,7 +5736,7 @@
|
|
5736
5736
|
tempgd.push(gd[i]);
|
5737
5737
|
this._areaPoints.push(gd[i]);
|
5738
5738
|
// do we have an axis crossing?
|
5739
|
-
if (pd[i][1] * pd[i+1][1]
|
5739
|
+
if (pd[i][1] * pd[i+1][1] <= 0) {
|
5740
5740
|
if (pd[i][1] < 0) {
|
5741
5741
|
isnegative = true;
|
5742
5742
|
opts.fillStyle = negativeColor;
|
@@ -5996,7 +5996,7 @@
|
|
5996
5996
|
plot.target.trigger(evt1, ins);
|
5997
5997
|
if (plot.series[ins[0]].highlightMouseOver && !(ins[0] == plot.plugins.lineRenderer.highlightedSeriesIndex)) {
|
5998
5998
|
var evt = jQuery.Event('jqplotDataHighlight');
|
5999
|
-
|
5999
|
+
evt.which = ev.which;
|
6000
6000
|
evt.pageX = ev.pageX;
|
6001
6001
|
evt.pageY = ev.pageY;
|
6002
6002
|
plot.target.trigger(evt, ins);
|
@@ -6013,7 +6013,7 @@
|
|
6013
6013
|
var ins = [neighbor.seriesIndex, neighbor.pointIndex, neighbor.data];
|
6014
6014
|
if (plot.series[ins[0]].highlightMouseDown && !(ins[0] == plot.plugins.lineRenderer.highlightedSeriesIndex)) {
|
6015
6015
|
var evt = jQuery.Event('jqplotDataHighlight');
|
6016
|
-
|
6016
|
+
evt.which = ev.which;
|
6017
6017
|
evt.pageX = ev.pageX;
|
6018
6018
|
evt.pageY = ev.pageY;
|
6019
6019
|
plot.target.trigger(evt, ins);
|
@@ -6036,7 +6036,7 @@
|
|
6036
6036
|
if (neighbor) {
|
6037
6037
|
var ins = [neighbor.seriesIndex, neighbor.pointIndex, neighbor.data];
|
6038
6038
|
var evt = jQuery.Event('jqplotDataClick');
|
6039
|
-
|
6039
|
+
evt.which = ev.which;
|
6040
6040
|
evt.pageX = ev.pageX;
|
6041
6041
|
evt.pageY = ev.pageY;
|
6042
6042
|
plot.target.trigger(evt, ins);
|
@@ -6051,7 +6051,7 @@
|
|
6051
6051
|
unhighlight(plot);
|
6052
6052
|
}
|
6053
6053
|
var evt = jQuery.Event('jqplotDataRightClick');
|
6054
|
-
|
6054
|
+
evt.which = ev.which;
|
6055
6055
|
evt.pageX = ev.pageX;
|
6056
6056
|
evt.pageY = ev.pageY;
|
6057
6057
|
plot.target.trigger(evt, ins);
|
@@ -7954,7 +7954,7 @@
|
|
7954
7954
|
|
7955
7955
|
var pad = false,
|
7956
7956
|
reverse = false,
|
7957
|
-
|
7957
|
+
s;
|
7958
7958
|
for (var i = 0; i< series.length; i++) {
|
7959
7959
|
s = series[i];
|
7960
7960
|
if (s._stack || s.renderer.constructor == $.jqplot.BezierCurveRenderer){
|
@@ -9287,7 +9287,7 @@
|
|
9287
9287
|
return str;
|
9288
9288
|
};
|
9289
9289
|
|
9290
|
-
// Not
|
9290
|
+
// Not guaranteed to work, even on canvas supporting browsers due to
|
9291
9291
|
// limitations with location.href and browser support.
|
9292
9292
|
$.fn.jqplotSaveImage = function() {
|
9293
9293
|
var imgData = $(this).jqplotToImageStr({});
|
@@ -9297,7 +9297,7 @@
|
|
9297
9297
|
|
9298
9298
|
};
|
9299
9299
|
|
9300
|
-
// Not
|
9300
|
+
// Not guaranteed to work, even on canvas supporting browsers due to
|
9301
9301
|
// limitations with window.open and arbitrary data.
|
9302
9302
|
$.fn.jqplotViewImage = function() {
|
9303
9303
|
var imgStr = $(this).jqplotToImageElemStr({});
|
@@ -10022,6 +10022,22 @@
|
|
10022
10022
|
dayNames: ['Niedziela', 'Poniedziałek', 'Wtorek', 'Środa', 'Czwartek', 'Piątek', 'Sobota'],
|
10023
10023
|
dayNamesShort: ['Ni', 'Pn', 'Wt', 'Śr', 'Cz', 'Pt', 'Sb'],
|
10024
10024
|
formatString: '%Y-%m-%d %H:%M:%S'
|
10025
|
+
},
|
10026
|
+
|
10027
|
+
'nl': {
|
10028
|
+
monthNames: ['Januari','Februari','Maart','April','Mei','Juni','July','Augustus','September','Oktober','November','December'],
|
10029
|
+
monthNamesShort: ['Jan','Feb','Mar','Apr','Mei','Jun','Jul','Aug','Sep','Okt','Nov','Dec'],
|
10030
|
+
dayNames:','['Zondag','Maandag','Dinsdag','Woensdag','Donderdag','Vrijdag','Zaterdag'],
|
10031
|
+
dayNamesShort: ['Zo','Ma','Di','Wo','Do','Vr','Za'],
|
10032
|
+
formatString: '%Y-%m-%d %H:%M:%S'
|
10033
|
+
},
|
10034
|
+
|
10035
|
+
'sv': {
|
10036
|
+
monthNames: ['januari','februari','mars','april','maj','juni','juli','augusti','september','oktober','november','december'],
|
10037
|
+
monthNamesShort: ['jan','feb','mar','apr','maj','jun','jul','aug','sep','okt','nov','dec'],
|
10038
|
+
dayNames: ['söndag','måndag','tisdag','onsdag','torsdag','fredag','lördag'],
|
10039
|
+
dayNamesShort: ['sön','mån','tis','ons','tor','fre','lör'],
|
10040
|
+
formatString: '%Y-%m-%d %H:%M:%S'
|
10025
10041
|
}
|
10026
10042
|
|
10027
10043
|
};
|
@@ -62,12 +62,12 @@
|
|
62
62
|
}
|
63
63
|
|
64
64
|
.jqplot-yaxis-tick.jqplot-breakTick {
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
/*
|
69
|
-
|
70
|
-
|
65
|
+
right: -20px;
|
66
|
+
margin-right: 0px;
|
67
|
+
padding:1px 5px 1px 5px;
|
68
|
+
/*background-color: white;*/
|
69
|
+
z-index: 2;
|
70
|
+
font-size: 1.5em;
|
71
71
|
}
|
72
72
|
|
73
73
|
.jqplot-y2axis-tick, .jqplot-y3axis-tick, .jqplot-y4axis-tick, .jqplot-y5axis-tick, .jqplot-y6axis-tick, .jqplot-y7axis-tick, .jqplot-y8axis-tick, .jqplot-y9axis-tick {
|
@@ -254,6 +254,6 @@ div.jqplot-bubble-label.jqplot-bubble-label-highlight {
|
|
254
254
|
}
|
255
255
|
|
256
256
|
div.jqplot-noData-container {
|
257
|
-
|
258
|
-
|
257
|
+
text-align: center;
|
258
|
+
background-color: rgba(96%, 96%, 96%, 0.3);
|
259
259
|
}
|