From d21db8860fb225d138d5847110bd52e5d0c4817b Mon Sep 17 00:00:00 2001 From: ElonH Date: Wed, 27 May 2020 14:52:28 +0800 Subject: [PATCH] feat(jobs-speed-chart): show legend --- src/app/pages/jobs/jobs.component.ts | 2 +- src/app/pages/jobs/speed-chart/speed-chart.component.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/pages/jobs/jobs.component.ts b/src/app/pages/jobs/jobs.component.ts index a887210..8f4da20 100644 --- a/src/app/pages/jobs/jobs.component.ts +++ b/src/app/pages/jobs/jobs.component.ts @@ -88,7 +88,7 @@ import { CombErr } from 'src/app/@dataflow/core'; background-color: lightcoral; } .speed-body { - padding: 1rem 0 0 0; + padding: 0; min-height: 10rem; overflow-y: hidden; } diff --git a/src/app/pages/jobs/speed-chart/speed-chart.component.ts b/src/app/pages/jobs/speed-chart/speed-chart.component.ts index 31b85d3..eb5374e 100644 --- a/src/app/pages/jobs/speed-chart/speed-chart.component.ts +++ b/src/app/pages/jobs/speed-chart/speed-chart.component.ts @@ -22,7 +22,7 @@ import * as moment from 'moment'; .chart-container { position: relative; width: 100%; - height: 287px; + height: calc(100% + 1.3rem); } canvas { width: 100%; @@ -74,7 +74,7 @@ export class SpeedChartComponent implements OnInit { }, }, legend: { - display: false, + display: true, }, hover: { intersect: false,