Skip to content

Python-first guide to building pyecharts charts and self-contained HTML reports with browser-safe data handling.

CCM score
35 of 100
skills.sh installs
332
GitHub stars
19
last updated
Jun 3, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers bar, line, pie, heatmap, and scatter chart patterns, plus theme choices and number formatting for tooltips and axes
  • Includes a generate_html_report pattern that combines multiple charts into one Page and renders it to a file
  • Enforces .tolist() conversion on all data passed to charts, since numpy arrays and pandas Series cause rendering failures in browsers
  • Designed for Python developers building data visualizations and HTML reports who need troubleshooting for empty or overlapping charts

Install

$ npx -y skills add rebyteai-template/rebyte-skills --skill echarts -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

ECharts Skill

Technology Stack

  • pyecharts: Python wrapper for Apache ECharts
  • Apache ECharts: JavaScript charting library
  • Output: Self-contained HTML with embedded JS

Chart Types Reference

Bar Charts

from pyecharts.charts import Bar
from pyecharts import options as opts

chart = Bar()
chart.add_xaxis(labels)
chart.add_yaxis("Series Name", values)
chart.set_global_opts(
    title_opts=opts.TitleOpts(title="Chart Title"),
    tooltip_opts=opts.TooltipOpts(trigger="axis"),
    xaxis_opts=opts.AxisOpts(axislabel_opts=opts.LabelOpts(rotate=45)),
)

Line Charts

from pyecharts.charts import Line

chart = Line()
chart.add_xaxis(dates)
chart.add_yaxis("Actual", values, is_smooth=True)
chart.add_yaxis("7-Day MA", moving_avg_7, is_smooth=True, linestyle_opts=opts.LineStyleOpts(type_="dashed"))

Pie Charts

from pyecharts.charts import Pie

chart = Pie()
chart.add("", list(zip(labels, values)))
chart.set_global_opts(legend_opts=opts.LegendOpts(orient="vertical", pos_left="left"))

Heatmaps

from pyecharts.charts import HeatMap

Details

Repository
github.com/rebyteai-template/rebyte-skills
Categories
Data Science & Analytics, Python
First seen
Jun 3, 2026

Questions

What does the echarts skill help an agent do?

The echarts skill gives an agent knowledge of pyecharts chart creation, HTML report generation and visualization best practices. It covers bar, line, pie, heatmap and scatter charts, and it writes self-contained HTML reports with embedded JavaScript.

How do I install the echarts skill?

Run npx -y skills add rebyteai-template/rebyte-skills --skill echarts -y in your project. Once installed, the agent can build pyecharts charts and render them into HTML reports.

Where does the echarts skill fit in the Data Science & Analytics category?

The echarts skill is listed in the Data Science & Analytics category on Claude Marketplaces, alongside azure-kusto, analyze-project, run-train, explore-run and add-analytics-instrumentation. It focuses on charting and visualization rather than querying or instrumentation.

Why do my echarts charts render empty in the browser?

The skill advises converting every data series to a list with .tolist() before passing it to pyecharts, since numpy arrays and pandas Series can break JavaScript rendering. It also suggests checking the browser console for errors and confirming the data appears in the HTML source.

More from rebyteai-template/rebyte-skills

All 4