highcharts-rails 5.0.7 → 5.0.8

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.markdown +41 -0
  3. data/README.markdown +3 -6
  4. data/app/assets/javascripts/highcharts.js +758 -455
  5. data/app/assets/javascripts/highcharts/highcharts-3d.js +58 -50
  6. data/app/assets/javascripts/highcharts/highcharts-more.js +21 -35
  7. data/app/assets/javascripts/highcharts/modules/accessibility.js +69 -39
  8. data/app/assets/javascripts/highcharts/modules/annotations.js +2 -2
  9. data/app/assets/javascripts/highcharts/modules/boost.js +2316 -337
  10. data/app/assets/javascripts/highcharts/modules/broken-axis.js +17 -3
  11. data/app/assets/javascripts/highcharts/modules/data.js +2 -2
  12. data/app/assets/javascripts/highcharts/modules/drilldown.js +6 -6
  13. data/app/assets/javascripts/highcharts/modules/exporting.js +4 -4
  14. data/app/assets/javascripts/highcharts/modules/funnel.js +4 -4
  15. data/app/assets/javascripts/highcharts/modules/grid-axis.js +6 -6
  16. data/app/assets/javascripts/highcharts/modules/heatmap.js +10 -7
  17. data/app/assets/javascripts/highcharts/modules/no-data-to-display.js +2 -2
  18. data/app/assets/javascripts/highcharts/modules/offline-exporting.js +3 -3
  19. data/app/assets/javascripts/highcharts/modules/overlapping-datalabels.js +3 -3
  20. data/app/assets/javascripts/highcharts/modules/series-label.js +2 -2
  21. data/app/assets/javascripts/highcharts/modules/solid-gauge.js +40 -4
  22. data/app/assets/javascripts/highcharts/modules/stock.js +100 -81
  23. data/app/assets/javascripts/highcharts/modules/treemap.js +36 -9
  24. data/app/assets/javascripts/highcharts/modules/xrange-series.js +2 -2
  25. data/lib/highcharts/version.rb +1 -1
  26. metadata +2 -2
@@ -1,11 +1,12 @@
1
1
  /**
2
- * @license Highcharts JS v5.0.7 (2017-01-17)
2
+ * @license Highcharts JS v5.0.8 (2017-03-08)
3
3
  *
4
4
  * (c) 2014 Highsoft AS
5
5
  * Authors: Jon Arild Nygard / Oystein Moseng
6
6
  *
7
7
  * License: www.highcharts.com/license
8
8
  */
9
+ 'use strict';
9
10
  (function(factory) {
10
11
  if (typeof module === 'object' && module.exports) {
11
12
  module.exports = factory;
@@ -20,7 +21,6 @@
20
21
  *
21
22
  * License: www.highcharts.com/license
22
23
  */
23
- 'use strict';
24
24
 
25
25
  var seriesType = H.seriesType,
26
26
  seriesTypes = H.seriesTypes,
@@ -81,6 +81,7 @@
81
81
  headerFormat: '',
82
82
  pointFormat: '<b>{point.name}</b>: {point.value}</b><br/>'
83
83
  },
84
+ ignoreHiddenPoint: true,
84
85
  layoutAlgorithm: 'sliceAndDice',
85
86
  layoutStartingDirection: 'vertical',
86
87
  alternateStartingDirection: false,
@@ -317,8 +318,19 @@
317
318
  x2,
318
319
  y1,
319
320
  y2,
320
- strokeWidth = series.pointAttribs(point)['stroke-width'] || 0,
321
- crispCorr = (strokeWidth % 2) / 2;
321
+ crispCorr = 0;
322
+
323
+
324
+ // Get the crisp correction in classic mode. For this to work in
325
+ // styled mode, we would need to first add the shape (without x, y,
326
+ // width and height), then read the rendered stroke width using
327
+ // point.graphic.strokeWidth(), then modify and apply the shapeArgs.
328
+ // This applies also to column series, but the downside is
329
+ // performance and code complexity.
330
+ crispCorr = (
331
+ (series.pointAttribs(point)['stroke-width'] || 0) % 2
332
+ ) / 2;
333
+
322
334
 
323
335
  // Points which is ignored, have no values.
324
336
  if (values && node.visible) {
@@ -351,8 +363,19 @@
351
363
  point = series.points[node.i];
352
364
  level = series.levelMap[node.levelDynamic];
353
365
  // Select either point color, level color or inherited color.
354
- color = pick(point && point.options.color, level && level.color, color);
355
- colorIndex = pick(point && point.options.colorIndex, level && level.colorIndex, colorIndex);
366
+ color = pick(
367
+ point && point.options.color,
368
+ level && level.color,
369
+ color,
370
+ series.color
371
+ );
372
+ colorIndex = pick(
373
+ point && point.options.colorIndex,
374
+ level && level.colorIndex,
375
+ colorIndex,
376
+ series.colorIndex
377
+ );
378
+
356
379
  if (point) {
357
380
  point.color = color;
358
381
  point.colorIndex = colorIndex;
@@ -922,9 +945,13 @@
922
945
  },
923
946
  setState: function(state) {
924
947
  H.Point.prototype.setState.call(this, state);
925
- this.graphic.attr({
926
- zIndex: state === 'hover' ? 1 : 0
927
- });
948
+
949
+ // Graphic does not exist when point is not visible.
950
+ if (this.graphic) {
951
+ this.graphic.attr({
952
+ zIndex: state === 'hover' ? 1 : 0
953
+ });
954
+ }
928
955
  },
929
956
  setVisible: seriesTypes.pie.prototype.pointClass.prototype.setVisible
930
957
  });
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Highcharts JS v5.0.7 (2017-01-17)
2
+ * @license Highcharts JS v5.0.8 (2017-03-08)
3
3
  * X-range series
4
4
  *
5
5
  * (c) 2010-2016 Torstein Honsi, Lars A. V. Cabrera
@@ -8,6 +8,7 @@
8
8
  *
9
9
  * License: www.highcharts.com/license
10
10
  */
11
+ 'use strict';
11
12
  (function(factory) {
12
13
  if (typeof module === 'object' && module.exports) {
13
14
  module.exports = factory;
@@ -22,7 +23,6 @@
22
23
  *
23
24
  * License: www.highcharts.com/license
24
25
  */
25
- 'use strict';
26
26
 
27
27
  var defaultPlotOptions = H.getOptions().plotOptions,
28
28
  color = H.Color,
@@ -1,3 +1,3 @@
1
1
  module Highcharts
2
- VERSION = "5.0.7"
2
+ VERSION = "5.0.8"
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: 5.0.7
4
+ version: 5.0.8
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: 2017-01-25 00:00:00.000000000 Z
11
+ date: 2017-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties