M ChartM Chart
Users
Highcharts
Developers
Download
GitHub
Users
Highcharts
Developers
Download
GitHub
  • Highcharts

    • Highcharts Guide
    • Highcharts Themes
    • Highcharts PHP Hooks & Filters
    • Highcharts Admin UI Hooks

Highcharts Themes

Available since version 1.2 (Highcharts).

Custom Highcharts themes are created by adding PHP files to an m-chart-highcharts-themes directory inside your active WordPress theme folder:

wp-content/themes/your-theme/
└── m-chart-highcharts-themes/
    └── my-theme.php

Built-in Themes

ThemeDescription
Highcharts 4.x (Default)The default Highcharts 4 color scheme
Color Blind SafeAccessible color palette
Highcharts 3.xColor scheme from Highcharts 3
Highcharts 2.xColor scheme from Highcharts 2

Creating a Custom Theme

A theme file returns an array with a name and a Highcharts options object:

<?php

/**
 * Theme Name: My Highcharts Theme
 */

return [
	'colors'  => [ '#7cb5ec', '#434348', '#90ed7d', '#f7a35c' ],
	'options' => [
		'chart' => [
			'backgroundColor' => '#ffffff',
			'style'           => [
				'fontFamily' => 'sans-serif',
			],
		],
	],
];

The options array is merged directly into the Highcharts configuration object, so most valid Highcharts options can be set here.

Filtering Available Themes

Use the m_chart_highcharts_available_themes filter to add, remove, or modify themes programmatically.

Last Updated: 4/16/26, 6:12 PM
Contributors: Jamie Poitra
Prev
Highcharts Guide
Next
Highcharts PHP Hooks & Filters