Skip to content
Snippets Groups Projects
Commit ab550186 authored by Erik Kočamba's avatar Erik Kočamba
Browse files

Merge branch '63-fix-estimated-time-bar' into 'master'

Resolve "Fix estimated time bar"

Closes #63

See merge request muni-kypo-crp/frontend-angular/components/kypo2-trainings-visualization-overview!64
parents a3cb303c 96444330
No related branches found
No related tags found
No related merge requests found
......@@ -215,7 +215,7 @@ export class FinalComponent implements OnInit, OnChanges {
.attr('x', 0)
.attr('y', 0)
.attr('height', this.svgHeight)
.attr('width', this.xScale(data.estimatedTime))
.attr('width', this.xScale(data.estimatedTime) > this.barWidth ? this.xScale(data.maxParticipantTime) : this.xScale(data.estimatedTime))
.attr('fill', 'url(#diagonalHatchDarker)');
}
......
......@@ -214,7 +214,7 @@ export class LevelsComponent implements OnInit, OnChanges {
.attr('x', 0)
.attr('y', (level: Level) => this.yScaleBandBars(level.order.toString()))
.attr('height', this.yScaleBandBars.bandwidth())
.attr('width', (level: Level) => this.xScale(level.estimatedTime))
.attr('width', (level: Level) => this.xScale(level.estimatedTime) > this.barWidth ? this.xScale(level.maxParticipantTime) : this.xScale(level.estimatedTime))
.style('fill', (level: Level) => {
if (level.order > 5) {
return 'url(#diagonalHatch)';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment