@sctech/echarts
v1.0.3
Published
Smaller bundle of echarts for TG.
Readme
@sctech/echarts
A custom lightweight Apache ECharts bundle maintained by S.C. Nordic, optimized for React applications using echarts-for-react.
This package provides a pre-bundled version of ECharts with only the components, charts, and renderers required by our applications — keeping bundle size minimal and performance high.
✨ Features
✅ Supports:
- 📈 Charts:
line,bar,tree - 🗺️ Coordinate Systems:
grid - 🧩 Components:
TitleLegendTooltipMarkPointMarkLineMarkAreaDataZoomToolbox
- 🖌️ Renderer:
CanvasRendereronly (no SVG renderer)
🚀 Usage
Install the package:
npm install @sctech/echarts echarts-for-reactImport and use in your React component:
import ReactEChartsCore from 'echarts-for-react/lib/core';
import echarts from '@sctech/echarts';
<ReactEChartsCore echarts={echarts} option={option} />✅ No need to manually register chart types or components — they’re already bundled in.
📦 Creating a Custom Bundle
To regenerate or customize the bundle, visit the official ECharts Bundle Builder:
- Select only the components and chart types you need.
- Download the bundle as
echarts.jsorecharts.min.js. - Replace the file under
dist/in this repository. - Re-publish to npm.
🧠 Notes
- Designed specifically for projects within S.C. Nordic and affiliated teams.
- Keeps build lean for performance-critical visualizations.
- You do not need to import or register any ECharts modules manually.
🔗 Links
🛠 Maintained by
S.C. Nordic A/S
Denmark
scnordic.com
