Full-stack-skills lime-echart
Integrates Apache ECharts into UniApp and UniAppX projects for cross-platform data visualization (H5, mini-programs, native App). Supports line, bar, pie, scatter, radar, gauge, funnel, heatmap, and more chart types. Use when the user needs to create ECharts charts in UniApp/UniAppX or configure interactive data visualizations for mobile and web.
install
source · Clone the upstream repo
git clone https://github.com/partme-ai/full-stack-skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/partme-ai/full-stack-skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/chart-skills/lime-echart" ~/.claude/skills/partme-ai-full-stack-skills-lime-echart && rm -rf "$T"
manifest:
skills/chart-skills/lime-echart/SKILL.mdsource content
When to use this skill
Use this skill whenever the user wants to:
- Create ECharts charts (line, bar, pie, scatter, radar, gauge, etc.) in UniApp or UniAppX
- Display data visualizations in H5, mini-programs, or native App
- Handle chart events, dynamic data updates, or custom themes in UniApp
- Optimize chart performance for mobile environments
How to use this skill
Workflow
- Install lime-echart - Load
examples/getting-started/installation.md - Choose chart type - Match the requirement to the chart type below
- Load the example file - Each chart type has a dedicated example in
examples/charts/ - Customize - Adjust options, theme, and data binding per the API docs
Quick-Start Example: Line Chart in UniApp
<template> <view class="chart-container"> <l-echart ref="chartRef" @bindinit="onInit" /> </view> </template> <script> import * as echarts from '@nicefan/lime-echart/echarts'; export default { methods: { onInit(chart) { chart.setOption({ xAxis: { type: 'category', data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri'] }, yAxis: { type: 'value' }, series: [{ type: 'line', data: [120, 200, 150, 80, 270], smooth: true, lineStyle: { color: '#5470c6' } }] }); } } }; </script> <style> .chart-container { width: 100%; height: 300px; } </style>
Chart Type Reference
| Chart | File | Use Case |
|---|---|---|
| Line | | Trends over time |
| Bar | | Category comparison |
| Pie | | Proportions |
| Scatter | | Correlation |
| Radar | | Multi-dimension comparison |
| Gauge | | Single metric display |
API Reference
- Component properties and attributesapi/component-api.md
- Chart manipulation methodsapi/methods-api.md
- Event handling (click, hover, zoom)api/events-api.md
- Full ECharts options referenceapi/options-api.md
Best Practices
- Dispose on unmount - Call
inchart.dispose()
to prevent memory leaksonUnload - Lazy load charts - Initialize charts only when they scroll into view
- Test cross-platform - Verify on H5, WeChat mini-program, and native App
- Optimize data volume - Downsample large datasets before rendering on mobile
- Use CSS sizing - Set chart container dimensions via CSS, not inline styles
Resources
- Official Plugin: https://ext.dcloud.net.cn/plugin?id=4899
- ECharts Docs: https://echarts.apache.org/
Keywords
lime-echart, echarts, uniapp, uniappx, chart, visualization, 图表, 折线图, 柱状图, 饼图, data visualization, mobile chart