tweak axes, hide y axis on mobile
This commit is contained in:
parent
1e4e04c025
commit
ebe6105fb3
2 changed files with 18 additions and 6 deletions
|
@ -2,13 +2,21 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.recharts-cartesian-axis-tick-value {
|
||||||
|
font-size: 0.85em;
|
||||||
|
}
|
||||||
|
|
||||||
.recharts-tooltip-wrapper .recharts-default-tooltip {
|
.recharts-tooltip-wrapper .recharts-default-tooltip {
|
||||||
padding: 0 0.5rem !important;
|
padding: 0 0.5em !important;
|
||||||
border-radius: 0.2rem;
|
border-radius: 0.2rem;
|
||||||
font-size: 0.85rem;
|
font-size: 0.85em;
|
||||||
opacity: 0.85;
|
opacity: 0.85;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.recharts-default-tooltip li {
|
||||||
|
color: inherit !important;
|
||||||
|
}
|
||||||
|
|
||||||
.recharts-tooltip-item-value {
|
.recharts-tooltip-item-value {
|
||||||
font-family: PragmataPro, Menlo, "DejaVu Sans Mono", monospace;
|
font-family: PragmataPro, Menlo, "DejaVu Sans Mono", monospace;
|
||||||
}
|
}
|
||||||
|
|
|
@ -63,10 +63,14 @@ export default class Graph extends Component {
|
||||||
tickFormatter={(tick) => ms(Date.now() - tick)}
|
tickFormatter={(tick) => ms(Date.now() - tick)}
|
||||||
tickLine={false}
|
tickLine={false}
|
||||||
/>
|
/>
|
||||||
<YAxis
|
{this.isSmallScreen()
|
||||||
|
? null
|
||||||
|
: <YAxis
|
||||||
dataKey="latency"
|
dataKey="latency"
|
||||||
tickLine={false}
|
tickLine={false}
|
||||||
|
tickFormatter={(tick) => `${tick}ms`}
|
||||||
/>
|
/>
|
||||||
|
}
|
||||||
<CartesianGrid strokeDasharray="1 1" />
|
<CartesianGrid strokeDasharray="1 1" />
|
||||||
<Tooltip
|
<Tooltip
|
||||||
isAnimationActive={false}
|
isAnimationActive={false}
|
||||||
|
|
Loading…
Reference in a new issue