home / skills / partme-ai / full-stack-skills / lime-echart
This skill helps you create and customize Lime ECharts charts in UniApp projects, enabling interactive data visualizations across platforms.
npx playbooks add skill partme-ai/full-stack-skills --skill lime-echartReview the files below or copy the command above to add this skill to your agents.
---
name: lime-echart
description: 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.
license: Complete terms in LICENSE.txt
---
## 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:
1. **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
2. **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`
3. **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
4. **Follow the specific instructions** in that example file for syntax, structure, and best practices
5. **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
6. **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)
- See examples and API files → https://ext.dcloud.net.cn/plugin?id=4899
## 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
1. **Platform Compatibility**: Test charts on all target platforms (H5, mini-programs, App)
2. **Performance**: Use lazy loading for charts and optimize data volume
3. **Responsive Design**: Ensure charts adapt to different screen sizes
4. **Data Format**: Validate and format data before passing to charts
5. **Error Handling**: Implement proper error handling for chart initialization and data loading
6. **Memory Management**: Dispose charts properly when components are destroyed
7. **Theme Consistency**: Use consistent themes across your application
8. **Accessibility**: Consider accessibility when designing charts
## Resources
- **Official Plugin**: https://ext.dcloud.net.cn/plugin?id=4899
- **ECharts Official Documentation**: https://echarts.apache.org/
- **UniApp Documentation**: https://uniapp.dcloud.net.cn/
- **UniAppX Documentation**: https://uniapp.dcloud.net.cn/uni-app-x/
## 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线图, 箱线图
This skill provides comprehensive guidance for using Lime ECharts in UniApp and UniAppX projects. It helps you create, configure, and optimize ECharts visualizations across H5, mini-programs, and native App environments. Use it to implement interactive charts, handle events, and apply advanced ECharts features with platform-compatible examples and templates.
The skill maps common chart tasks to example files and API references so you can follow ready-made patterns. For a given request, it points to the appropriate installation, chart-type example, advanced pattern, template, or API doc and explains which files and methods to use. It also highlights best practices for performance, responsiveness, and cross-platform behavior.
Where do I start for installation and basic setup?
Begin with the installation and basic-usage examples to add the component, register it, and render a simple chart.
How do I update chart data dynamically?
Use the dynamic-data example and the methods API (such as setOption) to push updates while minimizing full re-renders.