Table of Contents
How to create Google Charts in WordPress with wpDataTables
Say you track the prices of the stock your investment club holds, and you want a candlestick chart of the daily prices and a gauge that shows how close you are to this year’s goal. Google Charts is a free chart library from Google that wpDataTables uses as one of its engines. You build the charts from your table data with Tabella AI or the chart wizard and insert them on any page.
What is Google Charts?
Google Charts is a free chart library from Google that draws customizable charts on all platforms. It’s included in wpDataTables Lite and Premium. Geo charts also need a Google Maps API key, as described in how to set up the Google Maps API key.
How do I create a Google Charts chart with Tabella AI?
Ask Tabella AI on the Dashboard for a Google Charts 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 Google column chart of Stock per Product from the Office products table. The card shows the type, the engine, the source table, the columns and a preview before anything is saved.
How do I create a Google Charts chart in the chart wizard?
Go to wpDataTables → Create a Chart, name the chart, choose Google Charts as the engine and click a chart type, then follow the wizard. Google Charts offers 14 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 Google Charts chart types does wpDataTables support?
wpDataTables supports 14 Google chart types. Each needs one text or date column for the labels and number columns for the values:
| Chart type | Data it needs | Notes |
|---|---|---|
| Column | 1 text or date column + 1 or more number columns | |
| Histogram | 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 | |
| Area | 1 text or date column + 1 or more number columns | |
| Stepped area | 1 text or date column + 1 or more number columns | |
| Line | 1 text or date column + 1 or more number columns | |
| Pie | 1 text or date column + exactly 1 number column | |
| Donut | 1 text or date column + exactly 1 number column | |
| Bubble | 1 text or date column + 1 or more number columns | |
| Scatter | 1 text or date column + 1 or more number columns | |
| Candlestick | 1 text or date column + at least 4 number columns | |
| Waterfall | 1 text or date column + at least 4 number columns | |
| Gauge | 1 text or date column + exactly 1 number column | Works best with few rows |
How do candlestick charts work?
A candlestick chart shows how a price moves, usually one candle per day, with four values: open, high, low and close. Its parts mean this:
- The filled part, the body, spans the open and close values. A long body shows strong buying or selling pressure.
- A white candle means the price opened higher than it closed, a loss. A filled, blue candle means it closed higher, a gain.
- The thin lines above and below, the shadows, show the high and the low of the day.
Give the chart one date or text column and four number columns for these values.
What should I remember about Google Charts?
Google Charts is the free engine with classic business charts, financial charts and gauges, in Lite and Premium. Ask Tabella AI for the chart or choose Google Charts in Create a Chart, and pick a type whose data needs match your table. Geo charts need a Google Maps API key.
Where can I read more?
These pages cover creating charts and the other engines: