mirror of
https://github.com/hustcc/echarts-for-react.git
synced 2025-12-08 20:16:09 +00:00
539 B
539 B
| title | order |
|---|---|
| Web GL | 7 |
Web GL
import React from 'react';
import ReactECharts from 'echarts-for-react';
import 'echarts-gl';
const Page: React.FC = () => {
const option = {
grid3D: {},
xAxis3D: {},
yAxis3D: {},
zAxis3D: {},
series: [{
type: 'scatter3D',
symbolSize: 50,
data: [[-1, -1, -1], [0, 0, 0], [1, 1, 1]],
itemStyle: {
opacity: 1
}
}]
};
return <ReactECharts
option={option}
style={{ height: 400 }}
/>;
};
export default Page;