This is an automated email from the ASF dual-hosted git repository.

tobiasistvan pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git


The following commit(s) were added to refs/heads/branch-2.7 by this push:
     new 441d8f8  [AMBARI-24424] [Log Search UI] Align the time histogram chart 
axis (#2034)
441d8f8 is described below

commit 441d8f81cb4f89138aa2aedf993ad956527b0f13
Author: Istvan Tobias <[email protected]>
AuthorDate: Tue Aug 14 10:41:03 2018 +0200

    [AMBARI-24424] [Log Search UI] Align the time histogram chart axis (#2034)
    
    (cherry picked from commit 3d285e2b660cc664a28ed027695a77abc3dc2ebb)
---
 .../src/app/classes/components/graph/time-graph.component.ts            | 2 +-
 .../src/app/components/time-histogram/time-histogram.component.ts       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/ambari-logsearch/ambari-logsearch-web/src/app/classes/components/graph/time-graph.component.ts
 
b/ambari-logsearch/ambari-logsearch-web/src/app/classes/components/graph/time-graph.component.ts
index ad00a68..7f9220a 100644
--- 
a/ambari-logsearch/ambari-logsearch-web/src/app/classes/components/graph/time-graph.component.ts
+++ 
b/ambari-logsearch/ambari-logsearch-web/src/app/classes/components/graph/time-graph.component.ts
@@ -109,7 +109,7 @@ export class TimeGraphComponent extends GraphComponent 
implements OnInit {
   }
 
   protected setXScaleDomain(data: GraphScaleItem[]): void {
-    this.xScale.domain(d3.extent(data, item => item.tick)).nice();
+    this.xScale.domain(d3.extent(data, item => item.tick)).nice().domain();
   }
 
   /**
diff --git 
a/ambari-logsearch/ambari-logsearch-web/src/app/components/time-histogram/time-histogram.component.ts
 
b/ambari-logsearch/ambari-logsearch-web/src/app/components/time-histogram/time-histogram.component.ts
index 697de1e..179011b 100644
--- 
a/ambari-logsearch/ambari-logsearch-web/src/app/components/time-histogram/time-histogram.component.ts
+++ 
b/ambari-logsearch/ambari-logsearch-web/src/app/components/time-histogram/time-histogram.component.ts
@@ -73,7 +73,7 @@ export class TimeHistogramComponent extends 
TimeGraphComponent {
     const columnWidth = this.columnWidth[this.chartTimeGap.unit] || 
this.columnWidth.base;
 
     // drawing the axis
-    this.drawXAxis(null, (columnWidth / 2) + 2);
+    this.drawXAxis();
     this.drawYAxis();
 
     // populate the data and drawing the bars

Reply via email to