-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChartStyle.js
More file actions
48 lines (44 loc) · 812 Bytes
/
Copy pathChartStyle.js
File metadata and controls
48 lines (44 loc) · 812 Bytes
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
import { StyleSheet } from 'react-native'
import { Helpers, Metrics, Fonts, Colors } from 'App/Theme'
export const styles = StyleSheet.create({
text: {
...Fonts.normal,
textAlign: 'center',
},
});
export const lineChartConfig = {
line: {
visible: true,
strokeWidth: 2,
strokeColor: "#964af6"
},
area: {
visible: false
},
tooltip: {
visible: true,
labelFontSize: 10,
labelFormatter: moneyFormat
},
grid: {
visible: true
},
yAxis: {
// labelColor: "#5822a3",
labelFormatter: moneyFormat
},
xAxis: {
visible: true
},
dataPoint: {
visible: true,
color: "#5822a3",
radius: 4,
label: { visible: false, marginBottom: 25 }
},
insetY: 10,
insetX: 10
};
function moneyFormat(amt){
return "$" + amt.toFixed(2);
}