 
import '@/assets/App.css'
import Echarts from '@/utils/echarts';
import React from 'react';
import reactLogo from '@/assets/react.svg';
const EchartTemp = ()=>{
      const echartintance = useRef<HTMLElement>();
      const options = {
        xAxis: {
          type: "category",
          data: ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"],
          splitLine: {
            color: ["#475569"],
          },
          axisLine: {
            show: false,
            color:'#475569'
          },
          axisTick: {
            length: 6,
            show: false,
            lineStyle: {
              type: "dashed",
            },
          },
        },
        yAxis: {
          type: "value",
        },
        series: [
          {
            data: [150, 230, 224, 218, 135, 147, 260],
            type:  'line',
            color: "#475569",
          },
        ],
      }
      useEffect(()=>{
        const echartinstance = Echarts.init(echartintance.current, "default");
        echartinstance.setOption(options);
      },[])
      return (
           <div ref={echartintance}    style={{ width: "500px", height: "300px",margin:'auto' }}></div>
      )
}
function App() { 
  return (
       <div>
              <div>
        <img className='logo' src={reactLogo} alt="logo" />
      </div>
      <div className='title'>
             //title
      </div> 
          <EchartTemp></EchartTemp>
       </div>
  )
}

export default App
