Client - improve charts axis contrast

This commit is contained in:
Sam
2023-12-20 10:05:28 +01:00
parent 58489aedfb
commit a05ae3e99b
3 changed files with 77 additions and 2 deletions

View File

@ -7,6 +7,18 @@ import type {
} from '@/types/workouts'
import { convertStatsDistance } from '@/utils/units'
export const chartsColors = {
ligthMode: {
// default chartjs values
text: '#666',
line: 'rgba(0, 0, 0, 0.1)',
},
darkMode: {
text: '#a1a1a1',
line: '#3f3f3f',
},
}
export const getDatasets = (
chartData: IWorkoutApiChartData[],
t: CallableFunction,