aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_elements/_charts/line-chart/line-chart.component.ts
diff options
context:
space:
mode:
authorTAMARA JERINIC <tamara.jerinic@gmail.com>2022-05-10 00:45:40 +0200
committerTAMARA JERINIC <tamara.jerinic@gmail.com>2022-05-10 00:45:40 +0200
commitcccd25d73f4b67db8c0db940d57eb5902544db24 (patch)
treeb9a5fec22d1fe540986610477bea5f70b99d083b /frontend/src/app/_elements/_charts/line-chart/line-chart.component.ts
parent871dd94fc9c5d037bac69d0be95b7e73361949a4 (diff)
Izmenjeni grafici za pregled rezultata treniranja i omogućeno vraćanje metrika backend-u.
Diffstat (limited to 'frontend/src/app/_elements/_charts/line-chart/line-chart.component.ts')
-rw-r--r--frontend/src/app/_elements/_charts/line-chart/line-chart.component.ts21
1 files changed, 19 insertions, 2 deletions
diff --git a/frontend/src/app/_elements/_charts/line-chart/line-chart.component.ts b/frontend/src/app/_elements/_charts/line-chart/line-chart.component.ts
index 655db9ec..9ead9232 100644
--- a/frontend/src/app/_elements/_charts/line-chart/line-chart.component.ts
+++ b/frontend/src/app/_elements/_charts/line-chart/line-chart.component.ts
@@ -54,9 +54,11 @@ export class LineChartComponent implements AfterViewInit {
data: {
labels: this.dataEpoch,
datasets: [{
+
label: 'Accuracy',
data: this.dataAcc,
- borderWidth: 1
+ borderWidth: 1,
+
},
{
label: 'Loss',
@@ -76,6 +78,20 @@ export class LineChartComponent implements AfterViewInit {
]
},
options: {
+ responsive: true,
+ maintainAspectRatio: true,
+
+ plugins: {
+ legend: {
+ labels: {
+ // This more specific font property overrides the global property
+ color:'white',
+ font: {
+ size: 11
+ }
+ }
+ }
+ },
scales: {
x: {
ticks: {
@@ -83,12 +99,13 @@ export class LineChartComponent implements AfterViewInit {
},
grid: {
color: "rgba(0, 99, 171, 0.5)"
- }
+ },
},
y: {
beginAtZero: true,
ticks: {
color: 'white'
+
},
grid: {
color: "rgba(0, 99, 171, 0.5)"