{"issue":{"pull_request":{"diff_url":"https://github.com/potch/statsdash/pull/2.diff","html_url":"https://github.com/potch/statsdash/pull/2","patch_url":"https://github.com/potch/statsdash/pull/2.patch"},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/8371744716a9335eb3dcae228fd9d996?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8371744716a9335eb3dcae228fd9d996","url":"https://api.github.com/users/jsocol","login":"jsocol","id":180459},"milestone":null,"assignee":null,"updated_at":"2011-11-11T21:17:07Z","labels":[],"closed_at":null,"comments":4,"url":"https://api.github.com/repos/potch/statsdash/issues/2","body":"This isn't ready to merge, I was tired and there's probably some hacky bullshit that could be way better--also I just copied one tile into AMO two more times for testing--but I think it's actually doing a solid job of picking tile sizes now. I picked a target aspect ratio of 7:3 and it definitely prefers sparkline-style graphs to a row of boxes (you need to shrink the screen pretty far, vertically, for it to decide to use 6x1, but it shifts from 2x3 to 3x2 in a totally reasonable space, and shrinking it horizontally gets to 1x6 pretty quick).\r\n\r\nSo, feedback is welcome! (Ping @rlr as well.) This works out of the box and doesn't require any other changes, which is pretty sweet. But obviously the ability to pick how many graphs I want would be super-awesome.\r\n\r\nIt will probably degenerate for primes > 5 or so. We might eventually decide to put in some special casing for common ones, maybe 5, 7, 11, but I deferred that for now.","html_url":"https://github.com/potch/statsdash/issues/2","title":"Dynamic tile size/shape","number":2,"id":2210135,"created_at":"2011-11-11T15:12:45Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/8371744716a9335eb3dcae228fd9d996?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8371744716a9335eb3dcae228fd9d996","url":"https://api.github.com/users/jsocol","login":"jsocol","id":180459},"updated_at":"2011-11-11T21:17:07Z","url":"https://api.github.com/repos/potch/statsdash/issues/comments/2713339","body":"Is the number prime? It factors the number to come up with possible arrangements. Non-prime odd numbers (e.g. 9) should work fine. Unfortunately there are not a lot of low, non-prime odd numbers.","id":2713339,"created_at":"2011-11-11T21:17:07Z"}}