跳到内容

Easy Charts

v2.0.0

Kiran Potphode · 2016年1月12日 上架

Turn a table of numbers into a clear, interactive chart. 12 chart types, a Chart block, a shortcode, and a data table for every chart.

正在使用
1,000+
评分
4.3 / 5
累计下载
5 万
最近更新
2026年11月21日
12 条评价需要 WordPress 6.6+已测试到 7.1.5PHP 7.4+

贡献者

截图

The Chart block: start a new chart, paste data or use an existing chart.
The Chart block: start a new chart, paste data or use an existing chart.
Editing chart data in the table.
Editing chart data in the table.
Chart settings in the block sidebar.
Chart settings in the block sidebar.
Site-wide chart settings.
Site-wide chart settings.
Charts on a page.
Charts on a page.

Easy Charts turns a table of numbers into an interactive chart that you can place on any post or page.

Version 2.0 draws charts with Apache ECharts and adds a Chart block for the block editor. Charts made with Easy Charts 1.x, and the [easy_chart] shortcodes that show them, keep working.

Version 2.0 is a major update with breaking changes. Your charts are kept and keep their 1.x look until you choose to migrate them, but some 1.x options and features are gone. Read “Upgrading from 1.x” below before you update.

Make a chart in the block editor

Add the Chart block and choose how to start:

  • New chart: pick one of the 12 chart types and start from sample data.
  • Paste data: copy cells from Excel, Google Sheets or Numbers, or paste CSV.
  • Use an existing chart: embed a saved chart, or copy its data or its settings into a new one.

Edit the data in a spreadsheet-style table, or paste it as text. Style the chart in the block sidebar: title, size, font, orientation, axis labels, legend, tooltips, value labels with a prefix and suffix, colours, background, curved lines, area opacity, donut hole size and a download button.

Reusable charts

Easy Charts Add New Chart saves a chart that you can show in many places, with the Chart block (“Use an existing chart”) or with its shortcode, for example [easy_chart chart_id="123"]. The shortcode also works in the Classic Editor and in widgets. Change the chart once and every page that shows it is updated.

Site-wide chart settings

Easy Charts Settings sets the defaults for every chart on the site: font, colours, legend, tooltips, value labels, size and more. A chart’s own settings override them. By default, charts use your theme’s font. Charts made with Easy Charts 1.x follow these settings once you migrate them.

12 chart types

  • Bar, stacked bar, percent bar and step-up bar
  • Line
  • Area, stacked area and percent area
  • Pie, donut and polar area
  • Waterfall

Every chart type uses the same data table, so you can switch types without changing the data. Bar, line, area and waterfall charts can be drawn vertically or horizontally.

Accessible

  • Every chart comes with its data as a table: screen readers read it, visitors without JavaScript see it, and search engines can index it.
  • Each chart has a short text description, and animations are turned off for visitors who prefer reduced motion.
  • The editor works with the keyboard. Charts, the editor and the settings page are tested with axe against WCAG 2.2 AA.

Download as PNG

Turn on a download button to let visitors save a chart as a PNG image.

Light on your pages

Chart scripts load only on pages that show a chart. Easy Charts adds no database tables: saved charts are posts, block charts live in the block, and site-wide settings are one option.

Upgrading from 1.x

Your charts are kept

  • Updating changes nothing in the database. Your 1.x charts and their settings stay as they are, and every [easy_chart] shortcode keeps working.
  • Each 1.x chart keeps its 1.x look: its colours (including the 1.x “Default” palette), fonts, sizes and other settings. The site-wide settings under Easy Charts Settings don’t apply to it. You can edit and save it in 2.0 without changing that.
  • When you are ready, migrate a chart to the 2.0 styling: open it and choose Migrate to 2.0, or migrate all of them at once under Easy Charts Settings. A migrated chart keeps everything you changed in 1.x, and uses the 2.0 styling and the site-wide settings for the rest, so its default colours and font can change.
  • Migrating, and saving a chart in 2.0, store the chart in a new place. The 1.x data is never changed or deleted, so you can go back to 1.2.5 (see below).

What’s new

  • Charts are drawn with Apache ECharts: sharper, interactive and responsive.
  • A Chart block for the block editor, with a setup wizard, a spreadsheet-style data editor, pasting from spreadsheets and CSV, and a settings sidebar with a live preview.
  • Saved charts are edited in the block editor too, with a “Use this chart” panel that shows the shortcode.
  • Site-wide chart settings, including a font setting (your theme’s font, sans-serif, serif or monospace) and a text size.
  • Every chart comes with its data as a table, for screen readers, visitors without JavaScript and search engines.
  • Horizontal line, area, step-up and waterfall charts, a custom chart title, curved lines, area opacity and donut hole size.

Breaking changes

  • Charts are drawn differently. 2.0 draws with Apache ECharts instead of uvCharts. Even while a chart keeps its 1.x look, its bars, lines, legend, labels and tooltips are drawn in the ECharts style, so it won’t be pixel-identical to 1.x.
  • Some 1.x options are gone and have no effect: fonts and font sizes for each part of the chart (2.0 has one font and one text size per chart; a 1.x chart’s caption font and label size are used), font weights and colours, margins, axis tick, opacity and line settings, logarithmic, power and square-root scales, area offset, pie and donut outlines, plot background, axis sub-labels, legend type, start and symbol size, and tooltip format. 1.x let you pick one of 15 fonts but never loaded them, so visitors without that font saw a fallback; 2.0 uses the matching generic font (sans-serif, serif or monospace).
  • The 1.x chart editor is replaced. Charts are edited in the block editor, even when the Classic Editor plugin is active.
  • The Easy Charts button in the Classic Editor toolbar is gone. Use the shortcode, shown in the “Use this chart” panel when you edit a chart.
  • Private charts are shown only to people who are allowed to read them. 1.x showed them to every visitor.
  • Empty cells are drawn as gaps. 1.x drew them as 0.
  • Numbers with thousands separators, such as “1,234”, are read as text. 1.x plotted them as 1.
  • A chart with no data shows nothing to visitors. People who can edit it see a notice with a link to fix it.
  • New requirements: WordPress 6.6 and PHP 7.4. 1.x ran on WordPress 3.0.

Breaking changes for developers

  • The chart markup changed. A chart is now a <figure class="easy-charts-chart"> with an .easy-charts-chart__canvas box and an .easy-charts-chart__table data table inside .easy-charts-chart__data. The 1.x .ec-uv-chart-container and .uv-div-{ID} elements, the ec_object_{ID} JavaScript objects and the uv global no longer exist, so custom CSS or JavaScript that targets them needs updating.
  • The uvCharts, D3, canvg and FileSaver scripts, the Easy_Charts class and the easy_charts_save_chart_data and easy_charts_get_published_charts admin-ajax actions are removed.
  • The easy_charts_render_chart filter is kept. It now filters the ECharts chart markup.
  • easy_charts_get_chart_configurations is still applied when a 1.x chart is converted.
  • easy_charts_get_chart_data is deprecated, because the uvCharts data it filtered is no longer used. Use easy_charts_convert_v1_chart to change a converted chart.
  • The easy_charts_fonts and easy_chart_dropdown filters are removed.

Going back to 1.2.5

Charts you haven’t saved or migrated in 2.0 are unchanged. Charts you saved or migrated in 2.0 go back to how they were in 1.x, because their 1.x data was kept; changes made in 2.0 don’t show in 1.x. Charts created in 2.0, and Chart blocks, don’t show in 1.x.

Third-party libraries

Easy Charts includes these libraries, all under licences compatible with the GPL:

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums