Skip to content

Commit

Permalink
Fixing js style formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
michellethomas committed Apr 1, 2016
1 parent c239f81 commit 6cfeb0f
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions caravel/assets/visualizations/big_number.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ require('./big_number.css');

var px = require('../javascripts/modules/caravel.js');


function bigNumberVis(slice) {
var div = d3.select(slice.selector);

Expand All @@ -32,11 +31,11 @@ function bigNumberVis(slice) {
var data = json.data;
var compare_suffix = ' ' + json.compare_suffix;
var v_compare = null;
var v = null;
if (data.length > 1) {
var v = data[data.length - 1][1];
}
else{
var v = data[data.length - 1][0];
v = data[data.length - 1][1];
} else {
v = data[data.length - 1][0];
}
if (json.compare_lag > 0) {
var pos = data.length - (json.compare_lag + 1);
Expand Down Expand Up @@ -104,7 +103,7 @@ function bigNumberVis(slice) {
.attr('fill', 'white');

//Printing big number subheader text
if (json.subheader !== null){
if (json.subheader !== null) {
g.append('text')
.attr('x', width / 2)
.attr('y', y + d3.min([height, width]) / 4.5)
Expand Down

0 comments on commit 6cfeb0f

Please sign in to comment.