-
Notifications
You must be signed in to change notification settings - Fork 30
/
theme-googlecharts.ts
76 lines (72 loc) · 1.42 KB
/
theme-googlecharts.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
/**
* Copyright 2020 Google LLC.
*
* Use of this source code is governed by a BSD-style
* license that can be found in the LICENSE file or at
* https://developers.google.com/open-source/licenses/bsd
*/
import {Config} from './config';
const markColor = '#3366CC';
const gridColor = '#ccc';
const defaultFont = 'Arial, sans-serif';
const googlechartsTheme: Config = {
arc: {fill: markColor},
area: {fill: markColor},
path: {stroke: markColor},
rect: {fill: markColor},
shape: {stroke: markColor},
symbol: {stroke: markColor},
circle: {fill: markColor},
background: '#fff',
padding: {
top: 10,
right: 10,
bottom: 10,
left: 10,
},
style: {
'guide-label': {
font: defaultFont,
fontSize: 12,
},
'guide-title': {
font: defaultFont,
fontSize: 12,
},
'group-title': {
font: defaultFont,
fontSize: 12,
},
},
title: {
font: defaultFont,
fontSize: 14,
fontWeight: 'bold',
dy: -3,
anchor: 'start',
},
axis: {
gridColor: gridColor,
tickColor: gridColor,
domain: false,
grid: true,
},
range: {
category: [
'#4285F4',
'#DB4437',
'#F4B400',
'#0F9D58',
'#AB47BC',
'#00ACC1',
'#FF7043',
'#9E9D24',
'#5C6BC0',
'#F06292',
'#00796B',
'#C2185B',
],
heatmap: ['#c6dafc', '#5e97f6', '#2a56c6'],
},
};
export default googlechartsTheme;