diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ui/benchmarkCharts.ts | 21 |
1 files changed, 18 insertions, 3 deletions
diff --git a/src/ui/benchmarkCharts.ts b/src/ui/benchmarkCharts.ts index 85513c2..b4ebc87 100644 --- a/src/ui/benchmarkCharts.ts +++ b/src/ui/benchmarkCharts.ts @@ -5,6 +5,8 @@ let scoreChart: EChartsType; const userDeviceLabel = 'Your device'; let deviceScores = [ + { device: 'AMD Ryzen 9\n7950X\n(16c/32t)', multiCoreScore: 1294, singleCoreScore: 121 }, + { device: 'AMD Ryzen 7\n5700X\n(8c/16t)', multiCoreScore: 663, singleCoreScore: 104 }, { device: 'AMD Ryzen 7\n3700X\n(8c/16t)', multiCoreScore: 416, singleCoreScore: 74 }, { device: 'Intel 11th Gen\ni5-1145G7\n(4c/8t)', multiCoreScore: 294, singleCoreScore: 73 }, { device: 'Intel 8th Gen\ni7-8550U\n(4c/8t)', multiCoreScore: 221, singleCoreScore: 53 }, @@ -20,7 +22,18 @@ let scoreDataset = { const option: EChartsOption = { legend: {}, dataset: scoreDataset, - xAxis: { type: 'value' }, + xAxis: { + type: 'value', + max: deviceScores[0].multiCoreScore, + axisLabel: { + showMaxLabel: false, + showMinLabel: false + }, + splitLine: { + show: true, + showMaxLine: false, + }, + }, yAxis: { type: 'category', inverse: true, @@ -45,14 +58,16 @@ const option: EChartsOption = { name: 'Multi-core', type: 'bar', label: { - show: true + show: true, + position: "right" }, }, { name: 'Single core', type: 'bar', label: { - show: true + show: true, + position: "right" }, } ], |