2017-06-07 14:53:10 +02:00
|
|
|
|
Chartkick.options = {
|
|
|
|
|
content_for: :charts_js,
|
2024-06-17 10:37:11 +02:00
|
|
|
|
colors: ["var(--background-action-high-blue-france)"],
|
2019-01-28 15:17:06 +01:00
|
|
|
|
thousands: ' ',
|
2024-06-17 10:37:11 +02:00
|
|
|
|
decimal: ',',
|
|
|
|
|
default_library_config: {
|
|
|
|
|
chart: { backgroundColor: 'var(--background-contrast-grey)' },
|
2024-06-17 11:53:01 +02:00
|
|
|
|
xAxis: {
|
|
|
|
|
lineColor: 'var(--border-action-high-grey)',
|
|
|
|
|
labels: { style: { color: "var(--text-default-grey)" } }
|
|
|
|
|
},
|
|
|
|
|
yAxis: {
|
|
|
|
|
gridLineColor: 'var(--border-plain-grey)',
|
|
|
|
|
lineColor: 'var(--border-action-high-grey)',
|
|
|
|
|
labels: { style: { color: "var(--text-default-grey)" } }
|
|
|
|
|
},
|
|
|
|
|
legend: {
|
|
|
|
|
itemStyle: {
|
|
|
|
|
color: "var(--text-default-grey)"
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
plotOptions: {
|
|
|
|
|
pie: {
|
|
|
|
|
dataLabels: {
|
|
|
|
|
color: "var(--text-default-grey)",
|
|
|
|
|
enabled: true, format: '{point.name} : {point.percentage: .1f}%',
|
|
|
|
|
style: {
|
|
|
|
|
textOutline: 'none'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2024-06-17 10:37:11 +02:00
|
|
|
|
}
|
2017-06-07 14:53:10 +02:00
|
|
|
|
}
|