elasticsearch/kibana — pull request #813 by bleskes (2014-01-07 19:34:05+00:00)
Title: Make histogram y-axis formatting aware of the tick size when formatting

kbn.byteFormat & kbn.shortFormat take an extra min_resolution param that indicates what size should be still be distinguishable despite the formating. For example if `min_resolution=100` and we fromat 1100 with `decimals=0`, the output will still be 1.1K . This is used in y_axis formatting to make sure the legends are able to correctly display a change of the current tick size.