aboutsummaryrefslogtreecommitdiff
path: root/frontend/src/app/scatterchart
diff options
context:
space:
mode:
authorDanijel Andjelkovic <adanijel99@gmail.com>2022-05-05 00:46:39 +0000
committerDanijel Andjelkovic <adanijel99@gmail.com>2022-05-05 00:46:39 +0000
commitc77c5289d01f1f02a57a060dc2166b449e597881 (patch)
treecb64f2775335cdd856e81ec9e8ba0bed93fa0985 /frontend/src/app/scatterchart
parent6f48458e058d3e5a8d559adc22adbe78cba9a253 (diff)
parent15c60cb0c179d2d3c353ab3e19370e16d02176eb (diff)
Merge branch 'redesign' into 'master'
merge See merge request igrannonica/neuronstellar!29
Diffstat (limited to 'frontend/src/app/scatterchart')
-rw-r--r--frontend/src/app/scatterchart/scatterchart.component.css6
-rw-r--r--frontend/src/app/scatterchart/scatterchart.component.html4
-rw-r--r--frontend/src/app/scatterchart/scatterchart.component.spec.ts25
-rw-r--r--frontend/src/app/scatterchart/scatterchart.component.ts39
4 files changed, 0 insertions, 74 deletions
diff --git a/frontend/src/app/scatterchart/scatterchart.component.css b/frontend/src/app/scatterchart/scatterchart.component.css
deleted file mode 100644
index 5735217e..00000000
--- a/frontend/src/app/scatterchart/scatterchart.component.css
+++ /dev/null
@@ -1,6 +0,0 @@
-#divScatterChart{
- background-color: beige;
- display: block;
- width: 400px;
- height: 200px;
-} \ No newline at end of file
diff --git a/frontend/src/app/scatterchart/scatterchart.component.html b/frontend/src/app/scatterchart/scatterchart.component.html
deleted file mode 100644
index 2b30fe1f..00000000
--- a/frontend/src/app/scatterchart/scatterchart.component.html
+++ /dev/null
@@ -1,4 +0,0 @@
-<p>Scatter chart:</p>
-<div id="divScatterChart">
- <canvas id="ScatterCharts"> </canvas>
-</div> \ No newline at end of file
diff --git a/frontend/src/app/scatterchart/scatterchart.component.spec.ts b/frontend/src/app/scatterchart/scatterchart.component.spec.ts
deleted file mode 100644
index 1db81051..00000000
--- a/frontend/src/app/scatterchart/scatterchart.component.spec.ts
+++ /dev/null
@@ -1,25 +0,0 @@
-import { ComponentFixture, TestBed } from '@angular/core/testing';
-
-import { ScatterchartComponent } from './scatterchart.component';
-
-describe('ScatterchartComponent', () => {
- let component: ScatterchartComponent;
- let fixture: ComponentFixture<ScatterchartComponent>;
-
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- declarations: [ ScatterchartComponent ]
- })
- .compileComponents();
- });
-
- beforeEach(() => {
- fixture = TestBed.createComponent(ScatterchartComponent);
- component = fixture.componentInstance;
- fixture.detectChanges();
- });
-
- it('should create', () => {
- expect(component).toBeTruthy();
- });
-});
diff --git a/frontend/src/app/scatterchart/scatterchart.component.ts b/frontend/src/app/scatterchart/scatterchart.component.ts
deleted file mode 100644
index 9dfef4c3..00000000
--- a/frontend/src/app/scatterchart/scatterchart.component.ts
+++ /dev/null
@@ -1,39 +0,0 @@
-import { Component, OnInit } from '@angular/core';
-import {Chart} from 'node_modules/chart.js';
-
-@Component({
- selector: 'app-scatterchart',
- templateUrl: './scatterchart.component.html',
- styleUrls: ['./scatterchart.component.css']
-})
-export class ScatterchartComponent implements OnInit {
-
- constructor() { }
-
- ngOnInit(){
- const myChart = new Chart("ScatterCharts", {
- type: 'scatter',
- data: {
- datasets: [{
- label: 'Scatter Example:',
- data: [{x: 1, y: 11}, {x:2, y:12}, {x: 1, y: 2}, {x: 2, y: 4}, {x: 3, y: 8},{x: 4, y: 16}, {x: 1, y: 3}, {x: 3, y: 4}, {x: 4, y: 6}, {x: 6, y: 9},
- {x: 11, y: 9},
- {x: 12, y: 8},
- {x: 13, y: 6},
- {x: 14, y: 0},
- {x: 15, y: 5},
- {x: 16, y: 3},
- {x: 17, y: 2}],
- backgroundColor: 'rgb(255, 99, 132)'
- }]
- },
- options: {
- scales: {
- y: {
- beginAtZero: true
- }
- }
- }
- });
- }
-}