Our Biggest Sale Is Here
Up to 70% Off
Get the Deal

How to create Chart.js charts in WordPress with wpDataTables

Say you run a small fitness studio and want a simple line chart of monthly sign-ups and a doughnut chart of the most popular classes on your website, without paying for a chart service. Chart.js is a free, open-source chart library that wpDataTables uses as one of its engines. You build the charts from your table data with Tabella AI or the chart wizard, and they look sharp on phones and desktops alike.

What is Chart.js?

Chart.js is a free, open-source JavaScript library for simple and flexible charts that work on all platforms. It’s included in wpDataTables Lite and Premium, so you don’t need an account or a licence for it.

How do I create a Chart.js chart with Tabella AI?

Ask Tabella AI on the Dashboard for a Chart.js chart from your table, check the Review chart creation card and click Create reviewed chart. For example, type in Reply to Tabella AI…: Create a Chart.js line chart of Sign-ups per Month from the Studio members table. The card shows the type, the engine, the source table, the columns and a preview before anything is saved.

Tabella AI creates Chart.js charts in Lite and Premium. It needs WordPress 7.0 or newer and a connected AI provider, as described in how to use Tabella AI.

How do I create a Chart.js chart in the chart wizard?

Go to wpDataTables → Create a Chart, name the chart, choose Chart.js as the engine and click a chart type, then follow the wizard. Chart.js offers 12 chart types. The steps after the engine are the same for every engine: the data source, the data range, the formatting with a live preview and Save chart, as described in how to create a chart in the chart wizard.

Which Chart.js chart types does wpDataTables support?

wpDataTables supports 12 Chart.js chart types. Each needs one text or date column for the labels and number columns for the values:

Chart type Data it needs
Line 1 text or date column + 1 or more number columns
Area 1 text or date column + 1 or more number columns
Stacked area 1 text or date column + 1 or more number columns
Column 1 text or date column + 1 or more number columns
Stacked column 1 text or date column + 1 or more number columns
Bar 1 text or date column + 1 or more number columns
Stacked bar 1 text or date column + 1 or more number columns
Radar 1 text or date column + 1 or more number columns
Polar 1 text or date column + exactly 1 number column
Pie 1 text or date column + exactly 1 number column
Doughnut 1 text or date column + exactly 1 number column
Bubble 1 text or date column + exactly 3 number columns

Which Chart.js version does wpDataTables use?

wpDataTables uses Chart.js 4.x. If you changed charts with wpDataCharts callbacks for an older version, check that they still work, because the structure of the chart object changed. Read both the Chart.js 3.x migration guide and the Chart.js 4.x migration guide, since most changes came in 3.x.

What should I remember about Chart.js?

Chart.js is the free engine for simple charts in Lite and Premium. Ask Tabella AI for the chart or choose Chart.js in Create a Chart, and pick a type whose data needs match your table: one label column plus number columns. If you use callbacks, check them against Chart.js 4.x.

Wait, Before You Download!

To get your hands on wpDataTables Lite, please enter your email address below. We’ll send you a direct download link and keep you updated on existing features along with helpful tips and tricks!

By continuing, I accept Privacy Policy and T&C
Mail Box