export function PieChartRight()

in src/components/HomepageFeatures/index.tsx [73:113]


export function PieChartRight(): JSX.Element {
  useEffect(() => {
    var myChart_obj=document.getElementById("PieChartRight")
    if (myChart_obj != null && myChart_obj != undefined){
      echarts.dispose(document.getElementById("PieChartRight"))
    }
    var myChart = echarts.init(document.getElementById("PieChartRight"));
    myChart.setOption({
      title: {
        text: 'Supported Commands',
        left: 'center'
      },
      tooltip: {
        trigger: 'item',

      },
      legend: {
        orient: 'vertical',
        left: 'right'
      },
      series: [
        {
          type: 'pie',
          radius: '75%',
          data: [
            { value: 875, name: 'Supported ',itemStyle: {color: 'rgb(255,0,102)'} },
            { value: 125, name: 'Todo',itemStyle: {color: 'rgb(246,108,104)'} }
          ],
          emphasis: {
            itemStyle: {
              shadowBlur: 10,
              shadowOffsetX: 0,
              shadowColor: 'rgba(0, 0, 0, 0.5)'
            }
          }
        }
      ]
    });
  })
  return <div id="PieChartRight" style={{width: "50%",height: "480px"}} />
}