Cesium-Chart
is an intermediate library for linking Cesium and Echarts, using which data visual programming can be applied to Cesium 3D Earth
NPM / YARN
(Recommend)
Installing with NPM or YARN is recommended and it works seamlessly with webpack.
yarn add @dvgis/cesium-chart
-------------------------
npm install @dvgis/cesium-chart
import { ChartLayer } from '@dvgis/cesium-chart'
CDN
<script src="https://cdn.jsdelivr.net/npm/@dvgis/cesium-chart/dist/cesium.chart.min.js"></script>
let layer = new ChartLayer('layer',viewer)
layer.setOption({}) //设置Echarts配置,其中tooltip设置无效
- constructor(id,viewer)
- parameters
{String} id
{Object} viewer
- returns
ChartLayer
- parameters
{String} id
readonly
{Boolean} show
-
setOption(option)
- parameters
{Object} option
- returns
ChartLayer
- parameters
-
clear()
- returns
ChartLayer
- returns
-
resize()
- returns
ChartLayer
- returns