@dvgis/cesium-chart

1.0.1 • Public • Published

Cesium-Chart

Cesium-Chart is an intermediate library for linking Cesium and Echarts, using which data visual programming can be applied to Cesium 3D Earth

Installation

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>

Usage

 let  layer =  new ChartLayer('layer',viewer)
 layer.setOption({}) //设置Echarts配置,其中tooltip设置无效

Creation

  • constructor(id,viewer)
    • parameters
      • {String} id
      • {Object} viewer
    • returns ChartLayer

Property

  • {String} id readonly
  • {Boolean} show

Methods

  • setOption(option)

    • parameters
      • {Object} option
    • returns ChartLayer
  • clear()

    • returns ChartLayer
  • resize()

    • returns ChartLayer

Readme

Keywords

Package Sidebar

Install

npm i @dvgis/cesium-chart

Weekly Downloads

0

Version

1.0.1

License

Apache 2.0

Unpacked Size

29.8 kB

Total Files

13

Last publish

Collaborators

  • cavencj