fix charts

This commit is contained in:
Dawid Wysokiński 2020-12-29 19:47:03 +01:00
parent 0bdb7cdcdf
commit e7c5a830c8
8 changed files with 9 additions and 16 deletions

View File

@ -60,7 +60,6 @@ function PlayerStatistics({ server, t }: Props) {
margin={{ top: 20, right: 100, bottom: 50, left: 45 }}
xScale={{
type: 'time',
precision: 'day',
}}
yScale={{
type: 'linear',
@ -71,8 +70,8 @@ function PlayerStatistics({ server, t }: Props) {
}}
xFormat="time:%Y-%m-%d"
axisBottom={{
tickSize: 5,
tickValues: 5,
tickSize: 0,
tickValues: 'every 6 days',
tickPadding: 5,
tickRotation: 0,
format: '%Y-%m-%d',

View File

@ -1 +1 @@
export const LIMIT = 30;
export const LIMIT = 31;

View File

@ -60,7 +60,6 @@ function TribeStatistics({ server, t }: Props) {
margin={{ top: 20, right: 100, bottom: 50, left: 45 }}
xScale={{
type: 'time',
precision: 'day',
}}
yScale={{
type: 'linear',
@ -71,8 +70,7 @@ function TribeStatistics({ server, t }: Props) {
}}
xFormat="time:%Y-%m-%d"
axisBottom={{
tickSize: 5,
tickValues: 5,
tickValues: 'every 6 days',
tickPadding: 5,
tickRotation: 0,
format: '%Y-%m-%d',

View File

@ -1 +1 @@
export const LIMIT = 30;
export const LIMIT = 31;

View File

@ -119,7 +119,6 @@ function Statistics({ t, server, playerID }: Props) {
margin={{ top: 20, right: 90, bottom: 50, left: 85 }}
xScale={{
type: 'time',
precision: 'day',
}}
yScale={{
type: 'linear',
@ -130,8 +129,7 @@ function Statistics({ t, server, playerID }: Props) {
}}
xFormat="time:%Y-%m-%d"
axisBottom={{
tickSize: 5,
tickValues: 5,
tickValues: 'every 6 days',
tickPadding: 5,
tickRotation: 0,
format: '%Y-%m-%d',

View File

@ -1 +1 @@
export const LIMIT = 30;
export const LIMIT = 31;

View File

@ -112,7 +112,6 @@ function Statistics({ t, server, tribeID }: Props) {
margin={{ top: 20, right: 90, bottom: 50, left: 85 }}
xScale={{
type: 'time',
precision: 'day',
}}
yScale={{
type: 'linear',
@ -123,8 +122,7 @@ function Statistics({ t, server, tribeID }: Props) {
}}
xFormat="time:%Y-%m-%d"
axisBottom={{
tickSize: 5,
tickValues: 5,
tickValues: 'every 6 days',
tickPadding: 5,
tickRotation: 0,
format: '%Y-%m-%d',

View File

@ -1 +1 @@
export const LIMIT = 30;
export const LIMIT = 31;