Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Update highcharts to 7.0.3 #47

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40,926 changes: 25,802 additions & 15,124 deletions app/assets/javascripts/highcharts.js

Large diffs are not rendered by default.

4,269 changes: 2,211 additions & 2,058 deletions app/assets/javascripts/highcharts/highcharts-3d.js

Large diffs are not rendered by default.

8,184 changes: 5,403 additions & 2,781 deletions app/assets/javascripts/highcharts/highcharts-more.js

Large diffs are not rendered by default.

36,415 changes: 20,709 additions & 15,706 deletions app/assets/javascripts/highcharts/lib/jspdf.js

Large diffs are not rendered by default.

1,654 changes: 1,278 additions & 376 deletions app/assets/javascripts/highcharts/lib/svg2pdf.js

Large diffs are not rendered by default.

2,797 changes: 1,931 additions & 866 deletions app/assets/javascripts/highcharts/modules/accessibility.js

Large diffs are not rendered by default.

7,108 changes: 5,712 additions & 1,396 deletions app/assets/javascripts/highcharts/modules/annotations.js

Large diffs are not rendered by default.

336 changes: 237 additions & 99 deletions app/assets/javascripts/highcharts/modules/boost-canvas.js

Large diffs are not rendered by default.

1,625 changes: 1,065 additions & 560 deletions app/assets/javascripts/highcharts/modules/boost.js

Large diffs are not rendered by default.

527 changes: 315 additions & 212 deletions app/assets/javascripts/highcharts/modules/broken-axis.js

Large diffs are not rendered by default.

380 changes: 202 additions & 178 deletions app/assets/javascripts/highcharts/modules/bullet.js

Large diffs are not rendered by default.

1,707 changes: 1,267 additions & 440 deletions app/assets/javascripts/highcharts/modules/data.js

Large diffs are not rendered by default.

248 changes: 150 additions & 98 deletions app/assets/javascripts/highcharts/modules/drag-panes.js

Large diffs are not rendered by default.

1,048 changes: 629 additions & 419 deletions app/assets/javascripts/highcharts/modules/drilldown.js

Large diffs are not rendered by default.

983 changes: 809 additions & 174 deletions app/assets/javascripts/highcharts/modules/export-data.js

Large diffs are not rendered by default.

1,757 changes: 1,169 additions & 588 deletions app/assets/javascripts/highcharts/modules/exporting.js

Large diffs are not rendered by default.

886 changes: 457 additions & 429 deletions app/assets/javascripts/highcharts/modules/funnel.js

Large diffs are not rendered by default.

7,222 changes: 6,424 additions & 798 deletions app/assets/javascripts/highcharts/modules/gantt.js

Large diffs are not rendered by default.

1,259 changes: 850 additions & 409 deletions app/assets/javascripts/highcharts/modules/grid-axis.js

Large diffs are not rendered by default.

1,372 changes: 830 additions & 542 deletions app/assets/javascripts/highcharts/modules/heatmap.js

Large diffs are not rendered by default.

555 changes: 306 additions & 249 deletions app/assets/javascripts/highcharts/modules/histogram-bellcurve.js

Large diffs are not rendered by default.

102 changes: 76 additions & 26 deletions app/assets/javascripts/highcharts/modules/item-series.js
Original file line number Diff line number Diff line change
@@ -1,40 +1,57 @@
/**
* @license Highcharts JS v6.0.3 (2017-11-14)
* @license Highcharts JS v7.0.3 (2019-02-06)
*
* Item series type for Highcharts
*
* (c) 2010-2017 Torstein Honsi
* (c) 2010-2019 Torstein Honsi
*
* License: www.highcharts.com/license
*/
'use strict';
(function(factory) {
(function (factory) {
if (typeof module === 'object' && module.exports) {
factory['default'] = factory;
module.exports = factory;
} else if (typeof define === 'function' && define.amd) {
define(function () {
return factory;
});
} else {
factory(Highcharts);
factory(typeof Highcharts !== 'undefined' ? Highcharts : undefined);
}
}(function(Highcharts) {
(function(H) {
/**
* (c) 2009-2017 Torstein Honsi
}(function (Highcharts) {
(function (H) {
/* *
*
* Item series type for Highcharts
* (c) 2009-2019 Torstein Honsi
*
* License: www.highcharts.com/license
*/
* Item series type for Highcharts
*
* License: www.highcharts.com/license
*
* */

/**
* @private
* @todo
* - Check update, remove etc.
* - Custom icons like persons, carts etc. Either as images, font icons or
* Highcharts symbols.
*/
var each = H.each,
extend = H.extend,



var extend = H.extend,
pick = H.pick,
seriesType = H.seriesType;

/**
* @private
* @class
* @name Highcharts.seriesTypes.item
*
* @augments Highcharts.Series
*/
seriesType('item', 'column', {
itemPadding: 0.2,
marker: {
Expand All @@ -45,12 +62,16 @@
}
}
}, {
drawPoints: function() {
drawPoints: function () {
var series = this,
renderer = series.chart.renderer,
seriesMarkerOptions = this.options.marker;
seriesMarkerOptions = this.options.marker,
itemPaddingTranslated = this.yAxis.transA *
series.options.itemPadding,
borderWidth = this.borderWidth,
crisp = borderWidth % 2 ? 0.5 : 1;

each(this.points, function(point) {
this.points.forEach(function (point) {
var yPos,
attr,
graphics,
Expand All @@ -61,8 +82,15 @@
pointMarkerOptions.symbol ||
seriesMarkerOptions.symbol
),
radius = pick(
pointMarkerOptions.radius,
seriesMarkerOptions.radius
),
size,
yTop;
yTop,
isSquare = symbol !== 'rect',
x,
y;

point.graphics = graphics = point.graphics || {};
pointAttr = point.pointAttr ?
Expand All @@ -73,6 +101,11 @@
series.pointAttribs(point, point.selected && 'select');
delete pointAttr.r;

if (series.chart.styledMode) {
delete pointAttr.stroke;
delete pointAttr['stroke-width'];
}

if (point.y !== null) {

if (!point.graphic) {
Expand All @@ -83,18 +116,28 @@
yTop = pick(point.stackY, point.y);
size = Math.min(
point.pointWidth,
(
series.yAxis.transA *
(1 - series.options.itemPadding)
)
series.yAxis.transA - itemPaddingTranslated
);
for (yPos = yTop; yPos > yTop - point.y; yPos--) {

x = point.barX + (
isSquare ?
point.pointWidth / 2 - size / 2 :
0
);
y = series.yAxis.toPixels(yPos, true) +
itemPaddingTranslated / 2;

if (series.options.crisp) {
x = Math.round(x) - crisp;
y = Math.round(y) + crisp;
}
attr = {
x: point.barX + point.pointWidth / 2 - size / 2,
y: series.yAxis.toPixels(yPos, true) - size / 2,
width: size,
height: size
x: x,
y: y,
width: Math.round(isSquare ? size : point.pointWidth),
height: Math.round(size),
r: radius
};

if (graphics[itemY]) {
Expand All @@ -108,7 +151,7 @@
itemY--;
}
}
H.objectEach(graphics, function(graphic, key) {
H.objectEach(graphics, function (graphic, key) {
if (!graphic.isActive) {
graphic.destroy();
delete graphic[key];
Expand All @@ -121,6 +164,13 @@
}
});

H.SVGRenderer.prototype.symbols.rect = function (x, y, w, h, options) {
return H.SVGRenderer.prototype.symbols.callout(x, y, w, h, options);
};

}(Highcharts));
return (function () {


}());
}));
Loading