mcpField
L
lime-echart

lime-echart

github.com/partme-aiData & databases71679 installsUpdated 3w ago
Repository

About lime-echart

lime-echart is a skill for building ECharts visualizations in UniApp and UniAppX. It guides developers through chart selection, examples, customization, events, and mobile performance considerations across H5, mini-programs, and native apps.

Key features

  1. 01ECharts chart examples
  2. 02UniApp and UniAppX support
  3. 03Chart events and data updates
  4. 04Theme and option customization
  5. 05Mobile performance guidance

Use cases

  1. 01Show time-series trends in a UniApp app
  2. 02Compare categories with bar charts
  3. 03Visualize proportions with pie charts
  4. 04Display charts across H5 and native apps

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/partme-ai/full-stack-skills --skill lime-echart

After installing, type/lime-echartin Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

LICENSE.txt
api/
component-api.md
events-api.md
methods-api.md
options-api.md
examples/advanced/
custom-theme.md
dynamic-data.md
event-handling.md
multiple-charts.md
performance-optimization.md
responsive-charts.md
examples/charts/
bar-chart.md
boxplot-chart.md
candlestick-chart.md
funnel-chart.md
gauge-chart.md
heatmap.md
line-chart.md
map-chart.md
pie-chart.md
radar-chart.md
scatter-chart.md
tree-chart.md
examples/getting-started/
basic-usage.md
configuration.md
installation.md
templates/
advanced-chart.md
basic-chart.md
chart-with-data.md

Details

From the project README

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
  1. Install lime-echart - Load examples/getting-started/installation.md
  2. Choose chart type - Match the requirement to the chart type below
  3. Load the example file - Each chart type has a dedicated example in examples/charts/
  4. 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
ChartFileUse Case
Lineexamples/charts/line-chart.mdTrends over time
Barexamples/charts/bar-chart.mdCategory comparison
Pieexamples/charts/pie-chart.mdProportions
Scatterexamples/charts/scatter-chart.mdCorrelation
Radarexamples/charts/radar-chart.mdMulti-dimension comparison
Gaugeexamples/charts/gauge-chart.mdSingle metric display
API Reference
  • api/component-api.md - Component properties and attributes
  • api/methods-api.md - Chart manipulation methods
  • api/events-api.md - Event handling (click, hover, zoom)
  • api/options-api.md - Full ECharts options reference

Best Practices

  1. Dispose on unmount - Call chart.dispose() in onUnload to prevent memory leaks
  2. Lazy load charts - Initialize charts only when they scroll into view
  3. Test cross-platform - Verify on H5, WeChat mini-program, and native App
  4. Optimize data volume - Downsample large datasets before rendering on mobile
  5. Use CSS sizing - Set chart container dimensions via CSS, not inline styles

Resources

Keywords

lime-echart, echarts, uniapp, uniappx, chart, visualization, 图表, 折线图, 柱状图, 饼图, data visualization, mobile chart

Comments

Markdown supported