Skip to content
This repository has been archived by the owner on Oct 5, 2020. It is now read-only.

Commit

Permalink
Fix Heatmap on homepage
Browse files Browse the repository at this point in the history
  • Loading branch information
tgotwig committed Oct 1, 2019
1 parent 3eec2c8 commit 0d057d8
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
18 changes: 17 additions & 1 deletion src/app/components/heatmap/heatmap.component.html
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
<lib-heatmap [data]="data"></lib-heatmap>
<mat-card>
<section>
<div>
<h1>Bar-Chart</h1>
<div id="plotArea">
<lib-heatmap [data]="data"></lib-heatmap>
</div>
</div>
<aside>
<h2>Data example</h2>
<pre><code [highlight]="dataStr"></code></pre>
</aside>
</section>

<h2>Selector</h2>
<pre><code [highlight]="selector"></code></pre>
</mat-card>
7 changes: 7 additions & 0 deletions src/app/components/heatmap/heatmap.component.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
section {
display: flex;
}

aside {
width: 100%;
}
25 changes: 0 additions & 25 deletions src/app/components/heatmap/heatmap.component.spec.ts

This file was deleted.

2 changes: 2 additions & 0 deletions src/app/components/heatmap/heatmap.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,14 @@ import { Component, OnInit } from '@angular/core';
styleUrls: ['./heatmap.component.scss']
})
export class HeatmapComponent implements OnInit {
selector = 'lib-heatmap';
data = [
{ group: 'A', key: 'v1', value: 30, },
{ group: 'A', key: 'v2', value: 95, },
{ group: 'B', key: 'v1', value: 37, },
{ group: 'B', key: 'v2', value: 50, },
];
dataStr = JSON.stringify(this.data, null, 2);

constructor() { }

Expand Down

0 comments on commit 0d057d8

Please sign in to comment.