highcharts-rails 4.2.5 → 4.2.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.markdown +47 -0
- data/app/assets/javascripts/highcharts.js +261 -151
- data/app/assets/javascripts/highcharts/highcharts-3d.js +173 -184
- data/app/assets/javascripts/highcharts/highcharts-more.js +60 -13
- data/app/assets/javascripts/highcharts/modules/broken-axis.js +1 -1
- data/app/assets/javascripts/highcharts/modules/canvas-tools.js +1 -1
- data/app/assets/javascripts/highcharts/modules/data.js +11 -1
- data/app/assets/javascripts/highcharts/modules/drilldown.js +17 -10
- data/app/assets/javascripts/highcharts/modules/exporting.js +6 -9
- data/app/assets/javascripts/highcharts/modules/funnel.js +4 -4
- data/app/assets/javascripts/highcharts/modules/heatmap.js +1 -1
- data/app/assets/javascripts/highcharts/modules/no-data-to-display.js +1 -1
- data/app/assets/javascripts/highcharts/modules/offline-exporting.js +237 -201
- data/app/assets/javascripts/highcharts/modules/solid-gauge.js +1 -1
- data/app/assets/javascripts/highcharts/modules/treemap.js +16 -5
- data/lib/highcharts/version.rb +1 -1
- metadata +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
/**
|
2
|
-
* @license Highcharts JS v4.2.
|
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.
|
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
|
-
'':
|
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);
|
data/lib/highcharts/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2017-01-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|