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线图, 箱线图
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---6
7## When to use this skill
8
9Use this skill whenever the user wants to:
10- Create ECharts charts in UniApp or UniAppX projects
11- Display data visualizations (line charts, bar charts, pie charts, etc.) in H5, mini-programs, or App
12- Configure and customize ECharts charts for cross-platform compatibility
13- Integrate ECharts into UniApp/UniAppX applications
14- Handle chart events and interactions in UniApp/UniAppX
15- Optimize chart performance in mobile environments
16- Use advanced ECharts features in UniApp/UniAppX
17
18## How to use this skill
19
20To use lime-echart in UniApp/UniAppX projects:
21
221. **Install and configure** lime-echart:
23 - Load `examples/getting-started/installation.md` for installation instructions
24 - Load `examples/getting-started/basic-usage.md` for basic setup and configuration
25 - Load `examples/getting-started/configuration.md` for detailed configuration options
26
272. **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`
40
413. **Load the appropriate example file** from the `examples/` directory:
42 - `examples/getting-started/installation.md` - Installation and setup
43 - `examples/getting-started/basic-usage.md` - Basic usage examples
44 - `examples/getting-started/configuration.md` - Configuration options
45 - `examples/charts/line-chart.md` - Line chart examples
46 - `examples/charts/bar-chart.md` - Bar chart examples
47 - `examples/charts/pie-chart.md` - Pie chart examples
48 - `examples/charts/scatter-chart.md` - Scatter chart examples
49 - `examples/charts/radar-chart.md` - Radar chart examples
50 - `examples/charts/gauge-chart.md` - Gauge chart examples
51 - `examples/charts/funnel-chart.md` - Funnel chart examples
52 - `examples/charts/heatmap.md` - Heatmap examples
53 - `examples/charts/tree-chart.md` - Tree chart examples
54 - `examples/charts/map-chart.md` - Map chart examples
55 - `examples/charts/candlestick-chart.md` - Candlestick chart examples
56 - `examples/charts/boxplot-chart.md` - Boxplot chart examples
57 - `examples/advanced/dynamic-data.md` - Dynamic data updates
58 - `examples/advanced/event-handling.md` - Chart event handling
59 - `examples/advanced/custom-theme.md` - Custom theme configuration
60 - `examples/advanced/multiple-charts.md` - Multiple charts on one page
61 - `examples/advanced/responsive-charts.md` - Responsive chart design
62 - `examples/advanced/performance-optimization.md` - Performance optimization
63
644. **Follow the specific instructions** in that example file for syntax, structure, and best practices
65
665. **Reference the API documentation** when needed:
67 - `api/component-api.md` - Component API reference
68 - `api/methods-api.md` - Methods API reference
69 - `api/events-api.md` - Events API reference
70 - `api/options-api.md` - Options API reference
71
726. **Use templates** for quick start:
73 - `templates/basic-chart.md` - Basic chart template
74 - `templates/advanced-chart.md` - Advanced chart template
75 - `templates/chart-with-data.md` - Chart with data binding template
76
77
78### Doc mapping (one-to-one with official documentation)
79
80- See examples and API files → https://ext.dcloud.net.cn/plugin?id=4899
81
82## Examples and Templates
83
84This skill includes detailed examples organized to match the official documentation structure. All examples are in the `examples/` directory (see mapping above).
85
86**To use examples:**
87- Identify the topic from the user's request
88- Load the appropriate example file from the mapping above
89- Follow the instructions, syntax, and best practices in that file
90- Adapt the code examples to your specific use case
91
92**To use templates:**
93- Reference templates in `templates/` directory for common scaffolding
94- Adapt templates to your specific needs and coding style
95
96## API Reference
97
98- **Component API**: `api/component-api.md` - lime-echart component properties and attributes
99- **Methods API**: `api/methods-api.md` - Available methods for chart manipulation
100- **Events API**: `api/events-api.md` - Chart events and event handling
101- **Options API**: `api/options-api.md` - ECharts options configuration reference
102
103## Best Practices
104
1051. **Platform Compatibility**: Test charts on all target platforms (H5, mini-programs, App)
1062. **Performance**: Use lazy loading for charts and optimize data volume
1073. **Responsive Design**: Ensure charts adapt to different screen sizes
1084. **Data Format**: Validate and format data before passing to charts
1095. **Error Handling**: Implement proper error handling for chart initialization and data loading
1106. **Memory Management**: Dispose charts properly when components are destroyed
1117. **Theme Consistency**: Use consistent themes across your application
1128. **Accessibility**: Consider accessibility when designing charts
113
114## Resources
115
116- **Official Plugin**: https://ext.dcloud.net.cn/plugin?id=4899
117- **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/
120
121## Keywords
122
123lime-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线图, 箱线图