Commit cf232de6 by kevalbhatt

ATLAS-4022: profile tab Build fail fix #1 wq

parent d12609bc
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
define(["require", "d3", "d3-tip"], function(require, d3, d3Tip) { define(["require", "d3", "d3-tip"], function(require, d3, d3Tip) {
"use strict"; "use strict";
var ProfileBarChart = { var ProfileBarChart = {
render(options) { render: function(options) {
var el = options.el, var el = options.el,
type = options.data.key, type = options.data.key,
data = options.data.values, data = options.data.values,
...@@ -117,7 +117,7 @@ define(["require", "d3", "d3-tip"], function(require, d3, d3Tip) { ...@@ -117,7 +117,7 @@ define(["require", "d3", "d3-tip"], function(require, d3, d3Tip) {
return x(d.value); return x(d.value);
}) })
.attr("width", x.bandwidth()) .attr("width", x.bandwidth())
.attr("y", d => { return height; }) .attr("y", function(d) { return height; })
.attr("height", 0) .attr("height", 0)
.on("click", function(e) { .on("click", function(e) {
tooltip.hide(); tooltip.hide();
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
define(["require", "d3", "d3-tip"], function(require, d3, d3Tip) { define(["require", "d3", "d3-tip"], function(require, d3, d3Tip) {
"use strict"; "use strict";
var ProfileBarChart = { var ProfileBarChart = {
render(options) { render: function(options) {
var el = options.el, var el = options.el,
type = options.data.key, type = options.data.key,
data = options.data.values, data = options.data.values,
...@@ -117,7 +117,7 @@ define(["require", "d3", "d3-tip"], function(require, d3, d3Tip) { ...@@ -117,7 +117,7 @@ define(["require", "d3", "d3-tip"], function(require, d3, d3Tip) {
return x(d.value); return x(d.value);
}) })
.attr("width", x.bandwidth()) .attr("width", x.bandwidth())
.attr("y", d => { return height; }) .attr("y", function(d) { return height; })
.attr("height", 0) .attr("height", 0)
.on("click", function(e) { .on("click", function(e) {
tooltip.hide(); tooltip.hide();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment