Format bar chart Y axis values

pull/15/head
Michał Górny 2023-08-20 23:07:58 +02:00
rodzic 4688cadbe3
commit dd1c9c56a0
1 zmienionych plików z 6 dodań i 0 usunięć

Wyświetl plik

@ -65,6 +65,12 @@ const displayBarChart = (support: number[]) => {
};
const chartOptions = {
distributeSeries: true,
axisY: {
labelInterpolationFnc: (value: number) => `${value.toLocaleString('pl', {
minimumFractionDigits: 0,
maximumFractionDigits: 1,
})}%`,
},
};
const chart = new BarChart('#support-bar-chart', chartData, chartOptions);
chart.on<'draw'>('draw', (data) => {