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

Wyświetl plik

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

Wyświetl plik

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