App2.js 1.39 KB

import React, { Component } from 'react';
import './App.css';
import axios from 'axios';
import 'bootstrap/dist/css/bootstrap.min.css';
import 'tui-chart/dist/tui-chart.css'
import {ColumnChart} from '@toast-ui/react-chart'


const data = {
  categories: ['월', '화','수', '목', '금','토','일'],
  series: [
      {
          name: ['심연 1채'],
          data: [20, 15, 50, 7, 40, 40,100]
      },
      {
          name: '2위',
          data: [8, 10, 7, 20, 50, 30,80]
      },
      {
        name: '3위',
        data: [20, 15, 50, 7, 40, 40,4]
    },
    {
        name: '4위',
        data: [8, 10, 7, 20, 50, 30,5]
    }
  ]
};

const options = {
  chart: {
        width: 1160,
        height: 650,
        title: 'Monthly Revenue',
        format: '1,000'
    },
    yAxis: {
        title: '아이템 드롭 갯수',
        min: 0,
        max: 100,
        suffix: '개'
    },
    xAxis: {
        title: '날짜',
    },
    series: {
        showLabel: true
    },
    legend: {
      align: 'top'
  }
};

class App2 extends Component{
  constructor(props) {
    super(props)
    this.state = {
      host : '',
      searchList: this.props.searchList,
      myEpicData: [],  
      myChannelData: [],    
      screenWidth: 0, //보여지는 윈도우 가로길이
    }
  }
  componentDidUpdate(){
  }
    render() {
    return(
      <div>
      </div>
     );
  }
}

export default App2;