example/public/ueditor/third-party/highcharts/highcharts.src.js
function () {
		var options = this.options,
			chart = this.chart,
			renderer = chart.renderer,
			negativeColor = options.negativeColor || options.negativeFillColor,
			translatedThreshold,
			posAttr,
			negAttr,
			graph = this.graph,
			area = this.area,
			posClip = this.posClip,
			negClip = this.negClip,
			chartWidth = chart.chartWidth,
			chartHeight = chart.chartHeight,
			chartSizeMax = mathMax(chartWidth, chartHeight),
			yAxis = this.yAxis,
			above,
			below;
		
		if (negativeColor && (graph || area)) {
			translatedThreshold = mathRound(yAxis.toPixels(options.threshold || 0, true));
			above = {
				x: 0,
				y: 0,
				width: chartSizeMax,
				height: translatedThreshold
			};
			below = {
				x: 0,
				y: translatedThreshold,
				width: chartSizeMax,
				height: chartSizeMax
			};
			
			if (chart.inverted) {

				above.height = below.y = chart.plotWidth - translatedThreshold;
				if (renderer.isVML) {
					above = {
						x: chart.plotWidth - translatedThreshold - chart.plotLeft,
						y: 0,
						width: chartWidth,
						height: chartHeight
					};
					below = {
						x: translatedThreshold + chart.plotLeft - chartWidth,
						y: 0,
						width: chart.plotLeft + translatedThreshold,
						height: chartWidth
					};
				}
			}
			
			if (yAxis.reversed) {
				posAttr = below;
				negAttr = above;
			} else {
				posAttr = above;
				negAttr = below;
			}
		
			if (posClip) { // update
				posClip.animate(posAttr);
				negClip.animate(negAttr);
			} else {
				
				this.posClip = posClip = renderer.clipRect(posAttr);
				this.negClip = negClip = renderer.clipRect(negAttr);
				
				if (graph && this.graphNeg) {
					graph.clip(posClip);
					this.graphNeg.clip(negClip);	
				}
				
				if (area) {
					area.clip(posClip);
					this.areaNeg.clip(negClip);
				} 
			} 
		}	
	}
function () {
		var options = this.options,
			chart = this.chart,
			renderer = chart.renderer,
			negativeColor = options.negativeColor || options.negativeFillColor,
			translatedThreshold,
			posAttr,
			negAttr,
			graph = this.graph,
			area = this.area,
			posClip = this.posClip,
			negClip = this.negClip,
			chartWidth = chart.chartWidth,
			chartHeight = chart.chartHeight,
			chartSizeMax = mathMax(chartWidth, chartHeight),
			yAxis = this.yAxis,
			above,
			below;
		
		if (negativeColor && (graph || area)) {
			translatedThreshold = mathRound(yAxis.toPixels(options.threshold || 0, true));
			above = {
				x: 0,
				y: 0,
				width: chartSizeMax,
				height: translatedThreshold
			};
			below = {
				x: 0,
				y: translatedThreshold,
				width: chartSizeMax,
				height: chartSizeMax
			};
			
			if (chart.inverted) {

				above.height = below.y = chart.plotWidth - translatedThreshold;
				if (renderer.isVML) {
					above = {
						x: chart.plotWidth - translatedThreshold - chart.plotLeft,
						y: 0,
						width: chartWidth,
						height: chartHeight
					};
					below = {
						x: translatedThreshold + chart.plotLeft - chartWidth,
						y: 0,
						width: chart.plotLeft + translatedThreshold,
						height: chartWidth
					};
				}
			}
			
			if (yAxis.reversed) {
				posAttr = below;
				negAttr = above;
			} else {
				posAttr = above;
				negAttr = below;
			}
		
			if (posClip) { // update
				posClip.animate(posAttr);
				negClip.animate(negAttr);
			} else {
				
				this.posClip = posClip = renderer.clipRect(posAttr);
				this.negClip = negClip = renderer.clipRect(negAttr);
				
				if (graph && this.graphNeg) {
					graph.clip(posClip);
					this.graphNeg.clip(negClip);	
				}
				
				if (area) {
					area.clip(posClip);
					this.areaNeg.clip(negClip);
				} 
			} 
		}	
	}
function ( ) { var options = this . options , chart = this . chart , renderer = chart . renderer , negativeColor = options . negativeColor || options . negativeFillColor , translatedThreshold , posAttr , negAttr , graph = this . graph , area = this . area , posClip = this . posClip , negClip = this . negClip , chartWidth = chart . chartWidth , chartHeight = chart . chartHeight , chartSizeMax = mathMax ( chartWidth , chartHeight ) , yAxis = this . yAxis , above , below ; if ( negativeColor && ( graph || area ) ) { translatedThreshold = mathRound ( yAxis . toPixels ( options . threshold || 0 , true ) ) ; above = { x : 0 , y : 0 , width : chartSizeMax , height : translatedThreshold } ; below = { x : 0 , y : translatedThreshold , width : chartSizeMax , height : chartSizeMax } ; if ( chart . inverted ) { above . height = below . y = chart . plotWidth - translatedThreshold ; if ( renderer . isVML ) { above = { x : chart . plotWidth - translatedThreshold - chart . plotLeft , y : 0 , width : chartWidth , height : chartHeight } ; below = { x : translatedThreshold + chart . plotLeft - chartWidth , y : 0 , width : chart . plotLeft + translatedThreshold , height : chartWidth } ; } } if ( yAxis . reversed ) { posAttr = below ; negAttr = above ; } else { posAttr = above ; negAttr = below ; } if ( posClip ) { // update posClip . animate ( posAttr ) ; negClip . animate ( negAttr ) ; } else { this . posClip = posClip = renderer . clipRect ( posAttr ) ; this . negClip = negClip = renderer . clipRect ( negAttr ) ; if ( graph && this . graphNeg ) { graph . clip ( posClip ) ; this . graphNeg . clip ( negClip ) ; } if ( area ) { area . clip ( posClip ) ; this . areaNeg . clip ( negClip ) ; } } } }
Clip the graphs into the positive and negative coloured graphs
Clip the graphs into the positive and negative coloured graphs