aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/_elements/_charts/scatterchart/scatterchart.component.ts
diff options
context:
space:
mode:
authorTAMARA JERINIC <tamara.jerinic@gmail.com>2022-04-30 19:33:37 +0200
committerTAMARA JERINIC <tamara.jerinic@gmail.com>2022-04-30 19:39:18 +0200
commitec6db17db91c496ba7c61e9123942114e78044a2 (patch)
treef5aee49c66c541668302a3e93347d08c9ad521b0 /frontend/src/app/_elements/_charts/scatterchart/scatterchart.component.ts
parent1c723f051d723a743718f11c69e39b7913235bb7 (diff)
Dodati grafici u metric-view komponentu, prilagođena boja grafika, metric-view komponenta povezana sa navbar-om.
Diffstat (limited to 'frontend/src/app/_elements/_charts/scatterchart/scatterchart.component.ts')
-rw-r--r--frontend/src/app/_elements/_charts/scatterchart/scatterchart.component.ts21
1 files changed, 19 insertions, 2 deletions
diff --git a/frontend/src/app/_elements/_charts/scatterchart/scatterchart.component.ts b/frontend/src/app/_elements/_charts/scatterchart/scatterchart.component.ts
index 9dfef4c3..12795c70 100644
--- a/frontend/src/app/_elements/_charts/scatterchart/scatterchart.component.ts
+++ b/frontend/src/app/_elements/_charts/scatterchart/scatterchart.component.ts
@@ -24,15 +24,32 @@ export class ScatterchartComponent implements OnInit {
{x: 15, y: 5},
{x: 16, y: 3},
{x: 17, y: 2}],
- backgroundColor: 'rgb(255, 99, 132)'
+ borderColor: 'white',
}]
},
options: {
scales: {
+ x:{
+ ticks: {
+ color: 'white'
+ },
+ grid: {
+ color: "rgba(0, 99, 171, 0.5)"
+ }
+ },
y: {
- beginAtZero: true
+ beginAtZero: true,
+ ticks: {
+ color: 'white'
+ },
+ grid: {
+ color: "rgba(0, 99, 171, 0.5)"
+ }
}
+
}
+
+
}
});
}