Fixed big number issue (#1355)

This commit is contained in:
vera-liu 2016-10-15 10:40:16 -07:00 committed by GitHub
parent 4fc8a17f2a
commit 2095095895

View File

@ -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) {