app/assets/javascripts/highcharts/modules/parallel-coordinates.js in highcharts-rails-6.0.2 vs app/assets/javascripts/highcharts/modules/parallel-coordinates.js in highcharts-rails-6.0.3
- old
+ new
@@ -1,7 +1,7 @@
/**
- * @license Highcharts JS v6.0.2 (2017-10-20)
+ * @license Highcharts JS v6.0.3 (2017-11-14)
*
* Support for parallel coordinates in Highcharts
*
* (c) 2010-2017 Pawel Fus
*
@@ -135,11 +135,11 @@
});
/**
* Initialize parallelCoordinates
*/
- wrap(ChartProto, 'init', function(proceed, options) {
+ wrap(ChartProto, 'init', function(proceed, options, callback) {
var defaultyAxis = splat(options.yAxis || {}),
yAxisLength = defaultyAxis.length,
newYAxes = [];
/**
* Flag used in parallel coordinates plot to check if chart has ||-coords.
@@ -184,11 +184,11 @@
defaultXAxisOptions, // docs
splat(options.xAxis || {})[0]
);
}
- return proceed.call(this, options);
+ return proceed.call(this, options, callback);
});
/**
* Initialize parallelCoordinates
*/
@@ -292,11 +292,11 @@
* bind to this axis.
* Consider:
* - using series.points instead of series.yData
*/
wrap(AxisProto, 'getSeriesExtremes', function(proceed) {
- if (this.chart.hasParallelCoordinates && !this.isXAxis) {
+ if (this.chart && this.chart.hasParallelCoordinates && !this.isXAxis) {
var index = this.parallelPosition,
currentPoints = [];
each(this.series, function(series) {
if (defined(series.yData[index])) {
// We need to use push() beacause of null points
@@ -413,17 +413,21 @@
}
proceed.apply(this, Array.prototype.slice.call(arguments, 1));
});
function addFormattedValue(proceed) {
- var chart = this.series.chart,
+ var chart = this.series && this.series.chart,
config = proceed.apply(this, Array.prototype.slice.call(arguments, 1)),
formattedValue,
yAxisOptions,
labelFormat,
yAxis;
- if (chart.hasParallelCoordinates && !defined(config.formattedValue)) {
+ if (
+ chart &&
+ chart.hasParallelCoordinates &&
+ !defined(config.formattedValue)
+ ) {
yAxis = chart.yAxis[this.x];
yAxisOptions = yAxis.options;
labelFormat = pick(
/**