mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-10-10 21:26:01 +02:00
k
This commit is contained in:
@@ -45,7 +45,6 @@ export function QueryPerformanceChart({
|
|||||||
} else {
|
} else {
|
||||||
const initialDate = timeRange.from || new Date(queryAnalyticsData[0].date);
|
const initialDate = timeRange.from || new Date(queryAnalyticsData[0].date);
|
||||||
const dateRange = getDatesList(initialDate);
|
const dateRange = getDatesList(initialDate);
|
||||||
console.log("dateRange", dateRange);
|
|
||||||
|
|
||||||
const dateToQueryAnalytics = new Map(
|
const dateToQueryAnalytics = new Map(
|
||||||
queryAnalyticsData.map((queryAnalyticsEntry) => [
|
queryAnalyticsData.map((queryAnalyticsEntry) => [
|
||||||
@@ -59,8 +58,6 @@ export function QueryPerformanceChart({
|
|||||||
userAnalyticsEntry,
|
userAnalyticsEntry,
|
||||||
])
|
])
|
||||||
);
|
);
|
||||||
// console.log("dateToQueryAnalytics", dateToQueryAnalytics);
|
|
||||||
// console.log("dateToUserAnalytics", dateToUserAnalytics);
|
|
||||||
|
|
||||||
chart = (
|
chart = (
|
||||||
<AreaChartDisplay
|
<AreaChartDisplay
|
||||||
|
@@ -50,7 +50,7 @@ export function AreaChartDisplay({
|
|||||||
categories = [],
|
categories = [],
|
||||||
index,
|
index,
|
||||||
colors = ["indigo", "fuchsia"],
|
colors = ["indigo", "fuchsia"],
|
||||||
xAxisFormatter,
|
xAxisFormatter = (dateStr: string) => dateStr,
|
||||||
valueFormatter = (number: number) =>
|
valueFormatter = (number: number) =>
|
||||||
`${Intl.NumberFormat("us").format(number).toString()}`,
|
`${Intl.NumberFormat("us").format(number).toString()}`,
|
||||||
startEndOnly = false,
|
startEndOnly = false,
|
||||||
@@ -96,7 +96,7 @@ export function AreaChartDisplay({
|
|||||||
tickLine={false}
|
tickLine={false}
|
||||||
axisLine={false}
|
axisLine={false}
|
||||||
tickMargin={8}
|
tickMargin={8}
|
||||||
tickFormatter={(value) => xAxisFormatter?.(value) || value}
|
tickFormatter={(value) => xAxisFormatter(value)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
{showYAxis && (
|
{showYAxis && (
|
||||||
|
Reference in New Issue
Block a user