highcharts-rails 4.2.5 → 4.2.6

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v4.2.5 (2016-05-06)
2
+ * @license Highcharts JS v4.2.6 (2016-08-02)
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.5 (2016-05-06)
2
+ * @license Highcharts JS v4.2.6 (2016-08-02)
3
3
  *
4
4
  * (c) 2014 Highsoft AS
5
5
  * Authors: Jon Arild Nygard / Oystein Moseng
@@ -74,7 +74,7 @@
74
74
  },
75
75
  tooltip: {
76
76
  headerFormat: '',
77
- pointFormat: '<b>{point.name}</b>: {point.node.val}</b><br/>'
77
+ pointFormat: '<b>{point.name}</b>: {point.value}</b><br/>'
78
78
  },
79
79
  layoutAlgorithm: 'sliceAndDice',
80
80
  layoutStartingDirection: 'vertical',
@@ -254,7 +254,10 @@
254
254
  return a.sortIndex - b.sortIndex;
255
255
  });
256
256
  // Set the values
257
- val = pick(point && point.value, childrenTotal);
257
+ val = pick(point && point.options.value, childrenTotal);
258
+ if (point) {
259
+ point.value = val;
260
+ }
258
261
  extend(tree, {
259
262
  children: children,
260
263
  childrenTotal: childrenTotal,
@@ -696,7 +699,9 @@
696
699
  });
697
700
 
698
701
  each(points, function (point) {
699
- var groupKey = 'levelGroup-' + point.node.levelDynamic;
702
+ var groupKey = 'levelGroup-' + point.node.levelDynamic,
703
+ pointAttribs,
704
+ crispCorr;
700
705
  if (!series[groupKey]) {
701
706
  series[groupKey] = series.chart.renderer.g(groupKey)
702
707
  .attr({
@@ -706,11 +711,17 @@
706
711
  }
707
712
  point.group = series[groupKey];
708
713
  // Preliminary code in prepraration for HC5 that uses pointAttribs for all series
714
+ pointAttribs = series.pointAttribs(point);
709
715
  point.pointAttr = {
710
- '': series.pointAttribs(point),
716
+ '': pointAttribs,
711
717
  'hover': series.pointAttribs(point, 'hover'),
712
718
  'select': {}
713
719
  };
720
+
721
+ // Crisp correction
722
+ crispCorr = parseInt(pointAttribs['stroke-width'], 10) % 2 / 2;
723
+ point.shapeArgs.x -= crispCorr;
724
+ point.shapeArgs.y -= crispCorr;
714
725
  });
715
726
  // Call standard drawPoints
716
727
  seriesTypes.column.prototype.drawPoints.call(this);
@@ -1,3 +1,3 @@
1
1
  module Highcharts
2
- VERSION = "4.2.5"
2
+ VERSION = "4.2.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: highcharts-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.5
4
+ version: 4.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Per Christian B. Viken
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-06 00:00:00.000000000 Z
11
+ date: 2017-01-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties