highcharts-rails 4.2.2 → 4.2.3

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2c72cc1681a1147d68993e02378628c13ea2da7f
4
- data.tar.gz: ed6de8e4c3f8c211ea04f901ed0f4c8c1c89c8d7
3
+ metadata.gz: 69fd18344b70b32bbf3bfbfea024615e2b1f5f76
4
+ data.tar.gz: 14eb3b76281b1bdd2afe3e3e198839f295c8c169
5
5
  SHA512:
6
- metadata.gz: bd9e2637e11c8b4fa254e79431c264e14bcb82eec93dadcf855d333be699abbc23d797239751c2bbe1b5dcded9c383678c4e2dfdd2a277b4a46f6ed5e0f9a01d
7
- data.tar.gz: f51303cfe27bf5c5f597bc41016c22ae4ea8c5e68892995750e22a62218c297b771a60aad923bf43e1379961f3f94670fcdc2903ab8159349a971bf47fc2ac9b
6
+ metadata.gz: f82932eb7563813afeb7122ea8054aa8f8175deca56159eac6c8a6f0f29ea03d9b91ffb562361169298a50c4537edee41ebe565585bf98c9d366234a830dd902
7
+ data.tar.gz: e3c0c82eed6937aefba1bf1bffa01ab55d5e92ff2d13996a21ea9dd6e9da72bbae9ec9165700e04e7369995614464a57e8c3a73fb57e2c2731b089bb2b47d2f8
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,13 @@
1
+ # 4.2.3 / 2016-04-09
2
+
3
+ * Updated Highcharts to 4.2.3 (2016-02-08)
4
+ * Fixed #4989, Chart.getSVG function produced invalid SVG.
5
+ * Fixed #4999, a regression causing JS error on hovering columns having a shadow.
6
+ * Fixed #5001, a regression causing empty arearange series to fail with JS error.
7
+ * Fixed #5004, a regression causing stacked step areas to render incorrectly.
8
+ * Fixed #5015, a regression causing splines with null points and connectNulls: true not to render.
9
+ * Fixed #5016, a regression where a spline with equal X values failed to show.
10
+
1
11
  # 4.2.2 / 2016-04-09
2
12
 
3
13
  * Updated Highcharts to 4.2.2 (2016-02-04)
@@ -2,7 +2,7 @@
2
2
  // @compilation_level SIMPLE_OPTIMIZATIONS
3
3
 
4
4
  /**
5
- * @license Highcharts JS v4.2.2 (2016-02-04)
5
+ * @license Highcharts JS v4.2.3 (2016-02-08)
6
6
  *
7
7
  * (c) 2009-2016 Torstein Honsi
8
8
  *
@@ -59,7 +59,7 @@
59
59
  charts = [],
60
60
  chartCount = 0,
61
61
  PRODUCT = 'Highcharts',
62
- VERSION = '4.2.2',
62
+ VERSION = '4.2.3',
63
63
 
64
64
  // some constants for frequently used strings
65
65
  DIV = 'div',
@@ -1533,7 +1533,7 @@
1533
1533
  useUTC: true,
1534
1534
  //timezoneOffset: 0,
1535
1535
  canvasToolsURL: 'http://code.highcharts.com/modules/canvas-tools.js',
1536
- VMLRadialGradientURL: 'http://code.highcharts.com/4.2.2/gfx/vml-radial-gradient.png'
1536
+ VMLRadialGradientURL: 'http://code.highcharts.com/4.2.3/gfx/vml-radial-gradient.png'
1537
1537
  },
1538
1538
  chart: {
1539
1539
  //animation: true,
@@ -2482,7 +2482,7 @@
2482
2482
  key,
2483
2483
  attribs = {},
2484
2484
  normalizer,
2485
- strokeWidth = rect.strokeWidth || wrapper.strokeWidth || 0;
2485
+ strokeWidth = wrapper.strokeWidth || 0;
2486
2486
 
2487
2487
  normalizer = mathRound(strokeWidth) % 2 / 2; // mathRound because strokeWidth can sometimes have roundoff errors
2488
2488
 
@@ -3957,7 +3957,7 @@
3957
3957
  };
3958
3958
 
3959
3959
  if (strokeWidth !== UNDEFINED) {
3960
- attribs.strokeWidth = strokeWidth;
3960
+ wrapper.strokeWidth = strokeWidth;
3961
3961
  attribs = wrapper.crisp(attribs);
3962
3962
  }
3963
3963
 
@@ -3965,8 +3965,8 @@
3965
3965
  attribs.r = r;
3966
3966
  }
3967
3967
 
3968
- wrapper.rSetter = function (value) {
3969
- attr(this.element, {
3968
+ wrapper.rSetter = function (value, key, element) {
3969
+ attr(element, {
3970
3970
  rx: value,
3971
3971
  ry: value
3972
3972
  });
@@ -10545,7 +10545,7 @@
10545
10545
 
10546
10546
  var chart = this.chart;
10547
10547
 
10548
- if (!defined(hoverChartIndex) || !charts[hoverChartIndex].mouseIsDown) {
10548
+ if (!defined(hoverChartIndex) || !charts[hoverChartIndex] || !charts[hoverChartIndex].mouseIsDown) {
10549
10549
  hoverChartIndex = chart.index;
10550
10550
  }
10551
10551
 
@@ -12852,8 +12852,9 @@
12852
12852
  })
12853
12853
  .add();
12854
12854
  } else {
12855
+ plotBorder.strokeWidth = -plotBorderWidth;
12855
12856
  plotBorder.animate(
12856
- plotBorder.crisp({ x: plotLeft, y: plotTop, width: plotWidth, height: plotHeight, strokeWidth: -plotBorderWidth }) //#3282 plotBorder should be negative
12857
+ plotBorder.crisp({ x: plotLeft, y: plotTop, width: plotWidth, height: plotHeight }) //#3282 plotBorder should be negative
12857
12858
  );
12858
12859
  }
12859
12860
  }
@@ -13364,8 +13365,8 @@
13364
13365
 
13365
13366
  // If no x is set by now, get auto incremented value. All points must have an
13366
13367
  // x value, however the y value can be null to create a gap in the series
13367
- if (point.x === UNDEFINED && series) {
13368
- point.x = x === UNDEFINED ? series.autoIncrement() : x;
13368
+ if (typeof point.x !== 'number' && series) {
13369
+ point.x = x === undefined ? series.autoIncrement() : x;
13369
13370
  }
13370
13371
 
13371
13372
  return point;
@@ -14351,8 +14352,8 @@
14351
14352
  /**
14352
14353
  * Return the series points with null points filtered out
14353
14354
  */
14354
- getValidPoints: function () {
14355
- return grep(this.points, function (point) {
14355
+ getValidPoints: function (points) {
14356
+ return grep(points || this.points, function (point) {
14356
14357
  return !point.isNull;
14357
14358
  });
14358
14359
  },
@@ -14811,11 +14812,28 @@
14811
14812
  var series = this,
14812
14813
  options = series.options,
14813
14814
  step = options.step,
14815
+ reversed,
14814
14816
  graphPath = [],
14815
14817
  gap;
14816
14818
 
14817
14819
  points = points || series.points;
14818
14820
 
14821
+ // Bottom of a stack is reversed
14822
+ reversed = points.reversed;
14823
+ if (reversed) {
14824
+ points.reverse();
14825
+ }
14826
+ // Reverse the steps (#5004)
14827
+ step = { right: 1, center: 2 }[step] || (step && 3);
14828
+ if (step && reversed) {
14829
+ step = 4 - step;
14830
+ }
14831
+
14832
+ // Remove invalid points, especially in spline (#5015)
14833
+ if (options.connectNulls && !nullsAsZeroes && !connectCliffs) {
14834
+ points = this.getValidPoints(points);
14835
+ }
14836
+
14819
14837
  // Build the line
14820
14838
  each(points, function (point, i) {
14821
14839
 
@@ -14847,14 +14865,14 @@
14847
14865
 
14848
14866
  } else if (step) {
14849
14867
 
14850
- if (step === 'right') {
14868
+ if (step === 1) { // right
14851
14869
  pathToPoint = [
14852
14870
  L,
14853
14871
  lastPoint.plotX,
14854
14872
  plotY
14855
14873
  ];
14856
14874
 
14857
- } else if (step === 'center') {
14875
+ } else if (step === 2) { // center
14858
14876
  pathToPoint = [
14859
14877
  L,
14860
14878
  (lastPoint.plotX + plotX) / 2,
@@ -15327,11 +15345,7 @@
15327
15345
 
15328
15346
  // Start the recursive build process with a clone of the points array and null points filtered out (#3873)
15329
15347
  function startRecursive() {
15330
- var points = grep(series.points || [], function (point) { // #4390
15331
- return point.y !== null;
15332
- });
15333
-
15334
- series.kdTree = _kdtree(points, dimensions, dimensions);
15348
+ series.kdTree = _kdtree(series.getValidPoints(), dimensions, dimensions);
15335
15349
  }
15336
15350
  delete series.kdTree;
15337
15351
 
@@ -16564,7 +16578,8 @@
16564
16578
 
16565
16579
  topPath = getGraphPath.call(this, graphPoints, true, true);
16566
16580
 
16567
- bottomPath = getGraphPath.call(this, bottomPoints.reverse(), true, true);
16581
+ bottomPoints.reversed = true;
16582
+ bottomPath = getGraphPath.call(this, bottomPoints, true, true);
16568
16583
  if (bottomPath.length) {
16569
16584
  bottomPath[0] = L;
16570
16585
  }
@@ -16660,16 +16675,18 @@
16660
16675
  lastY = lastPoint.plotY,
16661
16676
  nextX = nextPoint.plotX,
16662
16677
  nextY = nextPoint.plotY,
16663
- correction;
16678
+ correction = 0;
16664
16679
 
16665
16680
  leftContX = (smoothing * plotX + lastX) / denom;
16666
16681
  leftContY = (smoothing * plotY + lastY) / denom;
16667
16682
  rightContX = (smoothing * plotX + nextX) / denom;
16668
16683
  rightContY = (smoothing * plotY + nextY) / denom;
16669
16684
 
16670
- // have the two control points make a straight line through main point
16671
- correction = ((rightContY - leftContY) * (rightContX - plotX)) /
16672
- (rightContX - leftContX) + plotY - rightContY;
16685
+ // Have the two control points make a straight line through main point
16686
+ if (rightContX !== leftContX) { // #5016, division by zero
16687
+ correction = ((rightContY - leftContY) * (rightContX - plotX)) /
16688
+ (rightContX - leftContX) + plotY - rightContY;
16689
+ }
16673
16690
 
16674
16691
  leftContY += correction;
16675
16692
  rightContY += correction;
@@ -2,7 +2,7 @@
2
2
  // @compilation_level SIMPLE_OPTIMIZATIONS
3
3
 
4
4
  /**
5
- * @license Highcharts JS v4.2.2 (2016-02-04)
5
+ * @license Highcharts JS v4.2.3 (2016-02-08)
6
6
  *
7
7
  * 3D features for Highcharts JS
8
8
  *
@@ -2,7 +2,7 @@
2
2
  // @compilation_level SIMPLE_OPTIMIZATIONS
3
3
 
4
4
  /**
5
- * @license Highcharts JS v4.2.2 (2016-02-04)
5
+ * @license Highcharts JS v4.2.3 (2016-02-08)
6
6
  *
7
7
  * (c) 2009-2016 Torstein Honsi
8
8
  *
@@ -816,11 +816,10 @@ var arrayMin = Highcharts.arrayMin,
816
816
  linePath = [].concat(lowerPath, higherPath);
817
817
 
818
818
  // For the area path, we need to change the 'move' statement into 'lineTo' or 'curveTo'
819
- if (!this.chart.polar) {
819
+ if (!this.chart.polar && higherAreaPath[0] === 'M') {
820
820
  higherAreaPath[0] = 'L'; // this probably doesn't work for spline
821
821
  }
822
822
  this.areaPath = this.areaPath.concat(lowerPath, higherAreaPath);
823
-
824
823
  return linePath;
825
824
  },
826
825
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Highcharts JS v4.2.2 (2016-02-04)
2
+ * Highcharts JS v4.2.3 (2016-02-08)
3
3
  * Highcharts Broken Axis module
4
4
  *
5
5
  * License: www.highcharts.com/license
@@ -2908,7 +2908,7 @@ if (CanvasRenderingContext2D) {
2908
2908
  });
2909
2909
  }
2910
2910
  }/**
2911
- * @license Highcharts JS v4.2.2 (2016-02-04)
2911
+ * @license Highcharts JS v4.2.3 (2016-02-08)
2912
2912
  * CanVGRenderer Extension module
2913
2913
  *
2914
2914
  * (c) 2011-2016 Torstein Honsi, Erik Olsson
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v4.2.2 (2016-02-04)
2
+ * @license Highcharts JS v4.2.3 (2016-02-08)
3
3
  * Data module
4
4
  *
5
5
  * (c) 2012-2016 Torstein Honsi
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v4.2.2 (2016-02-04)
2
+ * @license Highcharts JS v4.2.3 (2016-02-08)
3
3
  * Exporting module
4
4
  *
5
5
  * (c) 2010-2016 Torstein Honsi
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v4.2.2 (2016-02-04)
2
+ * @license Highcharts JS v4.2.3 (2016-02-08)
3
3
  *
4
4
  * (c) 2011-2016 Torstein Honsi
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v4.2.2 (2016-02-04)
2
+ * @license Highcharts JS v4.2.3 (2016-02-08)
3
3
  * Plugin for displaying a message when there is no data visible in chart.
4
4
  *
5
5
  * (c) 2010-2016 Highsoft AS
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v4.2.2 (2016-02-04)
2
+ * @license Highcharts JS v4.2.3 (2016-02-08)
3
3
  * Client side exporting module
4
4
  *
5
5
  * (c) 2015 Torstein Honsi / Oystein Moseng
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v4.2.2 (2016-02-04)
2
+ * @license Highcharts JS v4.2.3 (2016-02-08)
3
3
  * Solid angular gauge module
4
4
  *
5
5
  * (c) 2010-2016 Torstein Honsi
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v4.2.2 (2016-02-04)
2
+ * @license Highcharts JS v4.2.3 (2016-02-08)
3
3
  *
4
4
  * (c) 2014 Highsoft AS
5
5
  * Authors: Jon Arild Nygard / Oystein Moseng
@@ -1,3 +1,3 @@
1
1
  module Highcharts
2
- VERSION = "4.2.2"
2
+ VERSION = "4.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: highcharts-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.2
4
+ version: 4.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Per Christian B. Viken