import React, { useEffect, useRef, useState } from 'react'
import Highcharts from 'highcharts'
import HighchartsReact from 'highcharts-react-official'
import Highcharts3d from 'highcharts/highcharts-3d'
function Home (props) {
const staffname = useRef()
// 3d初始化
Highcharts3d(Highcharts)
const SSS = {
chart: {
type: 'pie',
options3d: {
enabled: true,
alpha: 45
// beta: 0
}
},
title: {
text: '2014年某网站不同浏览器访问量占比'
},
tooltip: {
pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
},
plotOptions: {
pie: {
allowPointSelect: t