"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = Radar;
var _react = _interopRequireDefault(require("react"));
var _echartsForReact = _interopRequireDefault(require("echarts-for-react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
function Radar(props) {
  var value = props.value,
    indicator = props.indicator;
  var option = {
    legend: {
      show: false
    },
    grid: {
      top: '10%',
      left: 'left',
      right: '10%',
      bottom: 10
    },
    radar: {
      // shape: 'circle',
      radius: '70%',
      indicator: indicator || [],
      nameGap: 8,
      axisName: {
        color: '#4EFFDA'
      },
      splitLine: {
        lineStyle: {
          color: '#C7C7C7'
        }
      },
      splitArea: {
        areaStyle: {
          color: ['#17363D']
        }
      }
    },
    series: [{
      name: '雷达',
      type: 'radar',
      data: [{
        value: value || [],
        itemStyle: {
          color: '#2FE7EE'
        },
        areaStyle: {
          color: '#4EFFDA'
        }
      }]
    }]
  };
  return /*#__PURE__*/_react["default"].createElement(_echartsForReact["default"], {
    option: option,
    notMerge: true,
    lazyUpdate: true,
    style: {
      height: '100%',
      width: '100%'
    }
  });
}
//# sourceMappingURL=Radar.js.map
