You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
LiRen-qiu d039521926
删除了analysis相关的
4 months ago
..
asset 删除了analysis相关的 4 months ago
dist 删除了analysis相关的 4 months ago
lib 删除了analysis相关的 4 months ago
src 删除了analysis相关的 4 months ago
.jshintignore 删除了analysis相关的 4 months ago
.jshintrc 删除了analysis相关的 4 months ago
LICENSE 删除了analysis相关的 4 months ago
README.md 删除了analysis相关的 4 months ago
babel.config.js 删除了analysis相关的 4 months ago
charts.js 删除了analysis相关的 4 months ago
components.js 删除了analysis相关的 4 months ago
index.js 删除了analysis相关的 4 months ago
jsconfig.json 删除了analysis相关的 4 months ago
package.json 删除了analysis相关的 4 months ago
webpack.config.js 删除了analysis相关的 4 months ago

README.md

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.