AbeHandler / rookie

The Rookie Text Analysis System
10 stars 1 forks source link

y-axis numbering cluttered if counts are high #157

Closed brendano closed 8 years ago

brendano commented 8 years ago

needs an algorithm to figure out a sensible spacing.

screen shot 2016-02-28 at 7 54 41 pm

this is annoying. i never figured out what's a good algorithm that does a decent job at preserving human readability.

maybe

for each ticksize in [1,2,5,10, 20,50,100, (up to max y of the timeseries)]:
  check on the number of pixels that one tick would be equivalent to
choose the smallest tick size which has pixelsize > MINPIXELS

for MINPIXELS = 15, perhaps?

brendano commented 8 years ago

same as #151 though i dont think corpus size is the right determinant of ytick size. it's query dependent. the max y value being graphed is the right thing to use to determine (i.e. the y scale range)

AbeHandler commented 8 years ago

Forgot that d3 has a scale.ticks() function. I tried using d3 and it seems to fix it.

AbeHandler commented 8 years ago

sometimes the numbers on y axis seem too crowded. maybe just change font size. i think d3 does that.

AbeHandler commented 8 years ago

fixed