lime-echart
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.mdfor installation instructions - Load
examples/getting-started/basic-usage.mdfor basic setup and configuration - Load
examples/getting-started/configuration.mdfor detailed configuration options
- Load
-
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
- Line chart/折线图 →
-
Load the appropriate example file from the
examples/directory:examples/getting-started/installation.md- Installation and setupexamples/getting-started/basic-usage.md- Basic usage examplesexamples/getting-started/configuration.md- Configuration optionsexamples/charts/line-chart.md- Line chart examplesexamples/charts/bar-chart.md- Bar chart examplesexamples/charts/pie-chart.md- Pie chart examplesexamples/charts/scatter-chart.md- Scatter chart examplesexamples/charts/radar-chart.md- Radar chart examplesexamples/charts/gauge-chart.md- Gauge chart examplesexamples/charts/funnel-chart.md- Funnel chart examplesexamples/charts/heatmap.md- Heatmap examplesexamples/charts/tree-chart.md- Tree chart examplesexamples/charts/map-chart.md- Map chart examplesexamples/charts/candlestick-chart.md- Candlestick chart examplesexamples/charts/boxplot-chart.md- Boxplot chart examplesexamples/advanced/dynamic-data.md- Dynamic data updatesexamples/advanced/event-handling.md- Chart event handlingexamples/advanced/custom-theme.md- Custom theme configurationexamples/advanced/multiple-charts.md- Multiple charts on one pageexamples/advanced/responsive-charts.md- Responsive chart designexamples/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 referenceapi/methods-api.md- Methods API referenceapi/events-api.md- Events API referenceapi/options-api.md- Options API reference
-
Use templates for quick start:
templates/basic-chart.md- Basic chart templatetemplates/advanced-chart.md- Advanced chart templatetemplates/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
- 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
- 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线图, 箱线图
More from teachingai/agent-skills
element-plus-vue3
Provides comprehensive guidance for Element Plus Vue 3 component library including installation, components, themes, internationalization, and API reference. Use when the user asks about Element Plus for Vue 3, needs to build Vue 3 applications with Element Plus, or customize component styles.
9vue2
Provides comprehensive guidance for Vue 2.x development including Options API, components, directives, lifecycle hooks, computed properties, watchers, Vuex state management, and Vue Router. Use when the user asks about Vue 2, needs to create Vue 2 components, implement reactive data binding, handle component communication, or work with Vue 2 ecosystem tools.
8cypress
Provides comprehensive guidance for Cypress end-to-end testing including commands, assertions, component testing, CI/CD integration, and best practices. Use when the user asks about Cypress, needs to write E2E tests, component tests, or configure Cypress for testing.
8cocos2d-x
Provides comprehensive guidance for Cocos2d-x v4 game engine including scene graph, nodes, sprites, actions, animations, physics, rendering, shaders, and platform deployment. Use when the user asks about Cocos2d-x, needs to create games, implement game features, set up development environments, or deploy games to multiple platforms.
7dalle
Provides comprehensive guidance for DALL-E AI image generation including prompt creation, image generation, variations, and editing. Use when the user asks about DALL-E, needs to generate AI images, create image variations, or work with DALL-E API.
6canvas-design
Creates museum-quality visual art as .png or .pdf by first generating a design philosophy manifesto, then expressing it on canvas with precise composition, color palettes, and typography. Use when the user asks to create a poster, art piece, visual design, or static creative piece. Outputs original designs using design-forward principles.
6