"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;
var _react = _interopRequireDefault(require("react"));
var _propTypes = _interopRequireDefault(require("prop-types"));
var _echarts = _interopRequireDefault(require("echarts"));
var _echartsForReact = _interopRequireDefault(require("echarts-for-react"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
var AlarmDetail = function AlarmDetail(props) {
  var data = props.data;
  window.console.log(data);
  var option = {
    tooltip: {
      trigger: 'axis'
    },
    grid: {
      left: '5%',
      right: '5%',
      bottom: 20
    },
    legend: {
      show: false
    },
    xAxis: [{
      type: 'category',
      data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'],
      axisPointer: {
        type: 'shadow'
      },
      axisTick: {
        show: false
      },
      axisLabel: {
        color: '#fff'
      }
    }],
    yAxis: [{
      type: 'value',
      name: '(次)',
      min: 0,
      interval: 100,
      nameTextStyle: {
        color: '#fff'
      },
      splitNumber: 5,
      axisTick: {
        show: false
      },
      axisLabel: {
        color: '#fff'
      },
      splitLine: {
        lineStyle: {
          type: 'dashed',
          color: 'rgba(151,151,151,0.28)'
        }
      }
    }],
    series: [{
      type: 'bar',
      barWidth: 18,
      data: [20, 49, 70, 232, 256],
      itemStyle: {
        color: new _echarts["default"].graphic.LinearGradient(0, 1, 0, 0, [{
          offset: 0,
          color: '#0C3D44'
        }, {
          offset: 1,
          color: '#37D3B0'
        }])
      }
    }]
  };
  return /*#__PURE__*/_react["default"].createElement(_echartsForReact["default"], {
    option: option,
    notMerge: true,
    lazyUpdate: true,
    style: {
      height: '100%',
      width: '100%'
    }
  });
};
AlarmDetail.propTypes = {
  data: _propTypes["default"].array
};
var _default = AlarmDetail;
exports["default"] = _default;
//# sourceMappingURL=AlarmDetail.js.map
