PluginProbe
M Chart / 2.3
M Chart v2.3
2.3.2 2.3.1 2.3 2.2.2 2.2.1 2.2 trunk 1.0 1.1 1.1.1 1.1.2 1.1.3 1.1.4 1.1.5 1.10 1.10.1 1.11 1.11.1 1.11.2 1.12 1.2 1.2.1 1.3 1.3.1 1.3.2 All 53 releases
m-chart / components / chartjs-themes / chartjs.php

chartjs.php in M Chart 2.3, at components/chartjs-themes/chartjs.php

67 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 if ( ! defined( 'ABSPATH' ) ) {
4 exit;
5 }
6
7 /**
8 * Theme Name: Chart.js
9 */
10
11 return array(
12 'colors' => array(
13 '#56a0e5', // Blue
14 '#ed6d85', // Pink
15 '#6cbdbf', // Turquoise
16 '#f1a354', // Orange
17 '#9169f6', // Purple
18 '#f7cf6b', // Yellow
19 '#c9cbce', // Gray
20 ),
21 // hoverRadius/hitRadius match get_points_defaults(), theme points replace the defaults wholesale
22 // so leaving them out would drop to Chart.js's much smaller hover targets
23 'points' => array(
24 array(
25 'point' => array(
26 // Circle
27 'pointStyle' => 'circle',
28 'hoverRadius' => 7,
29 'hitRadius' => 13,
30 ),
31 ),
32 array(
33 'point' => array(
34 // Diamond
35 'pointStyle' => 'rectRot',
36 'hoverRadius' => 7,
37 'hitRadius' => 13,
38 ),
39 ),
40 array(
41 'point' => array(
42 // Square
43 'pointStyle' => 'rect',
44 'hoverRadius' => 7,
45 'hitRadius' => 13,
46 ),
47 ),
48 array(
49 'point' => array(
50 // Up Triangle
51 'pointStyle' => 'triangle',
52 'hoverRadius' => 7,
53 'hitRadius' => 13,
54 ),
55 ),
56 array(
57 'point' => array(
58 // Down Triangle
59 'pointStyle' => 'triangle',
60 'rotation' => 180,
61 'hoverRadius' => 7,
62 'hitRadius' => 13,
63 ),
64 ),
65 ),
66 );
67