npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@macroui/echarts-gl

v2.1.0

Published

Extension pack of Apache ECharts™ providing 3D plots, globe visualization and WebGL acceleration, themed with MacroUI (DaisyUI).

Readme

@macroui/echarts-gl

@macroui/echarts-gl 是 echarts-gl 的重命名分支,内置 MacroUI(DaisyUI 中文版) 主题系统。

安装

npm

npm install echarts @macroui/echarts-gl

全量引入

import * as echarts from 'echarts';
import '@macroui/echarts-gl';

按需引入

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

echarts.use([Scatter3DChart, Grid3DComponent]);

CDN

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

[!NOTE] ECharts GL 2.x 兼容 ECharts 5.x。 ECharts GL 1.x 兼容 ECharts 4.x。

基础用法

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
        }
    }]
})

功能特性

  • 3D 图表:散点 3D、线 3D、柱状 3D、曲面、地图 3D、地球等
  • WebGL 加速:大数据集流畅渲染
  • 地球可视化:带大气效果的可交互 3D 地球
  • GIS 集成:支持 MapboxGL 和 Maptalks

文档

MacroUI(DaisyUI)主题

演示使用 MacroUIDaisyUI 中文版)作为主题。在项目中使用:

// tailwind.config.js
import macroui from "@macroui/macroui";

export default {
  content: ["./index.html", "./src/**/*.{vue,js,ts}"],
  plugins: [macroui],
  macroui: {
    themes: ["light", "dark", "cupcake", "corporate", /* ... */],
  },
};
/* 全局样式文件 */
@tailwind base;
@tailwind components;
@tailwind utilities;

在运行时切换主题,只需在 <html> 上设置 data-theme

<html data-theme="dark"></html>

本地开发

npm install
npm run build

许可

@macroui/echarts-gl 采用 MIT 许可证。

声明

The Apache Software Foundation Apache ECharts, ECharts、Apache、Apache 羽毛图标及 Apache ECharts 项目徽标均为 Apache Software Foundation 的注册商标或商标。