Skip to content

Commit

Permalink
webapp/training: nicer graphs
Browse files Browse the repository at this point in the history
  • Loading branch information
tharvik committed Oct 28, 2024
1 parent b896e85 commit a5735e8
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions webapp/src/components/training/TrainingInformation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -271,9 +271,11 @@ const commonChartsOptions = {
type: "solid",
opacity: 0.6,
},
stroke: { curve: "smooth" },
stroke: { curve: "monotoneCubic" },
grid: { show: false },
xaxis: {
type: "numeric",
decimalsInFloat: 0,
labels: {
show: true,
style: {
Expand Down Expand Up @@ -327,9 +329,9 @@ const accuracyChartsOptions = {
...commonChartsOptions.yaxis,
max: 100,
min: 0,
labels: {
labels: {
...commonChartsOptions.yaxis.labels,
formatter: (value: number) => value.toFixed(0)
formatter: (value: number) => value.toFixed(0),
},
},
};
Expand All @@ -348,9 +350,9 @@ const lossChartsOptions = computed(() => {
...commonChartsOptions.yaxis,
max: yAxisMax,
min: 0,
labels: {
labels: {
...commonChartsOptions.yaxis.labels,
formatter: (n: number) => n.toFixed(2)
formatter: (n: number) => n.toFixed(2),
},
},
};
Expand Down

0 comments on commit a5735e8

Please sign in to comment.