example/public/ueditor/third-party/highcharts/highcharts.src.js
function () {
		
		// Define or reset areaPath
		this.areaPath = [];
		
		// Call the base method
		Series.prototype.drawGraph.apply(this);
		
		// Define local variables
		var series = this,
			areaPath = this.areaPath,
			options = this.options,
			negativeColor = options.negativeColor,
			negativeFillColor = options.negativeFillColor,
			props = [['area', this.color, options.fillColor]]; // area name, main color, fill color
		
		if (negativeColor || negativeFillColor) {
			props.push(['areaNeg', negativeColor, negativeFillColor]);
		}
		
		each(props, function (prop) {
			var areaKey = prop[0],
				area = series[areaKey];
				
			// Create or update the area
			if (area) { // update
				area.animate({ d: areaPath });
	
			} else { // create
				series[areaKey] = series.chart.renderer.path(areaPath)
					.attr({
						fill: pick(
							prop[2],
							Color(prop[1]).setOpacity(pick(options.fillOpacity, 0.75)).get()
						),
						zIndex: 0 // #1069
					}).add(series.group);
			}
		});
	}
function () {
		
		// Define or reset areaPath
		this.areaPath = [];
		
		// Call the base method
		Series.prototype.drawGraph.apply(this);
		
		// Define local variables
		var series = this,
			areaPath = this.areaPath,
			options = this.options,
			negativeColor = options.negativeColor,
			negativeFillColor = options.negativeFillColor,
			props = [['area', this.color, options.fillColor]]; // area name, main color, fill color
		
		if (negativeColor || negativeFillColor) {
			props.push(['areaNeg', negativeColor, negativeFillColor]);
		}
		
		each(props, function (prop) {
			var areaKey = prop[0],
				area = series[areaKey];
				
			// Create or update the area
			if (area) { // update
				area.animate({ d: areaPath });
	
			} else { // create
				series[areaKey] = series.chart.renderer.path(areaPath)
					.attr({
						fill: pick(
							prop[2],
							Color(prop[1]).setOpacity(pick(options.fillOpacity, 0.75)).get()
						),
						zIndex: 0 // #1069
					}).add(series.group);
			}
		});
	}
function ( ) { // Define or reset areaPath this . areaPath = [ ] ; // Call the base method Series . prototype . drawGraph . apply ( this ) ; // Define local variables var series = this , areaPath = this . areaPath , options = this . options , negativeColor = options . negativeColor , negativeFillColor = options . negativeFillColor , props = [ [ 'area' , this . color , options . fillColor ] ] ; // area name, main color, fill color if ( negativeColor || negativeFillColor ) { props . push ( [ 'areaNeg' , negativeColor , negativeFillColor ] ) ; } each ( props , function ( prop ) { var areaKey = prop [ 0 ] , area = series [ areaKey ] ; // Create or update the area if ( area ) { // update area . animate ( { d : areaPath } ) ; } else { // create series [ areaKey ] = series . chart . renderer . path ( areaPath ) . attr ( { fill : pick ( prop [ 2 ] , Color ( prop [ 1 ] ) . setOpacity ( pick ( options . fillOpacity , 0.75 ) ) . get ( ) ) , zIndex : 0 // #1069 } ) . add ( series . group ) ; } } ) ; }
Draw the graph and the underlying area. This method calls the Series base
function and adds the area. The areaPath is calculated in the getSegmentPath
method called from Series.prototype.drawGraph.
Draw the graph and the underlying area . This method calls the Series base function and adds the area . The areaPath is calculated in the getSegmentPath method called from Series . prototype . drawGraph .