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