Table of Contents
How to create Highcharts Stock charts in WordPress with wpDataTables
Say you publish the daily share price of your company on its investor page, and visitors want to zoom in on last month or compare the highs and lows of a quarter. Highcharts Stock is a financial chart library made for data over time, with candlestick, OHLC and range charts. wpDataTables builds these charts from your table data in the chart wizard, without any code.
What is Highcharts Stock?
Highcharts Stock is the financial chart library of Highcharts, made for interactive charts of values over time. Like Highcharts, it’s free for commercial use in wpDataTables since version 3.0.4, so you don’t need a separate Highcharts licence.
How do I create a Highcharts Stock chart in the chart wizard?
Go to wpDataTables → Create a Chart, name the chart, choose Highcharts Stock as the engine and click a chart type, then follow the wizard. Highcharts Stock offers 14 chart types, and each needs a date or datetime column. 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 Highcharts Stock chart types does wpDataTables support?
wpDataTables supports 14 Highcharts Stock chart types. Each needs one date or datetime column and number columns for the values:
| Chart type | Data it needs | Notes |
|---|---|---|
| Line | 1 date or datetime column + 1 or more number columns | Can be combined with other series types |
| Spline | 1 date or datetime column + 1 or more number columns | Can be combined with other series types |
| Stepline | 1 date or datetime column + 1 or more number columns | Can be combined with other series types |
| Line with markers | 1 date or datetime column + 1 or more number columns | Can be combined with other series types |
| Point markers only | 1 date or datetime column + 1 or more number columns | Can be combined with other series types |
| Area | 1 date or datetime column + 1 or more number columns | Can be combined with other series types |
| Area spline | 1 date or datetime column + 1 or more number columns | Can be combined with other series types |
| Area range | 1 date or datetime column + at least 2 number columns | |
| Area spline range | 1 date or datetime column + at least 2 number columns | |
| Column | 1 date or datetime column + 1 or more number columns | Can be combined with other series types |
| Column range | 1 date or datetime column + at least 2 number columns | |
| Candlestick | 1 date or datetime column + at least 4 number columns | |
| HLC | 1 date or datetime column + at least 4 number columns | |
| OHLC | 1 date or datetime column + at least 4 number columns |
Which Highcharts Stock type should I choose?
Choose the type by what your data describes. A rough guide:
- One value over time, such as a closing price: line, spline, stepline, line with markers, point markers only, area, area spline or column.
- A range over time, such as the daily low and high temperature: area range, area spline range or column range.
- Prices of a trading day: candlestick or OHLC with open, high, low and close, or HLC with high, low and close.
What should I remember about Highcharts Stock?
Highcharts Stock draws financial and time-based charts in the Pro and Developer licences. Choose Highcharts Stock in Create a Chart, give it a date or datetime column and number columns, and pick a type for single values, ranges or trading days.
Where can I read more?
These pages cover creating charts and the other engines: