Skip to content
Snippets Groups Projects

Resolve "Indicate insufficient data"

Merged Karolína Dočkalová Burská requested to merge 3-indicate-insufficient-data into master
3 files
+ 15
3
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -2,6 +2,7 @@ import { Component, EventEmitter, Input, OnChanges, OnInit, Output } from '@angu
import { D3, D3Service } from '@muni-kypo-crp/d3-service';
import { AppConfig } from '../../../../app.config';
import { v4 as uuid } from 'uuid';
import {VisualizationData} from "../../../models/visualization-data";
@Component({
selector: 'kypo-viz-clustering-line-chart',
@@ -11,11 +12,12 @@ import { v4 as uuid } from 'uuid';
export class LineChartComponent implements OnChanges, OnInit {
@Input() visualizationData: number[] = [];
@Input() trainingDefinitionId: number;
@Input() trainingInstanceId: number;
@Input() trainingInstanceId: number[];
@Input() elbowNumClusters: number;
@Input() includeInButtonToggle = false;
@Output() viewOpen: EventEmitter<boolean> = new EventEmitter();
@Output() insufficientData: EventEmitter<boolean> = new EventEmitter();
public showChart = true;
public buttonKeyword = 'Hide';
@@ -55,10 +57,16 @@ export class LineChartComponent implements OnChanges, OnInit {
if (this.gChart != undefined) {
this.clear();
}
this.checkData();
this.createSvg();
this.drawPlot();
}
checkData() {
// TODO
console.log(this.visualizationData);
}
private createSvg(): void {
this.svg = this.d3
.select('.' + this.id + ' #chartDiv')
Loading