@arction/lcjs

中文文档
5.2.1发布于 2024/08/05SEE LICENSE IN LICENSETypeScriptESM + CJS近 30 天下载 1万

A high-performance charting library.

此软件包已被标记为弃用

Please use https://www.npmjs.com/package/@lightningchart/lcjs instead

原始使用文档
文档目录6 节
  1. Interactive examples, with code editing on-the-fly
  2. Useful links
  3. Installation
  4. 1. Install from NPM and use a bundler
  5. 2. Use IIFE bundle directly on a webpage
  6. Licensing

LightningChart® JS - World's Fastest JavaScript Charts

LightningChart JS is a WebGL based, lightning-fast real-time data visualization charting library with a focus on exceptional performance. Performance testing results prove it’s able to visualize streaming data rates no other library for JS can, both in 2D and 3D. The fastest rendering real JavaScript charting library.

Interactive examples, with code editing on-the-fly

Whether you are first learning about LightningChart, investigating if it suits your needs or starting with your own application development our interactive examples application is the place to start from.

Click here to browse almost all LightningChart JS features, interact with the charts, test the performance and see how the code looks.

More interactive examples

Performance comparison:

We have made multiple comparisons of LightningChart® JS against other popular JavaScript charting libraries. Check all of the comparisons and find out how we got the results here

Some performance results, with a typical desktop PC:

  • Static line series: 10 million data points in 290 ms. Up to several billion samples.
  • Scrolling line series: 400 channels simultaneously with 1 000 Hz data stream rate per channel and 1 minute time window, adding up to a grand total of 24 million data points visible at every frame and updated at 60 FPS
  • Heat maps: 30000x30000 heat map can be loaded in less than 5 seconds
  • Scatter series: load massive raw data sets up to 500 million samples (and more depending on hardware)

Key features:

  • GPU acceleration and WebGL rendering
  • Intuitive touch screen interactivity with zooming, panning, moving data cursors etc.
  • Dashboard control, capable of rendering 100+ charts.
  • Supports server side rendering (use with our @arction/lcjs-headless package)
  • Chart types: 3D, XY, Heatmaps, Polar, Radar, Spider, Pie, Donut, Funnel, Bar, Stacked Bar, Grouped Bar, Gauge, Pyramid and Treemap charts
  • Linear and Logarithmic Axis for XY Charts
  • Data Grid for displaying data in form of real-time tables with icons, text, numbers, coloring and miniature charts
  • Extremely customizable, flexible and adaptable to different user interface and design requirements

Installation

For latest instructions, please refer to Developer Documentation.

1. Install from NPM and use a bundler

Install the library package from NPM.

npm install --save @arction/lcjs

This package can be used with any bundler that supports CommonJS. Some examples of bundlers that work are WebPack, Parcel and Rollup.

Check our getting started video on LightningChart JS to see this in action.

Any of our Examples can be used as a seed project. All examples on that page have been made to standalone repositories which can be found on our GitHub. Standalone Example Repositories

2. Use IIFE bundle directly on a webpage

The library is distributed with a browser ready IIFE bundle. This bundle can be used directly in browsers with script tag. You can see an example implementation of this method in our Developer Documentation

All of our examples can be used in the html page. To use them, first find an example you want to use from interactive examples. Click Edit this example. On the bottom of the page click on the button that reads CJS. That will switch our code to be IIFE compatible. After that, the code can be copied to the html page. See our LightningChart JS html usage example for more detailed information.

Licensing

LightningChart JS requires a license key to be used. Get one here.

// Using a license key
const lc = lightningChart({ license: 'my-license-key' })
const chart = lc.ChartXY()

For latest instructions, please refer to Developer Documentation.

Terms of use can be found here.

For more materials, instructions, guides and troubleshooting, please refer to the more conclusive Developer Documentation.

版本与发布记录

@arction/lcjs 共发布 47 个版本,首次发布于 2019/08/06;过去 12 个月发布了 0 个版本。

版本发布日期距今
5.2.1latest2024/08/052 年前
5.2.02024/05/072 年前
5.1.12024/02/192 年前
5.1.02024/02/062 年前
5.0.72024/01/192 年前
5.0.62024/01/082 年前

关于 @arction/lcjs 的常见问题

@arction/lcjs 是什么?

A high-performance charting library.注意:该包已被作者标记为弃用——Please use https://www.npmjs.com/package/@lightningchart/lcjs instead

如何安装 @arction/lcjs?

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

@arction/lcjs 支持 TypeScript 吗?

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

@arction/lcjs 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@arction/lcjs 可以商用吗?

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

@arction/lcjs 的下载量有多少?

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

@arction/lcjs 还在维护吗?

最新版本 5.2.1 发布于 2024/08/05(2 年前);至今共发布 47 个版本,其中过去 12 个月发布了 0 个;首次发布于 2019/08/06。作者已将其标记为弃用,新项目建议寻找替代方案。