When to use this skill
Use this skill whenever the user wants to:
- Create ECharts charts in UniApp or UniAppX projects
- Display data visualizations (line charts, bar charts, pie charts, etc.) in H5, mini-programs, or App
- Configure and customize ECharts charts for cross-platform compatibility
- Integrate ECharts into UniApp/UniAppX applications
- Handle chart events and interactions in UniApp/UniAppX
- Optimize chart performance in mobile environments
- Use advanced ECharts features in UniApp/UniAppX
How to use this skill
To use lime-echart in UniApp/UniAppX projects:
Install and configure lime-echart:
- Load
examples/getting-started/installation.md for installation instructions
- Load
examples/getting-started/basic-usage.md for basic setup and configuration
- Load
examples/getting-started/configuration.md for detailed configuration options
Choose the chart type based on the user's requirements:
- Line chart/折线图 →
examples/charts/line-chart.md
- Bar chart/柱状图 →
examples/charts/bar-chart.md
- Pie chart/饼图 →
examples/charts/pie-chart.md
- Scatter chart/散点图 →
examples/charts/scatter-chart.md
- Radar chart/雷达图 →
examples/charts/radar-chart.md
- Gauge chart/仪表盘 →
examples/charts/gauge-chart.md
- Funnel chart/漏斗图 →
examples/charts/funnel-chart.md
- Heatmap/热力图 →
examples/charts/heatmap.md
- Tree chart/树图 →
examples/charts/tree-chart.md
- Map chart/地图 →
examples/charts/map-chart.md
- Candlestick chart/K线图 →
examples/charts/candlestick-chart.md
- Boxplot chart/箱线图 →
examples/charts/boxplot-chart.md
Load the appropriate example file from the examples/ directory:
examples/getting-started/installation.md - Installation and setup
examples/getting-started/basic-usage.md - Basic usage examples
examples/getting-started/configuration.md - Configuration options
examples/charts/line-chart.md - Line chart examples
examples/charts/bar-chart.md - Bar chart examples
examples/charts/pie-chart.md - Pie chart examples
examples/charts/scatter-chart.md - Scatter chart examples
examples/charts/radar-chart.md - Radar chart examples
examples/charts/gauge-chart.md - Gauge chart examples
examples/charts/funnel-chart.md - Funnel chart examples
examples/charts/heatmap.md - Heatmap examples
examples/charts/tree-chart.md - Tree chart examples
examples/charts/map-chart.md - Map chart examples
examples/charts/candlestick-chart.md - Candlestick chart examples
examples/charts/boxplot-chart.md - Boxplot chart examples
examples/advanced/dynamic-data.md - Dynamic data updates
examples/advanced/event-handling.md - Chart event handling
examples/advanced/custom-theme.md - Custom theme configuration
examples/advanced/multiple-charts.md - Multiple charts on one page
examples/advanced/responsive-charts.md - Responsive chart design
examples/advanced/performance-optimization.md - Performance optimization
Follow the specific instructions in that example file for syntax, structure, and best practices
Reference the API documentation when needed:
api/component-api.md - Component API reference
api/methods-api.md - Methods API reference
api/events-api.md - Events API reference
api/options-api.md - Options API reference
Use templates for quick start:
templates/basic-chart.md - Basic chart template
templates/advanced-chart.md - Advanced chart template
templates/chart-with-data.md - Chart with data binding template
Doc mapping (one-to-one with official documentation)
Examples and Templates
This skill includes detailed examples organized to match the official documentation structure. All examples are in the examples/ directory (see mapping above).
To use examples:
- Identify the topic from the user's request
- Load the appropriate example file from the mapping above
- Follow the instructions, syntax, and best practices in that file
- Adapt the code examples to your specific use case
To use templates:
- Reference templates in
templates/ directory for common scaffolding
- Adapt templates to your specific needs and coding style
API Reference
- Component API:
api/component-api.md - lime-echart component properties and attributes
- Methods API:
api/methods-api.md - Available methods for chart manipulation
- Events API:
api/events-api.md - Chart events and event handling
- Options API:
api/options-api.md - ECharts options configuration reference
Best Practices
- Platform Compatibility: Test charts on all target platforms (H5, mini-programs, App)
- Performance: Use lazy loading for charts and optimize data volume
- Responsive Design: Ensure charts adapt to different screen sizes
- Data Format: Validate and format data before passing to charts
- Error Handling: Implement proper error handling for chart initialization and data loading
- Memory Management: Dispose charts properly when components are destroyed
- Theme Consistency: Use consistent themes across your application
- Accessibility: Consider accessibility when designing charts
Resources
Keywords
lime-echart, echart, echarts, uniapp, uniappx, chart, visualization, line chart, bar chart, pie chart, scatter chart, radar chart, gauge chart, funnel chart, heatmap, tree chart, map chart, candlestick chart, boxplot chart, 图表, 折线图, 柱状图, 饼图, 散点图, 雷达图, 仪表盘, 漏斗图, 热力图, 树图, 地图, K线图, 箱线图
能力边界
✅ 适用场景
- 当你需要使用此技能对应的技术栈时
- 当项目需要遵循最佳实践时
- 当需要快速上手或深入理解核心概念时
⚠️ 需要注意
- 复杂业务逻辑需要结合具体场景调整
- 性能优化需要根据实际数据量评估
❌ 不适用场景
常见陷阱 (Gotchas)
- 版本兼容性:注意框架版本与依赖库的兼容性,不同版本 API 可能有差异
- 配置文件格式:配置文件格式错误是最常见的问题,建议使用编辑器的语法检查
- 环境变量:确保所有必要的环境变量已正确设置,敏感信息不要硬编码
- 依赖冲突:多版本共存时注意依赖冲突,使用 lock 文件锁定版本
- 性能陷阱:大数据量场景下注意性能优化,避免 N+1 查询等常见问题
使用流程
Step 1: 环境准备
确保开发环境已安装必要的依赖和工具。
Step 2: 配置初始化
根据项目需求进行基础配置。
Step 3: 核心功能使用
按照示例代码实现核心功能。
Step 4: 测试验证
运行测试确保功能正常。
Step 5: 部署上线
完成开发后进行部署和监控。
1---2name: lime-echart3description: Provides comprehensive guidance for Lime ECharts including chart creation, configuration, data visualization, and interactive charts. Use when the user asks about Lime ECharts, needs to create charts, visualize data, or work with ECharts features.4license: Complete terms in LICENSE.txt5---67## When to use this skill89Use this skill whenever the user wants to:10- Create ECharts charts in UniApp or UniAppX projects11- Display data visualizations (line charts, bar charts, pie charts, etc.) in H5, mini-programs, or App12- Configure and customize ECharts charts for cross-platform compatibility13- Integrate ECharts into UniApp/UniAppX applications14- Handle chart events and interactions in UniApp/UniAppX15- Optimize chart performance in mobile environments16- Use advanced ECharts features in UniApp/UniAppX1718## How to use this skill1920To use lime-echart in UniApp/UniAppX projects:21221. **Install and configure** lime-echart:23 - Load `examples/getting-started/installation.md` for installation instructions24 - Load `examples/getting-started/basic-usage.md` for basic setup and configuration25 - Load `examples/getting-started/configuration.md` for detailed configuration options26272. **Choose the chart type** based on the user's requirements:28 - Line chart/折线图 → `examples/charts/line-chart.md`29 - Bar chart/柱状图 → `examples/charts/bar-chart.md`30 - Pie chart/饼图 → `examples/charts/pie-chart.md`31 - Scatter chart/散点图 → `examples/charts/scatter-chart.md`32 - Radar chart/雷达图 → `examples/charts/radar-chart.md`33 - Gauge chart/仪表盘 → `examples/charts/gauge-chart.md`34 - Funnel chart/漏斗图 → `examples/charts/funnel-chart.md`35 - Heatmap/热力图 → `examples/charts/heatmap.md`36 - Tree chart/树图 → `examples/charts/tree-chart.md`37 - Map chart/地图 → `examples/charts/map-chart.md`38 - Candlestick chart/K线图 → `examples/charts/candlestick-chart.md`39 - Boxplot chart/箱线图 → `examples/charts/boxplot-chart.md`40413. **Load the appropriate example file** from the `examples/` directory:42 - `examples/getting-started/installation.md` - Installation and setup43 - `examples/getting-started/basic-usage.md` - Basic usage examples44 - `examples/getting-started/configuration.md` - Configuration options45 - `examples/charts/line-chart.md` - Line chart examples46 - `examples/charts/bar-chart.md` - Bar chart examples47 - `examples/charts/pie-chart.md` - Pie chart examples48 - `examples/charts/scatter-chart.md` - Scatter chart examples49 - `examples/charts/radar-chart.md` - Radar chart examples50 - `examples/charts/gauge-chart.md` - Gauge chart examples51 - `examples/charts/funnel-chart.md` - Funnel chart examples52 - `examples/charts/heatmap.md` - Heatmap examples53 - `examples/charts/tree-chart.md` - Tree chart examples54 - `examples/charts/map-chart.md` - Map chart examples55 - `examples/charts/candlestick-chart.md` - Candlestick chart examples56 - `examples/charts/boxplot-chart.md` - Boxplot chart examples57 - `examples/advanced/dynamic-data.md` - Dynamic data updates58 - `examples/advanced/event-handling.md` - Chart event handling59 - `examples/advanced/custom-theme.md` - Custom theme configuration60 - `examples/advanced/multiple-charts.md` - Multiple charts on one page61 - `examples/advanced/responsive-charts.md` - Responsive chart design62 - `examples/advanced/performance-optimization.md` - Performance optimization63644. **Follow the specific instructions** in that example file for syntax, structure, and best practices65665. **Reference the API documentation** when needed:67 - `api/component-api.md` - Component API reference68 - `api/methods-api.md` - Methods API reference69 - `api/events-api.md` - Events API reference70 - `api/options-api.md` - Options API reference71726. **Use templates** for quick start:73 - `templates/basic-chart.md` - Basic chart template74 - `templates/advanced-chart.md` - Advanced chart template75 - `templates/chart-with-data.md` - Chart with data binding template767778### Doc mapping (one-to-one with official documentation)7980- See examples and API files → https://ext.dcloud.net.cn/plugin?id=48998182## Examples and Templates8384This skill includes detailed examples organized to match the official documentation structure. All examples are in the `examples/` directory (see mapping above).8586**To use examples:**87- Identify the topic from the user's request88- Load the appropriate example file from the mapping above89- Follow the instructions, syntax, and best practices in that file90- Adapt the code examples to your specific use case9192**To use templates:**93- Reference templates in `templates/` directory for common scaffolding94- Adapt templates to your specific needs and coding style9596## API Reference9798- **Component API**: `api/component-api.md` - lime-echart component properties and attributes99- **Methods API**: `api/methods-api.md` - Available methods for chart manipulation100- **Events API**: `api/events-api.md` - Chart events and event handling101- **Options API**: `api/options-api.md` - ECharts options configuration reference102103## Best Practices1041051. **Platform Compatibility**: Test charts on all target platforms (H5, mini-programs, App)1062. **Performance**: Use lazy loading for charts and optimize data volume1073. **Responsive Design**: Ensure charts adapt to different screen sizes1084. **Data Format**: Validate and format data before passing to charts1095. **Error Handling**: Implement proper error handling for chart initialization and data loading1106. **Memory Management**: Dispose charts properly when components are destroyed1117. **Theme Consistency**: Use consistent themes across your application1128. **Accessibility**: Consider accessibility when designing charts113114## Resources115116- **Official Plugin**: https://ext.dcloud.net.cn/plugin?id=4899117- **ECharts Official Documentation**: https://echarts.apache.org/118- **UniApp Documentation**: https://uniapp.dcloud.net.cn/119- **UniAppX Documentation**: https://uniapp.dcloud.net.cn/uni-app-x/120121## Keywords122123lime-echart, echart, echarts, uniapp, uniappx, chart, visualization, line chart, bar chart, pie chart, scatter chart, radar chart, gauge chart, funnel chart, heatmap, tree chart, map chart, candlestick chart, boxplot chart, 图表, 折线图, 柱状图, 饼图, 散点图, 雷达图, 仪表盘, 漏斗图, 热力图, 树图, 地图, K线图, 箱线图124125## 能力边界126127### ✅ 适用场景128- 当你需要使用此技能对应的技术栈时129- 当项目需要遵循最佳实践时130- 当需要快速上手或深入理解核心概念时131132### ⚠️ 需要注意133- 复杂业务逻辑需要结合具体场景调整134- 性能优化需要根据实际数据量评估135136### ❌ 不适用场景137- 不相关的技术栈或框架138- 需要完全自定义的特殊场景139140## 常见陷阱 (Gotchas)1411421. **版本兼容性**:注意框架版本与依赖库的兼容性,不同版本 API 可能有差异1432. **配置文件格式**:配置文件格式错误是最常见的问题,建议使用编辑器的语法检查1443. **环境变量**:确保所有必要的环境变量已正确设置,敏感信息不要硬编码1454. **依赖冲突**:多版本共存时注意依赖冲突,使用 lock 文件锁定版本1465. **性能陷阱**:大数据量场景下注意性能优化,避免 N+1 查询等常见问题147148## 使用流程149150### Step 1: 环境准备151确保开发环境已安装必要的依赖和工具。152153### Step 2: 配置初始化154根据项目需求进行基础配置。155156### Step 3: 核心功能使用157按照示例代码实现核心功能。158159### Step 4: 测试验证160运行测试确保功能正常。161162### Step 5: 部署上线163完成开发后进行部署和监控。