Inconsistent scale on axes (bubble chart)

71 views
Skip to first unread message

Giedrius Virbalas

unread,
Jun 7, 2017, 3:33:06 PM6/7/17
to airbnb_superset
(Apologies in advance if I have missed this in the docs somewhere.)

I have 2 database columns containing decimals which should display as percent on a bubble chart. Most values are between 0 and 1. What I get without formatting is:






























As you see above, all numbers lower than 1 get converted to hundreds of millions (?!), and the labels display properly for values of 1 or more. This is unexpected behaviour. Is there a way to define axis tick mark label format somewhere within Superset? What I have found is:










As the note suggests, specifying a D3 format changes the format in the table visualisation, but does not affect the bubble chart. Looking at NVD3 docs I got the impression that it should be possible to adjust label formats via:

 //Axis settings
  chart.xAxis.tickFormat(d3.format('.02f'));
  chart.yAxis.tickFormat(d3.format('.02f'));

So, is this a bug, my oversight of where to specify the format, or something that's still in development?

Many thanks!
GV
Reply all
Reply to author
Forward
0 new messages