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

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


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

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

    [AMBARI-24424] [Log Search UI] Align the time histogram chart axis (#2033)
---
 .../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