Table of Contents
How to create a chart in WordPress with wpDataTables
Say you sell office supplies and keep your stock in a wpDataTables table, and you want a column chart on your site that shows how many pieces of each product are left. You don’t need a separate chart tool or any code. You ask Tabella AI for the chart, or you build it in the chart wizard, and wpDataTables draws it from the table data, keeps it up to date with the table and gives you a shortcode for any page.
What do I need before I create a chart?
You need a data table with at least one text or date column for the labels and one number column for the values. Manual tables, imported tables and tables linked to a file, a Google sheet or a database all work. Simple tables can’t be used as a chart source. The chart reads the table data, so when the table changes, the chart changes too.
wpDataTables draws charts with one of four engines. Lite includes Google Charts and Chart.js, and Premium adds Highcharts and ApexCharts:
| Engine | Good for | Chart types |
|---|---|---|
| Chart.js | Simple, flexible charts that work on all platforms | 12, such as line, column, pie and bubble |
| Google Charts | Classic business charts, gauges and geo charts | 14, such as column, histogram, candlestick and gauge |
| Highcharts | Animated, interactive charts with 3D and combined types | 20, such as 3D pie, treemap and funnel, plus Highcharts Stock |
| ApexCharts | Modern charts with gradients, toolbars and zoom | 18, such as 100% stacked column, radial bar and gradient donut |
How do I create a chart with Tabella AI?
Ask Tabella AI on the Dashboard for the chart, check the Review chart creation card and click Create reviewed chart.
- Open Tabella AI. Go to wpDataTables → Dashboard, or click the suggestion Create a chart from my tables.
- Describe the chart. Type your request in Reply to Tabella AI…, for example: Create a column chart of Stock per Product from the Office products table. Click Send message →.
- Check the review. The Review chart creation card shows the chart name, type and engine, for example Stock per Product · column · chartjs, the source table, the columns and a data preview. Nothing is created until you approve it.
- Create the chart. Click Create reviewed chart, or Discard draft and start over to try again.

Video: creating a chart from a table with Tabella AI.
How do I create a chart in the chart wizard?
Go to wpDataTables → Create a Chart, then name the chart, pick the engine and type, choose the table and the data range, adjust the look and click Save chart. The steps at the top, from 1. Chart title & type to 5. Save and get shortcode, show where you are, and you can go back to any step with Previous.
- Name the chart and choose the type. Type a chart name you’ll recognize later, choose the engine, then click a chart type, for example Chart.js and the column chart. Click Next.
- Choose the data source. On the Data source step, choose the table, for example Office products. Click Next.
- Choose the columns. On the Data range step, click each column you want in Columns in the data source, for example Product and Stock, to add it to Columns used in the chart. Click a chosen column again to remove it, or use Add all and Remove all. Drag the chosen columns to change their order. The list warns you if the chart type needs more or other columns.
- Choose the rows. In Row range, keep All rows (default), or choose Pick range, click Range picker…, select the cells and click OK.
- Format the chart. Click Next. On the Formatting and preview step, change the options and watch the live preview.
- Save the chart. Click Save chart. On Save and get shortcode, click the copy button next to the shortcode.

The Follow table filtering switch under Charts data filtering on the Data range step redraws the chart when visitors filter the table on the same page. It works only with All rows (default) in Row range. Read how to make a chart follow table filtering.
Which formatting options can I change?
The Formatting and preview step groups the options by chart element, and the preview shows every change at once. Some options exist only for some engines:
| Group | Main options |
|---|---|
| Chart | Width and height, Responsive width, Group chart, background, border and plot area colors, font size and name (Chart.js, Google Charts), zoom and panning (Highcharts, ApexCharts), data labels, markers and drop shadow (ApexCharts) |
| Series | Label and color of each series; type and vertical axis per series for combined charts (Highcharts, ApexCharts); curve type (Google line, Chart.js line and area); 3D (Google pie) |
| Axes | Grid, axis labels, crosshairs, axis direction, minimum and maximum of the vertical axis, inverted axes |
| Title | Show the title, floating title, alignment and subtitle (Highcharts, ApexCharts) |
| Tooltip | Show the tooltip, colors and border, shared tooltip, value prefix and suffix (Highcharts) |
| Legend | Show the legend, position, alignment, title and border (Highcharts) |
| Exporting and credits | Download as CSV, XLS, PDF, PNG, JPG or SVG and show the data table (Highcharts); credits text and link |
| Toolbar | Download as CSV, PNG or SVG, selection, zoom and panning (ApexCharts) |
| Loader | The loading animation shown while the chart loads |
Group chart adds up rows with the same label into one value. Read how grouping works in charts.
How do I add the chart to a page?
Paste the chart’s shortcode, for example [wpdatachart id=1], into a post or page. You find it after Save chart and on the Charts list. Read how to add tables and charts to a page, or insert the chart with the block editor or the Elementor integration.
What should I remember about creating charts?
Create charts from data tables, not Simple tables. Ask Tabella AI on the Dashboard and approve the Review chart creation card, or use Create a Chart: name and type, data source, data range, formatting with a live preview, and Save chart. Insert the chart with its shortcode, and it stays in sync with the table data.
Where can I read more?
These pages go further with charts: