aboutsummaryrefslogtreecommitdiff
path: root/src/ui/benchmarkCharts.ts
diff options
context:
space:
mode:
authorJames Barnett <noreply@jamesbarnett.xyz>2025-08-01 19:26:25 +0100
committerJames Barnett <noreply@jamesbarnett.xyz>2025-08-01 19:26:25 +0100
commit4ed6cae45c96166f22b1d295bda12dd9913385a8 (patch)
tree453a52d77c370ba71a57ab3683d537dda52650b0 /src/ui/benchmarkCharts.ts
parentabe1f21f84df5864e8a7781864d9e32436bde2d4 (diff)
downloadjs-raytracer-4ed6cae45c96166f22b1d295bda12dd9913385a8.tar.xz
js-raytracer-4ed6cae45c96166f22b1d295bda12dd9913385a8.zip
Update colors and typography
Diffstat (limited to 'src/ui/benchmarkCharts.ts')
-rw-r--r--src/ui/benchmarkCharts.ts14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/ui/benchmarkCharts.ts b/src/ui/benchmarkCharts.ts
index b4ebc87..d272567 100644
--- a/src/ui/benchmarkCharts.ts
+++ b/src/ui/benchmarkCharts.ts
@@ -48,10 +48,14 @@ const option: EChartsOption = {
usersDevice: {
color: "#5755d9",
fontWeight: "bold",
- fontSize: "14px"
+ fontSize: 20
},
},
+ fontSize: 16
},
+ axisTick: {
+ length: 20
+ }
},
series: [
{
@@ -74,16 +78,22 @@ const option: EChartsOption = {
grid: {
left: '0%',
top: '5%',
+ bottom: '5%',
containLabel: true
},
color: [
'#5755d9',
'#f1f1fc'
],
+ backgroundColor: "#0a0a0a",
+ textStyle: {
+ fontSize: 16,
+ fontFamily: "tamzen"
+ },
}
export function initScoreChart(dom: HTMLElement) {
- scoreChart = echarts.init(dom);
+ scoreChart = echarts.init(dom, 'dark');
scoreChart.setOption(option);
window.addEventListener('resize', function() {