diff --git a/web/components/analytics/charts.tsx b/web/components/charts/stats.tsx similarity index 91% rename from web/components/analytics/charts.tsx rename to web/components/charts/stats.tsx index ad3b52fd..f9f14f23 100644 --- a/web/components/analytics/charts.tsx +++ b/web/components/charts/stats.tsx @@ -1,15 +1,12 @@ import { useMemo } from 'react' import { scaleTime, scaleLinear } from 'd3-scale' -import { min, max } from 'lodash' +import { max } from 'lodash' import dayjs from 'dayjs' import { formatPercent } from 'common/util/format' import { Row } from '../layout/row' -import { - HistoryPoint, - SingleValueHistoryChart, -} from 'web/components/charts/generic-charts' -import { TooltipProps, MARGIN_X, MARGIN_Y } from 'web/components/charts/helpers' +import { HistoryPoint, SingleValueHistoryChart } from './generic-charts' +import { TooltipProps, MARGIN_X, MARGIN_Y } from './helpers' import { SizedContainer } from 'web/components/sized-container' const getPoints = (startDate: number, dailyValues: number[]) => { diff --git a/web/pages/stats.tsx b/web/pages/stats.tsx index fe0111bc..125af4bd 100644 --- a/web/pages/stats.tsx +++ b/web/pages/stats.tsx @@ -1,5 +1,5 @@ import { useEffect, useState } from 'react' -import { DailyChart } from 'web/components/analytics/charts' +import { DailyChart } from 'web/components/charts/stats' import { Col } from 'web/components/layout/col' import { Spacer } from 'web/components/layout/spacer' import { Tabs } from 'web/components/layout/tabs'