MCPcopy Index your code
hub / github.com/ecomfe/echarts-gl

github.com/ecomfe/echarts-gl @2.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 2.1.0 ↗ · + Follow
963 symbols 2,469 edges 202 files 20 documented · 2% 5 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

ECHARTS-GL

ECharts-GL is an extension pack of Apache ECharts, which providing 3D plots, globe visualization and WebGL acceleration.

Docs

Installing

npm and webpack

npm install echarts
npm install echarts-gl

Import all

import * as echarts from 'echarts';
import 'echarts-gl';

Minimal Import

import * as echarts from 'echarts/core';
import { Scatter3DChart } from 'echarts-gl/charts';
import { Grid3DComponent } from 'echarts-gl/components';

echarts.use([Scatter3DChart, Grid3DComponent]);

Include by scripts

<script src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/echarts-gl/dist/echarts-gl.min.js"></script>

NOTE:

ECharts GL 2.x is compatible with ECharts 5.x. ECharts GL 1.x is compatible with ECharts 4.x.

Basic Usage

var chart = echarts.init(document.getElementById('main'));
chart.setOption({
    grid3D: {},
    xAxis3D: {},
    yAxis3D: {},
    zAxis3D: {},
    series: [{
        type: 'scatter3D',
        symbolSize: 50,
        data: [[-1, -1, -1], [0, 0, 0], [1, 1, 1]],
        itemStyle: {
            opacity: 1
        }
    }]
})

License

ECharts-GL is available under the BSD license.

Notice

The Apache Software Foundation Apache ECharts, ECharts, Apache, the Apache feather, and the Apache ECharts project logo are either registered trademarks or trademarks of the Apache Software Foundation.

Core symbols most depended-on inside this repo

isNaN
called by 166
test/lib/dat.gui.js
_interopRequireDefault
called by 66
test/lib/dat.gui.js
t
called by 38
test/lib/mapbox-gl.js
r
called by 31
test/lib/mapbox-gl.js
a
called by 23
test/lib/mapbox-gl.js
isEqual
called by 21
test/lib/mapbox-gl.js
getItemVisualColor
called by 20
src/util/visual.js
getItemVisualOpacity
called by 20
src/util/visual.js

Shape

Function 963

Languages

TypeScript100%

Modules by API surface

test/lib/mapbox-gl.js473 symbols
test/lib/jquery.min.js85 symbols
test/lib/dat.gui.js62 symbols
test/lib/echarts-graph-modularity.js55 symbols
test/lib/echarts.min.js48 symbols
src/util/earcut.js29 symbols
src/util/sunCalc.js10 symbols
src/util/Triangulation.js10 symbols
src/core/LayerGL.js7 symbols
src/chart/lines3D/lines3DLayout.js7 symbols
test/js/exportGL2OBJ.js6 symbols
src/util/graphicGL.js6 symbols

For agents

$ claude mcp add echarts-gl \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact