diff --git a/src/app/app.component.html b/src/app/app.component.html index b05dfb9..ef717e8 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -5,7 +5,8 @@ {{timer}} microseconds to upload - + {{file}} cancel @@ -19,10 +20,11 @@
+ [scheme]="colorScheme" + [results]="chartResults" + [xAxis]="true" + [yAxis]="true" + [xAxisTickFormatting]="format">
diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 232e2ac..becaf00 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -1,11 +1,13 @@ import {Component} from '@angular/core'; import {timer} from './timer'; +import {colorScheme} from './colorScheme'; @Component({ selector: 'app-root', templateUrl: './app.component.html' }) export class AppComponent { + colorScheme = colorScheme; // colors chartResults; // This is where the chart reads the data from chartHeight = '100%'; // Dynamic height for chart timer = window['timer']; // Async pipe to display the timed data diff --git a/src/app/colorScheme.ts b/src/app/colorScheme.ts new file mode 100644 index 0000000..9d9ac2f --- /dev/null +++ b/src/app/colorScheme.ts @@ -0,0 +1,6 @@ +export const colorScheme = { + name: 'cool', + selectable: true, + group: 'Ordinal', + domain: ['#a8385d', '#7aa3e5', '#a27ea8', '#aae3f5', '#adcded', '#a95963', '#8796c0', '#7ed3ed', '#50abcc', '#ad6886'] +};