ok
This commit is contained in:
@@ -230,12 +230,7 @@ const Dashboard = () => {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const prefixes = Object.keys(prefixLabelMap);
|
const prefixes = Object.keys(prefixLabelMap);
|
||||||
const hours = rawData.map(d => d.hour.split(' ')[1]).sort((a, b) => {
|
const hours = rawData.map(d => d.hour).sort((a, b) => parseFloat(a) - parseFloat(b));
|
||||||
// Sort berdasarkan jam dan menit
|
|
||||||
const [h1, m1] = a.split(':').map(Number);
|
|
||||||
const [h2, m2] = b.split(':').map(Number);
|
|
||||||
return h1 !== h2 ? h1 - h2 : m1 - m2;
|
|
||||||
});
|
|
||||||
|
|
||||||
const counts = {};
|
const counts = {};
|
||||||
prefixes.forEach(prefix => {
|
prefixes.forEach(prefix => {
|
||||||
|
|||||||
Reference in New Issue
Block a user