Move analytics charts component
This commit is contained in:
parent
2268bb9eac
commit
5460241f4c
|
@ -1,15 +1,12 @@
|
||||||
import { useMemo } from 'react'
|
import { useMemo } from 'react'
|
||||||
import { scaleTime, scaleLinear } from 'd3-scale'
|
import { scaleTime, scaleLinear } from 'd3-scale'
|
||||||
import { min, max } from 'lodash'
|
import { max } from 'lodash'
|
||||||
import dayjs from 'dayjs'
|
import dayjs from 'dayjs'
|
||||||
|
|
||||||
import { formatPercent } from 'common/util/format'
|
import { formatPercent } from 'common/util/format'
|
||||||
import { Row } from '../layout/row'
|
import { Row } from '../layout/row'
|
||||||
import {
|
import { HistoryPoint, SingleValueHistoryChart } from './generic-charts'
|
||||||
HistoryPoint,
|
import { TooltipProps, MARGIN_X, MARGIN_Y } from './helpers'
|
||||||
SingleValueHistoryChart,
|
|
||||||
} from 'web/components/charts/generic-charts'
|
|
||||||
import { TooltipProps, MARGIN_X, MARGIN_Y } from 'web/components/charts/helpers'
|
|
||||||
import { SizedContainer } from 'web/components/sized-container'
|
import { SizedContainer } from 'web/components/sized-container'
|
||||||
|
|
||||||
const getPoints = (startDate: number, dailyValues: number[]) => {
|
const getPoints = (startDate: number, dailyValues: number[]) => {
|
|
@ -1,5 +1,5 @@
|
||||||
import { useEffect, useState } from 'react'
|
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 { Col } from 'web/components/layout/col'
|
||||||
import { Spacer } from 'web/components/layout/spacer'
|
import { Spacer } from 'web/components/layout/spacer'
|
||||||
import { Tabs } from 'web/components/layout/tabs'
|
import { Tabs } from 'web/components/layout/tabs'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user