Skip to content

Commit

Permalink
moved where the X axis' name (#batches) is written in histograms in t…
Browse files Browse the repository at this point in the history
…he spark streaming web ui
  • Loading branch information
BenFradet committed Jun 16, 2015
1 parent 658814c commit edd0936
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,10 +223,10 @@ function drawHistogram(id, values, minY, maxY, unitY, batchInterval) {
.style("border-left", "0px solid white");

var margin = {top: 20, right: 30, bottom: 30, left: 10};
var width = 300 - margin.left - margin.right;
var width = 350 - margin.left - margin.right;
var height = 150 - margin.top - margin.bottom;

var x = d3.scale.linear().domain([0, maxXForHistogram]).range([0, width]);
var x = d3.scale.linear().domain([0, maxXForHistogram]).range([0, width - 50]);
var y = d3.scale.linear().domain([minY, maxY]).range([height, 0]);

var xAxis = d3.svg.axis().scale(x).orient("top").ticks(5);
Expand All @@ -248,7 +248,7 @@ function drawHistogram(id, values, minY, maxY, unitY, batchInterval) {
.attr("class", "x axis")
.call(xAxis)
.append("text")
.attr("transform", "translate(" + (margin.left + width - 40) + ", 15)")
.attr("transform", "translate(" + (margin.left + width - 50) + ", 15)")
.text("#batches");

svg.append("g")
Expand Down

0 comments on commit edd0936

Please sign in to comment.