2
2
// @compilation_level SIMPLE_OPTIMIZATIONS
3
3
4
4
/**
5
- * @license Highcharts JS v4.1.2 (2015-02-27)
5
+ * @license Highcharts JS v4.1.3 (2015-02-27)
6
6
*
7
7
* (c) 2009-2014 Torstein Honsi
8
8
*
@@ -56,7 +56,7 @@ var UNDEFINED,
56
56
charts = [ ] ,
57
57
chartCount = 0 ,
58
58
PRODUCT = 'Highcharts' ,
59
- VERSION = '4.1.2 ' ,
59
+ VERSION = '4.1.3 ' ,
60
60
61
61
// some constants for frequently used strings
62
62
DIV = 'div' ,
@@ -1259,8 +1259,8 @@ defaultOptions = {
1259
1259
global : {
1260
1260
useUTC : true ,
1261
1261
//timezoneOffset: 0,
1262
- canvasToolsURL : 'http://code.highcharts.com/4.1.2 /modules/canvas-tools.js' ,
1263
- VMLRadialGradientURL : 'http://code.highcharts.com/4.1.2 /gfx/vml-radial-gradient.png'
1262
+ canvasToolsURL : 'http://code.highcharts.com/4.1.3 /modules/canvas-tools.js' ,
1263
+ VMLRadialGradientURL : 'http://code.highcharts.com/4.1.3 /gfx/vml-radial-gradient.png'
1264
1264
} ,
1265
1265
chart : {
1266
1266
//animation: true,
@@ -2828,7 +2828,7 @@ SVGElement.prototype = {
2828
2828
titleNode = doc . createElementNS ( SVG_NS , 'title' ) ;
2829
2829
this . element . appendChild ( titleNode ) ;
2830
2830
}
2831
- titleNode . textContent = pick ( value , '' ) . replace ( / < [ ^ > ] * > / g, '' ) ; // #3276
2831
+ titleNode . textContent = ( String ( pick ( value ) , '' ) ) . replace ( / < [ ^ > ] * > / g, '' ) ; // #3276 #3895
2832
2832
} ,
2833
2833
textSetter : function ( value ) {
2834
2834
if ( value !== this . textStr ) {
@@ -14279,7 +14279,8 @@ Series.prototype = {
14279
14279
zoneAxis = this . zoneAxis || 'y' ,
14280
14280
axis = this [ zoneAxis + 'Axis' ] ,
14281
14281
reversed = axis . reversed ,
14282
- horiz = axis . horiz ;
14282
+ horiz = axis . horiz ,
14283
+ ignoreZones = false ;
14283
14284
14284
14285
if ( zones . length && ( graph || area ) ) {
14285
14286
// The use of the Color Threshold assumes there are no gaps
@@ -14292,6 +14293,10 @@ Series.prototype = {
14292
14293
translatedFrom = pick ( translatedTo , ( reversed ? ( horiz ? chart . plotWidth : 0 ) : ( horiz ? 0 : axis . toPixels ( axis . min ) ) ) ) ;
14293
14294
translatedTo = mathRound ( axis . toPixels ( pick ( threshold . value , axis . max ) , true ) ) ;
14294
14295
14296
+ if ( ignoreZones ) {
14297
+ translatedFrom = translatedTo = axis . toPixels ( axis . max ) ;
14298
+ }
14299
+
14295
14300
if ( axis . isXAxis ) {
14296
14301
clipAttr = {
14297
14302
x : reversed ? translatedTo : translatedFrom ,
@@ -14345,6 +14350,8 @@ Series.prototype = {
14345
14350
series [ 'colorArea' + i ] . clip ( clips [ i ] ) ;
14346
14351
}
14347
14352
}
14353
+ // if this zone extends out of the axis, ignore the others
14354
+ ignoreZones = threshold . value > axis . max ;
14348
14355
} ) ;
14349
14356
this . clips = clips ;
14350
14357
}
@@ -17528,7 +17535,7 @@ if (seriesTypes.column) {
17528
17535
17529
17536
17530
17537
/**
17531
- * Highcharts JS v4.1.2 (2015-02-27)
17538
+ * Highcharts JS v4.1.3 (2015-02-27)
17532
17539
* Highcharts module to hide overlapping data labels. This module is included by default in Highmaps.
17533
17540
*
17534
17541
* (c) 2010-2014 Torstein Honsi
0 commit comments