fix(ui) - chart y axis numbers
This commit is contained in:
parent
356bf32bfc
commit
d36d4862cf
5 changed files with 8 additions and 3 deletions
|
|
@ -31,9 +31,10 @@ function CustomMetriLineChart(props: Props) {
|
|||
<YAxis
|
||||
{...Styles.yaxis}
|
||||
allowDecimals={false}
|
||||
tickFormatter={val => Styles.tickFormatter(val)}
|
||||
label={{
|
||||
...Styles.axisLabelLeft,
|
||||
value: "Number of Sessions"
|
||||
...Styles.axisLabelLeft,
|
||||
value: "Number of Sessions"
|
||||
}}
|
||||
/>
|
||||
<Legend />
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ function BreakdownOfLoadedResources(props: Props) {
|
|||
{...Styles.yaxis}
|
||||
allowDecimals={false}
|
||||
label={{ ...Styles.axisLabelLeft, value: "Number of Resources" }}
|
||||
tickFormatter={val => Styles.tickFormatter(val)}
|
||||
/>
|
||||
<Legend />
|
||||
<Tooltip {...Styles.tooltip} />
|
||||
|
|
|
|||
|
|
@ -33,6 +33,7 @@ function ErrorsByOrigin(props: Props) {
|
|||
/>
|
||||
<YAxis
|
||||
{...Styles.yaxis}
|
||||
tickFormatter={val => Styles.tickFormatter(val)}
|
||||
label={{ ...Styles.axisLabelLeft, value: "Number of Errors" }}
|
||||
allowDecimals={false}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -32,6 +32,7 @@ function ErrorsByType(props: Props) {
|
|||
/>
|
||||
<YAxis
|
||||
{...Styles.yaxis}
|
||||
tickFormatter={val => Styles.tickFormatter(val)}
|
||||
label={{ ...Styles.axisLabelLeft, value: "Number of Errors" }}
|
||||
allowDecimals={false}
|
||||
/>
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ import { Icon } from 'UI'
|
|||
import cn from 'classnames'
|
||||
import { debounce } from 'App/utils';
|
||||
import { Tooltip } from 'react-tippy';
|
||||
import { numberWithCommas } from 'App/utils';
|
||||
interface Props {
|
||||
page: number
|
||||
totalPages: number
|
||||
|
|
@ -57,7 +58,7 @@ export default function Pagination(props: Props) {
|
|||
onChange={(e) => changePage(parseInt(e.target.value))}
|
||||
/>
|
||||
<span className="mx-3 color-gray-medium">of</span>
|
||||
<span >{totalPages}</span>
|
||||
<span >{numberWithCommas(totalPages)}</span>
|
||||
<Tooltip
|
||||
arrow
|
||||
sticky
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue