Highcharts Themes - methnen/m-chart GitHub Wiki

Available in M Chart v.1.2+ (When using the Highcharts Library)

Default themes:

  • Highcharts 4.x (Default)
  • Color Blind Safe
  • Highcharts 3.x
  • Highcharts 2.x

An M Chart Highcharts theme can be added to you current WordPress theme by creating a m-chart-highcharts-themes directory inside of your theme directory.

Then add a theme file to the directory (e.g. /wp-content/themes/twentyfifteen/m-chart-highcharts-themes/limeaid.php)

Example theme code:

<?php

/**
 * Theme Name: Limeaid
 */

return array(
	'colors' => array(
		'#59a80f',
		'#9ed54c',
		'#c4ed68',
		'#e2ff9e',
		'#f0F2dd',
	),
);

Download Example Highcharts Theme

Themes can contain any Highcharts settings you might want to change the defaults on, though colors are the obvious choice. The themes that ship with M Chart are all color only themes.

See the Highcharts API reference for all the possibilities.