Skip to content

Commit

Permalink
minor cleanups in charting module
Browse files Browse the repository at this point in the history
  • Loading branch information
acooks committed Jan 29, 2016
1 parent 76633e4 commit 185dacd
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions html5-client/src/js/jittertrap-charting.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* jittertrap-charting.js */

/* global CanvasJS */
/* global d3 */
/* global JT:true */

JT = (function (my) {
Expand Down Expand Up @@ -75,7 +75,7 @@ JT = (function (my) {
.y(function(d) { return yScale(d.value); })
.interpolate("basis");

var svg = {}
var svg = {};

var xGrid = function() {
return d3.svg.axis()
Expand Down Expand Up @@ -125,7 +125,7 @@ JT = (function (my) {


var graph = svg.append("g")
.attr("transform", "translate(" + margin.left + "," + margin.top + ")")
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");

graph.append("text")
.attr("class", "title")
Expand Down Expand Up @@ -209,7 +209,7 @@ JT = (function (my) {
.orient("bottom")
.tickSize(-height)
.ticks(10)
.tickFormat("")
.tickFormat("");
};

yGrid = function() {
Expand All @@ -218,7 +218,7 @@ JT = (function (my) {
.orient("left")
.tickSize(-width)
.ticks(5)
.tickFormat("")
.tickFormat("");
};

svg = d3.select("#chartThroughput");
Expand Down Expand Up @@ -269,7 +269,7 @@ JT = (function (my) {
.y1(function (d) { return yScale(d.y[1]); })
.interpolate("basis");

var svg = {}
var svg = {};

var xGrid = function() {
return d3.svg.axis()
Expand All @@ -285,7 +285,7 @@ JT = (function (my) {
.ticks(0);
};

m.reset = function(selectedSeries) {
m.reset = function() {

d3.select("#packetGapContainer").selectAll("svg").remove();

Expand Down Expand Up @@ -324,7 +324,7 @@ JT = (function (my) {
.attr("height", height + margin.top + margin.bottom);

var graph = svg.append("g")
.attr("transform", "translate(" + margin.left + "," + margin.top + ")")
.attr("transform", "translate(" + margin.left + "," + margin.top + ")");

graph.append("text")
.attr("class", "title")
Expand Down Expand Up @@ -414,7 +414,7 @@ JT = (function (my) {
.orient("bottom")
.tickSize(-height)
.ticks(10)
.tickFormat("")
.tickFormat("");
};

yGrid = function() {
Expand All @@ -423,7 +423,7 @@ JT = (function (my) {
.orient("left")
.tickSize(-width)
.ticks(5)
.tickFormat("")
.tickFormat("");
};

svg = d3.select("#packetGapContainer");
Expand All @@ -448,7 +448,7 @@ JT = (function (my) {
clearChartData();

my.charts.mainChart.reset(selectedSeries);
my.charts.packetGapChart.reset(selectedSeries);
my.charts.packetGapChart.reset();

};

Expand Down

0 comments on commit 185dacd

Please sign in to comment.