Skip to content

Commit 1382b1e

Browse files
committed
Intial commit for circualr heatmap
1 parent 0c912e2 commit 1382b1e

9 files changed

Lines changed: 1643 additions & 16 deletions

package-lock.json

Lines changed: 1245 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
"@angular/platform-browser": "~13.3.0",
2121
"@angular/platform-browser-dynamic": "~13.3.0",
2222
"@angular/router": "~13.3.0",
23+
"d3": "^7.5.0",
2324
"markdown-it": "^13.0.1",
2425
"rxjs": "~7.5.0",
2526
"tslib": "^2.3.0",
@@ -30,6 +31,7 @@
3031
"@angular-devkit/build-angular": "~13.3.6",
3132
"@angular/cli": "~13.3.6",
3233
"@angular/compiler-cli": "~13.3.0",
34+
"@types/d3": "^7.4.0",
3335
"@types/jasmine": "~3.10.0",
3436
"@types/markdown-it": "^12.2.3",
3537
"@types/node": "^12.11.1",

src/app/app-routing.module.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { NgModule } from '@angular/core';
22
import { RouterModule, Routes } from '@angular/router';
3+
import { CircularHeatmapComponent } from './component/circular-heatmap/circular-heatmap.component';
34
import { MainContentComponent } from './component/main-content/main-content.component';
45
import { MatrixComponent } from './component/matrix/matrix.component';
5-
import { TaskDescriptionComponent } from './component/task-description/task-description.component';
6+
67

78
const routes: Routes = [
89
{path: '',component: MainContentComponent},
910
{path: 'matrix', component: MatrixComponent},
10-
{path: 'task-description', component: TaskDescriptionComponent}
11+
{path: 'circular-heatmap', component: CircularHeatmapComponent}
1112
];
1213

1314
@NgModule({

src/app/app.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import { TaskDescriptionComponent } from './component/task-description/task-desc
1515
import { ymlService } from './service/yaml-parser/yaml-parser.service';
1616
import { HttpClientModule } from '@angular/common/http';
1717
import { CombinerService } from './service/combiner/combiner.service';
18+
import { CircularHeatmapComponent } from './component/circular-heatmap/circular-heatmap.component';
1819

1920

2021
@NgModule({
@@ -26,6 +27,7 @@ import { CombinerService } from './service/combiner/combiner.service';
2627
SidenavButtonsComponent,
2728
TopHeaderComponent,
2829
TaskDescriptionComponent,
30+
CircularHeatmapComponent,
2931
],
3032
imports: [
3133
BrowserModule,
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
.margin30 {
2+
margin-bottom: 30px;
3+
}
4+
.axis path,
5+
.axis line {
6+
fill: none;
7+
stroke: #000;
8+
shape-rendering: crispEdges;
9+
}
10+
.abc{
11+
background-color: aquamarine;
12+
}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<div id="cont" class="container-fluid text-center">
2+
3+
<div class="row">
4+
<div class="col-md-3">
5+
</div>
6+
<div class="col-md-6">
7+
<div id="chart" class="abc"></div>
8+
</div>
9+
<div class="col-md-3">
10+
</div>
11+
</div>
12+
13+
14+
15+
</div>
16+
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import { ComponentFixture, TestBed } from '@angular/core/testing';
2+
3+
import { CircularHeatmapComponent } from './circular-heatmap.component';
4+
5+
describe('CircularHeatmapComponent', () => {
6+
let component: CircularHeatmapComponent;
7+
let fixture: ComponentFixture<CircularHeatmapComponent>;
8+
9+
beforeEach(async () => {
10+
await TestBed.configureTestingModule({
11+
declarations: [ CircularHeatmapComponent ]
12+
})
13+
.compileComponents();
14+
});
15+
16+
beforeEach(() => {
17+
fixture = TestBed.createComponent(CircularHeatmapComponent);
18+
component = fixture.componentInstance;
19+
fixture.detectChanges();
20+
});
21+
22+
it('should create', () => {
23+
expect(component).toBeTruthy();
24+
});
25+
});

0 commit comments

Comments
 (0)