pull/15/head
Michał Górny 2023-09-28 21:50:02 +02:00
rodzic 821a3f94e5
commit 5764ebbdb2
3 zmienionych plików z 5 dodań i 3 usunięć

Wyświetl plik

@ -77,6 +77,7 @@ const displayBarChart = (support: number[]) => {
})}%`, })}%`,
}, },
}; };
document.getElementById('support-bar-chart')!.classList.add('ct-perfect-fourth');
const chart = new BarChart('#support-bar-chart', chartData, chartOptions); const chart = new BarChart('#support-bar-chart', chartData, chartOptions);
chart.on<'draw'>('draw', (data) => { chart.on<'draw'>('draw', (data) => {
if (data.type === 'bar') { if (data.type === 'bar') {
@ -109,6 +110,7 @@ const displayPieChart = (mandates: number[]) => {
value < 15 ? '' : `${commiteesWithMandates[index].label} ${value}` value < 15 ? '' : `${commiteesWithMandates[index].label} ${value}`
), ),
}; };
document.getElementById('division-pie-chart')!.classList.add('ct-perfect-fourth');
return new PieChart('#division-pie-chart', chartData, chartOptions); return new PieChart('#division-pie-chart', chartData, chartOptions);
}; };

Wyświetl plik

@ -3,7 +3,7 @@
body { body {
color: #333; color: #333;
background-color: lightgoldenrodyellow; background-color: #eee;
font-size: 15px; font-size: 15px;
} }

Wyświetl plik

@ -31,8 +31,8 @@ div(class=(embed ? 'container embed' : 'container'))
#url #url
.charts-row .charts-row
#support-bar-chart.ct-chart.ct-perfect-fourth #support-bar-chart.ct-chart
#division-pie-chart.ct-chart.ct-perfect-fourth #division-pie-chart.ct-chart
unless embed unless embed
#constituency-results #constituency-results