Skip to content

Commit

Permalink
fix: x-axis not displaying the right date (#3068)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gastón Fournier committed Feb 8, 2023
1 parent 50f9815 commit 35d43df
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Expand Up @@ -59,7 +59,7 @@ const summingReqsByLabelAndType = (

const toGraphData = (metrics?: RequestsPerSecondSchema) => {
const results =
metrics?.data?.result?.filter(result => result.metric?.appName) || [];
metrics?.data?.result?.filter(result => result?.metric?.appName) || [];
const aggregated = results
.map(asNetworkAppData)
.reduce(summingReqsByLabelAndType, {});
Expand Down
Expand Up @@ -111,10 +111,10 @@ const createInstanceChartOptions = (
x: {
type: 'time',
time: { unit: 'minute' },
grid: { display: false },
grid: { display: true },
ticks: {
callback: (_, i, data) =>
formatDateHM(data[i].value, locationSettings.locale),
formatDateHM(data[i].value * 1000, locationSettings.locale),
},
},
},
Expand Down

0 comments on commit 35d43df

Please sign in to comment.