From d7d33f7a36802d40db6965e09bce66d73f8e44d6 Mon Sep 17 00:00:00 2001 From: Vera Liu Date: Fri, 14 Oct 2016 17:21:05 -0700 Subject: [PATCH] Fixed big number issue --- caravel/assets/visualizations/big_number.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/caravel/assets/visualizations/big_number.js b/caravel/assets/visualizations/big_number.js index 4fbeb631ce2ae..d8c2a6a8f9b92 100644 --- a/caravel/assets/visualizations/big_number.js +++ b/caravel/assets/visualizations/big_number.js @@ -75,7 +75,8 @@ function bigNumberVis(slice) { .style('cursor', 'pointer') .text(f(v)) .style('font-size', d3.min([height, width]) / 3.5) - .attr('fill', 'white'); + .style('text-anchor', 'middle') + .attr('fill', 'black'); // Printing big number subheader text if (json.subheader !== null) {