module.exports =
/******/ (function(modules) { // webpackBootstrap
/******/ 	// The module cache
/******/ 	var installedModules = {};
/******/
/******/ 	// The require function
/******/ 	function __webpack_require__(moduleId) {
/******/
/******/ 		// Check if module is in cache
/******/ 		if(installedModules[moduleId]) {
/******/ 			return installedModules[moduleId].exports;
/******/ 		}
/******/ 		// Create a new module (and put it into the cache)
/******/ 		var module = installedModules[moduleId] = {
/******/ 			i: moduleId,
/******/ 			l: false,
/******/ 			exports: {}
/******/ 		};
/******/
/******/ 		// Execute the module function
/******/ 		modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
/******/
/******/ 		// Flag the module as loaded
/******/ 		module.l = true;
/******/
/******/ 		// Return the exports of the module
/******/ 		return module.exports;
/******/ 	}
/******/
/******/
/******/ 	// expose the modules object (__webpack_modules__)
/******/ 	__webpack_require__.m = modules;
/******/
/******/ 	// expose the module cache
/******/ 	__webpack_require__.c = installedModules;
/******/
/******/ 	// identity function for calling harmony imports with the correct context
/******/ 	__webpack_require__.i = function(value) { return value; };
/******/
/******/ 	// define getter function for harmony exports
/******/ 	__webpack_require__.d = function(exports, name, getter) {
/******/ 		if(!__webpack_require__.o(exports, name)) {
/******/ 			Object.defineProperty(exports, name, {
/******/ 				configurable: false,
/******/ 				enumerable: true,
/******/ 				get: getter
/******/ 			});
/******/ 		}
/******/ 	};
/******/
/******/ 	// getDefaultExport function for compatibility with non-harmony modules
/******/ 	__webpack_require__.n = function(module) {
/******/ 		var getter = module && module.__esModule ?
/******/ 			function getDefault() { return module['default']; } :
/******/ 			function getModuleExports() { return module; };
/******/ 		__webpack_require__.d(getter, 'a', getter);
/******/ 		return getter;
/******/ 	};
/******/
/******/ 	// Object.prototype.hasOwnProperty.call
/******/ 	__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
/******/
/******/ 	// __webpack_public_path__
/******/ 	__webpack_require__.p = "";
/******/
/******/ 	// Load entry module and return exports
/******/ 	return __webpack_require__(__webpack_require__.s = 179);
/******/ })
/************************************************************************/
/******/ ({

/***/ 158:
/***/ (function(module, exports, __webpack_require__) {

var Component = __webpack_require__(9)(
  /* script */
  __webpack_require__(168),
  /* template */
  __webpack_require__(444),
  /* styles */
  null,
  /* scopeId */
  null,
  /* moduleIdentifier (server only) */
  null
)

module.exports = Component.exports


/***/ }),

/***/ 168:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _options = __webpack_require__(180);

exports.default = {
  name: 'XpLine',

  data: function data() {
    return {
      options: {}
    };
  },


  props: {
    settings: {
      type: Object,
      default: function _default() {}
    }
  },

  watch: {
    settings: function settings(newVal) {
      this.options = (0, _options.setOptions)(this.settings);
    }
  },

  mounted: function mounted() {
    this.options = (0, _options.setOptions)(this.settings);
  }
}; //
//
//
//

/***/ }),

/***/ 179:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});

var _line = __webpack_require__(158);

var _line2 = _interopRequireDefault(_line);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

/* istanbul ignore next */
_line2.default.install = function (Vue) {
  Vue.component(_line2.default.name, _line2.default);
};

exports.default = _line2.default;

/***/ }),

/***/ 180:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.setOptions = undefined;

var _options = __webpack_require__(21);

// 设置图表系列
var setSeries = function setSeries(ret, options) {
  ret.series = []; // clear old series
  options.series = options.series || [];
  if (!Array.isArray(options.series)) {
    options.series = [options.series];
  }
  options.series.forEach(function (item, index) {
    var temp = Object.assign({}, item, {
      type: item.type || 'line',
      silent: (0, _options.setUndef)(item.silent, true),
      smooth: (0, _options.setUndef)(item.smooth, true)
    });
    temp.label = (0, _options.setLabel)(item);
    temp.itemStyle = (0, _options.setItem)(item);['lineStyle', 'areaStyle'].forEach(function (key) {
      temp[key] = (0, _options.setOthers)(item, key, 'line');
    });
    ret.series.push(temp);
  });
};

// 设置图表数据
/**
 * @author xiaoping
 * @email edwardhjp@gmail.com
 * @create date 2017-05-18 09:26:02
 * @modify date 2017-05-19 09:54:22
 * @desc [折线图options]
*/

var setData = function setData(ret, options) {
  if (options.datas) {
    var datas = {};
    if (Array.isArray(options.datas)) {
      // 如果是array就是series的data
      datas.series = options.datas;
    } else {
      datas = options.datas;
    }
    if (datas.series) {
      datas.series.forEach(function (data, index) {
        var temp = ret.series[index];
        if (temp) {
          temp.data = data;
        }
      });
    }
    if (datas.xAxis) {
      ret.xAxis.data = datas.xAxis;
    } else if (!datas.xAxis && ret.xAxis.type === 'category') {
      ret.xAxis.data = datas.series[0].map(function (item) {
        return item[0];
      });
    }
    if (datas.yAxis) {
      ret.yAxis.data = datas.yAxis;
    } else if (!datas.yAxis && ret.yAxis.type === 'category') {
      ret.yAxis.data = datas.series[0].map(function (item) {
        return item[1];
      });
    }
  }
};

var setOptions = function setOptions(options) {
  var ret = (0, _options.setInitOpts)(options);
  (0, _options.setAxis)(ret, options);
  setSeries(ret, options);
  setData(ret, options);
  return options.custom ? options : ret;
};

exports.setOptions = setOptions;

/***/ }),

/***/ 21:
/***/ (function(module, exports, __webpack_require__) {

"use strict";


Object.defineProperty(exports, "__esModule", {
  value: true
});
/**
 * @author xiaoping
 * @email edwardhjp@gmail.com
 * @create date 2017-05-18 09:26:02
 * @modify date 2017-06-02 07:20:35
 * @desc [通用图options]
*/

var setUndef = function setUndef(bool, ret) {
  return bool === undefined ? ret : bool;
};

// 设置初始化内容
var setInitial = function setInitial(ret, options) {
  ['color', 'backgroundColor', 'textStyle'].forEach(function (item) {
    if (options[item]) {
      ret[item] = options[item];
    }
  });['legend', 'tooltip', 'title'].forEach(function (item) {
    if (options[item]) {
      ret[item] = options[item];
      ret[item].textStyle = {
        color: ret[item].color,
        fontStyle: ret[item].fontStyle,
        fontWeight: ret[item].fontWeight,
        fontFamily: ret[item].fontFamily,
        fontSize: ret[item].fontSize
      };
    }
  });
  // 初始化grid
  ret.grid = Object.assign({}, {
    top: '10%',
    bottom: '10%',
    left: '10%',
    right: '10%'
  }, options.grid);
  // 初始化series
  ret.series = [];
  return ret;
};

// 设置图表数据
var setData = function setData(ret, options) {
  var datas = options.datas || {};
  if (datas.legend) {
    if (!ret.legend) ret.legend = {};
    ret.legend.data = datas.legend.map(function (item) {
      return {
        name: item.name,
        icon: item.icon || 'circle',
        textStyle: {
          color: item.color,
          fontStyle: item.fontStyle,
          fontWeight: item.fontWeight,
          fontFamily: item.fontFamily,
          fontSize: item.fontSize
        }
      };
    });
  }
  return ret;
};

function setInitOpts() {
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};

  var ret = {};
  setInitial(ret, options);
  setData(ret, options);
  return options.custom ? options : ret;
}

var setAxis = function setAxis(ret, options) {
  var x = options.xAxis || {};
  var y = options.yAxis || {};
  ret.xAxis = Object.assign({}, x);
  ret.yAxis = Object.assign({}, y);[ret.xAxis, ret.yAxis].forEach(function (item, index) {
    var key = index === 0 ? x : y;
    if (index === 0) {
      item.type = key.type || 'category';
    } else {
      item.type = key.type || 'value';
    }
    item.boundaryGap = setUndef(key.boundaryGap, true);
    item.nameGap = setUndef(key.nameGap, 15);
    item.splitNumber = setUndef(key.splitNumber, 5);
    item.nameTextStyle = {
      color: item.nameColor,
      fontStyle: key.nameFontStyle,
      fontWeight: key.nameFontWeight,
      fontFamily: key.nameFontFamily,
      fontSize: key.nameFontSize
    };
    item.axisLine = {
      show: key.lineShow,
      onZero: key.lineOnZero,
      lineStyle: {
        color: key.lineColor,
        width: key.lineWidth,
        type: key.lineType,
        shadowBlur: key.lineShadowBlur,
        shadowColor: key.lineShadowColor,
        shadowOffsetX: key.lineShadowOffsetX,
        shadowOffsetY: key.lineShadowOffsetY,
        opacity: key.lineOpacity
      }
    };
    item.axisTick = {
      show: key.tickShow,
      alignWithLabel: key.tickAlignWithLabel,
      interval: setUndef(key.tickInterval, 'auto'),
      inside: key.tickInside,
      length: setUndef(key.tickLength, 5),
      lineStyle: {
        color: key.tickColor,
        width: key.tickWidth,
        type: key.tickType,
        shadowBlur: key.tickShadowBlur,
        shadowColor: key.tickShadowColor,
        shadowOffsetX: key.tickShadowOffsetX,
        shadowOffsetY: key.tickShadowOffsetY,
        opacity: key.tickOpacity
      }
    };
    item.axisLabel = {
      show: setUndef(key.labelShow, true),
      interval: setUndef(key.labelInterval, 'auto'),
      inside: key.labelInside,
      rotate: key.labelRotate,
      margin: setUndef(key.labelMargin, 8),
      formatter: key.labelFormatter,
      showMinLabel: key.labelShowMaxLabel,
      showMaxLabel: key.labelShowMaxLabel,
      textStyle: {
        color: key.labelColor,
        fontStyle: key.labelFontStyle,
        fontWeight: key.labelFontWeight,
        fontFamily: key.labelFontFamily,
        fontSize: key.labelFontSize,
        align: key.labelAlign,
        baseline: key.labelBaseline
      }
    };
    item.splitLine = {
      show: setUndef(key.splitLineShow, true),
      interval: setUndef(key.splitLineInterval, 'auto'),
      lineStyle: {
        color: key.splitLineColor,
        width: setUndef(key.splitLineWidth, 1),
        type: key.splitLineType,
        shadowBlur: key.splitLineShadowBlur,
        shadowColor: key.splitLineShadowColor,
        shadowOffsetX: key.splitLineShadowOffsetX,
        shadowOffsetY: key.splitLineShadowOffsetY,
        opacity: key.splitLineOpacity
      }
    };
    item.splitArea = {
      show: key.splitAreaShow,
      interval: setUndef(key.splitAreaInterval, 'auto'),
      areaStyle: {
        color: key.splitAreaColor,
        shadowBlur: key.splitAreaShadowBlur,
        shadowColor: key.splitAreaShadowColor,
        shadowOffsetX: key.splitAreaShadowOffsetX,
        shadowOffsetY: key.splitAreaShadowOffsetY,
        opacity: key.splitAreaOpacity
      }
    };
  });
  return ret;
};

var setLabel = function setLabel(item) {
  var ret = {};['label', 'elabel'].forEach(function (pre) {
    ret[pre === 'label' ? 'normal' : 'emphasis'] = {
      show: setUndef(item[pre + 'Show'], true),
      position: item[pre + 'Position'],
      formatter: setUndef(item[pre + 'Formatter'], '{c}'),
      textStyle: {
        color: item[pre + 'Color'],
        fontStyle: item[pre + 'FontStyle'],
        fontWeight: item[pre + 'FontWeight'],
        fontFamily: item[pre + 'FontFamily'],
        fontSize: item[pre + 'FontSize']
      }
    };
  });
  return ret;
};

var setItem = function setItem(item) {
  var ret = {};['item', 'eitem'].forEach(function (pre) {
    ret[pre === 'item' ? 'normal' : 'emphasis'] = {
      color: item[pre + 'Color'],
      borderColor: item[pre + 'BorderColor'],
      borderWidth: item[pre + 'BorderWidth'],
      borderType: item[pre + 'BorderType'],
      barBorderRadius: item[pre + 'BarBorderRadius'],
      shadowBlur: item[pre + 'ShadowBlur'],
      shadowColor: item[pre + 'ShadowColor'],
      shadowOffsetX: item[pre + 'ShadowOffsetX'],
      shadowOffsetY: item[pre + 'ShadowOffsetY'],
      opacity: item[pre + 'Opacity']
    };
  });
  return ret;
};

var setOthers = function setOthers(item, key, type) {
  var ret = {};
  switch (type) {
    case 'line':
      if (key === 'lineStyle') {
        var pre = 'line';
        ret.normal = {
          color: item[pre + 'Color'],
          width: item[pre + 'Width'],
          shadowBlur: item[pre + 'ShadowBlur'],
          shadowColor: item[pre + 'ShadowColor'],
          shadowOffsetX: item[pre + 'ShadowOffsetX'],
          shadowOffsetY: item[pre + 'ShadowOffsetY'],
          opacity: item[pre + 'Opacity']
        };
      } else if (key === 'areaStyle') {
        var _pre = 'area';
        ret.normal = {
          color: item[_pre + 'Color'],
          shadowBlur: item[_pre + 'ShadowBlur'],
          shadowColor: item[_pre + 'ShadowColor'],
          shadowOffsetX: item[_pre + 'ShadowOffsetX'],
          shadowOffsetY: item[_pre + 'ShadowOffsetY'],
          opacity: item[_pre + 'Opacity']
        };
        if (item.areaType === 'linear') {
          ret.normal.color = {
            type: 'linear',
            x: 0,
            y: 0,
            x2: 0,
            y2: 1,
            colorStops: item.areaColor.map(function (item, index) {
              return {
                offset: index,
                color: item
              };
            }),
            globalCoord: false
          };
        } else if (item.areaType === 'radial') {
          ret.normal.color = {
            type: 'radial',
            x: 0.5,
            y: 0.5,
            r: 0.5,
            colorStops: item.areaColor.map(function (item, index) {
              return {
                offset: index,
                color: item
              };
            }),
            globalCoord: false
          };
        }
      }
      break;
    case 'pie':
      if (key === 'labelLine') {
        ['normal', 'emphasis'].forEach(function (pre) {
          var key = pre === 'normal' ? '' : 'e';
          ret[pre] = {
            show: setUndef(item[key + 'labelLineShow'], true),
            // length: setUndef(item[key + 'labelLineLength'], 5),
            // length2: item[key + 'labelLineLength2'] || 0,
            smooth: item[key + 'labelLineSmooth'] || false,
            lineStyle: item[key + 'labelLineStyle'] || {}
          };
        });
      }
      break;
    default:
      break;
  }
  return ret;
};

exports.setInitOpts = setInitOpts;
exports.setUndef = setUndef;
exports.setAxis = setAxis;
exports.setLabel = setLabel;
exports.setItem = setItem;
exports.setOthers = setOthers;

/***/ }),

/***/ 444:
/***/ (function(module, exports) {

module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;
  return _c('chart', {
    ref: "line",
    staticClass: "xp-line",
    attrs: {
      "options": _vm.options,
      "auto-resize": ""
    }
  })
},staticRenderFns: []}

/***/ }),

/***/ 9:
/***/ (function(module, exports) {

/* globals __VUE_SSR_CONTEXT__ */

// this module is a runtime utility for cleaner component module output and will
// be included in the final webpack user bundle

module.exports = function normalizeComponent (
  rawScriptExports,
  compiledTemplate,
  injectStyles,
  scopeId,
  moduleIdentifier /* server only */
) {
  var esModule
  var scriptExports = rawScriptExports = rawScriptExports || {}

  // ES6 modules interop
  var type = typeof rawScriptExports.default
  if (type === 'object' || type === 'function') {
    esModule = rawScriptExports
    scriptExports = rawScriptExports.default
  }

  // Vue.extend constructor export interop
  var options = typeof scriptExports === 'function'
    ? scriptExports.options
    : scriptExports

  // render functions
  if (compiledTemplate) {
    options.render = compiledTemplate.render
    options.staticRenderFns = compiledTemplate.staticRenderFns
  }

  // scopedId
  if (scopeId) {
    options._scopeId = scopeId
  }

  var hook
  if (moduleIdentifier) { // server build
    hook = function (context) {
      // 2.3 injection
      context =
        context || // cached call
        (this.$vnode && this.$vnode.ssrContext) || // stateful
        (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional
      // 2.2 with runInNewContext: true
      if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
        context = __VUE_SSR_CONTEXT__
      }
      // inject component styles
      if (injectStyles) {
        injectStyles.call(this, context)
      }
      // register component module identifier for async chunk inferrence
      if (context && context._registeredComponents) {
        context._registeredComponents.add(moduleIdentifier)
      }
    }
    // used by ssr in case component is cached and beforeCreate
    // never gets called
    options._ssrRegister = hook
  } else if (injectStyles) {
    hook = injectStyles
  }

  if (hook) {
    var functional = options.functional
    var existing = functional
      ? options.render
      : options.beforeCreate
    if (!functional) {
      // inject component registration as beforeCreate hook
      options.beforeCreate = existing
        ? [].concat(existing, hook)
        : [hook]
    } else {
      // register for functioal component in vue file
      options.render = function renderWithStyleInjection (h, context) {
        hook.call(context)
        return existing(h, context)
      }
    }
  }

  return {
    esModule: esModule,
    exports: scriptExports,
    options: options
  }
}


/***/ })

/******/ });