@dvsl/zoomcharts

中文文档
1.21.22发布于 2026/11/03SEE LICENSE IN <license.txt>TypeScriptCommonJS零依赖近 30 天下载 3087

ZoomCharts javascript library.

原始使用文档
文档目录7 节
  1. Download and install ZoomCharts
  2. Use our CDN
  3. Install from npm
  4. Load ZoomCharts as an ES6 module
  5. Babel
  6. TypeScript
  7. Build and debug

ZoomCharts

The world's most interactive data visualization software

Download and install ZoomCharts

Please note that there are several ways to use ZoomCharts. For general installation instructions, see the docs.

Use our CDN

Instead of downloading, you can use our CDN to access files directly. See zoomcharts.com/developers/en/overview/installation.html for details.

<script src="https://cdn.zoomcharts-cloud.com/1/stable/zoomcharts.js"></script>

Install from npm

See npm documentation on how to get started with npm.

npm install --save @dvsl/zoomcharts

Load ZoomCharts as an ES6 module

ZoomCharts can be loaded as an ES6 module with the use of transpilers - Babel and TypeScript.

Babel

import { TimeChart } from "@dvsl/zoomcharts" 

//Generate the chart
var t = new TimeChart({
    //options
})

TypeScript

import * as zc from "@dvsl/zoomcharts"

let TimeChart = zc.TimeChart;

//Generate the chart
var t = new TimeChart({
    //options
})

Build and debug

If you want to do modifications to ZoomCharts or fix issues, you may build your own files. ZoomCharts uses Webpack as the build system.

npm i webpack webpack-cli copy-webpack-plugin --save-dev

Poject structure

.
├── index.html
├── package.json
├── index.js
└── webpack.config.js

Setup package.json file

{
  "name": "zoomcharts-webpack",
  "version": "1.0.0",
  "description": "",
  "main": "./build/bundle.js",
  "scripts": {
    "start": "webpack --config webpack.config.js",
    "webpack": "webpack"
  },
  "keywords": [],
  "author": "",
  "license": "ISC",
  "dependencies": {
    "@dvsl/zoomcharts": "^1.18.4"
  },
  "devDependencies": {
    "copy-webpack-plugin": "^4.5.2",
    "webpack": "^4.15.0",
    "webpack-cli": "^3.0.8"
  }
}

Create webpack.config.js file

const path = require('path');
const CopyWebpackPlugin = require('copy-webpack-plugin');
module.exports = {
    entry: './index.js',
    output: {
        path: path.resolve(__dirname, 'build'),
        filename: 'bundle.js'
    },
    plugins: [
        new CopyWebpackPlugin([
            {
                from: './node_modules/@dvsl/zoomcharts/lib/assets',
                to: 'assets'
            }
        ])
    ]
};

版本与发布记录

@dvsl/zoomcharts 共发布 41 个版本,首次发布于 2018/07/13;过去 12 个月发布了 10 个版本。

版本发布日期距今
1.21.22latest2026/11/0310 天前
1.21.212026/10/021 个月前
1.21.202026/09/092 个月前
1.21.192026/08/043 个月前
1.21.182026/07/024 个月前
1.21.172026/06/025 个月前

关于 @dvsl/zoomcharts 的常见问题

@dvsl/zoomcharts 是什么?

ZoomCharts javascript library.

如何安装 @dvsl/zoomcharts?

在项目目录运行 npm install @dvsl/zoomcharts,或使用 pnpm add / yarn add / bun add。

@dvsl/zoomcharts 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@dvsl/zoomcharts 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@dvsl/zoomcharts 可以商用吗?

@dvsl/zoomcharts 使用 SEE LICENSE IN <license.txt> 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@dvsl/zoomcharts 的下载量有多少?

根据 npm 官方下载统计,@dvsl/zoomcharts 在 2026/10/13 – 2026/11/11 这 30 天内被下载 3,087 次,日均约 103 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@dvsl/zoomcharts 还在维护吗?

最新版本 1.21.22 发布于 2026/11/03(10 天前);至今共发布 41 个版本,其中过去 12 个月发布了 10 个;首次发布于 2018/07/13。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。