mirror of
https://github.com/tiennm99/ccs.git
synced 2026-09-02 18:18:43 +00:00
fix: chronological ordering in usage trends chart (#1008)
This commit is contained in:
@@ -46,7 +46,7 @@ export function UsageTrendChart({
|
|||||||
if (!data || data.length === 0) return [];
|
if (!data || data.length === 0) return [];
|
||||||
|
|
||||||
// For hourly data, already sorted ascending from API
|
// For hourly data, already sorted ascending from API
|
||||||
const sortedData = granularity === 'hourly' ? data : [...data].reverse();
|
const sortedData = data;
|
||||||
|
|
||||||
return sortedData.map((item) => {
|
return sortedData.map((item) => {
|
||||||
// Handle hourly vs daily data format
|
// Handle hourly vs daily data format
|
||||||
|
|||||||
Reference in New Issue
Block a user