{"url":"https://api.github.com/gists/597287","forks_url":"https://api.github.com/gists/597287/forks","commits_url":"https://api.github.com/gists/597287/commits","id":"597287","node_id":"MDQ6R2lzdDU5NzI4Nw==","git_pull_url":"https://gist.github.com/597287.git","git_push_url":"https://gist.github.com/597287.git","html_url":"https://gist.github.com/597287","files":{".block":{"filename":".block","type":"text/plain","language":null,"raw_url":"https://gist.githubusercontent.com/mbostock/597287/raw/703d310b399098a243a76a50bc209167e924cfd2/.block","size":17,"truncated":false,"content":"license: gpl-3.0\n"},"README.md":{"filename":"README.md","type":"text/plain","language":"Markdown","raw_url":"https://gist.githubusercontent.com/mbostock/597287/raw/a4c32f0ae87d7e0a13f2c316efd8acff32880f2e/README.md","size":1132,"truncated":false,"content":"Say you have a bunch of things, like thousands of photos from your digital camera. What if you wanted to look at them all at once? A typical user interface might order the photos chronologically by column and then by row, which does a decent job of grouping related photos together... But, if you have thousands of photos, the rows may be hundreds of photos long, and it is impossible to zoom in on a group of related photos!\n\nAn alternative that better preserves locality is a [space-filling curve](http://en.wikipedia.org/wiki/Space-filling_curve), such as the [Hilbert curve](http://en.wikipedia.org/wiki/Hilbert_curve). These curves can be used to place related things next to each other in space, avoiding those huge gaps across rows you see with sequential layout.\n\nThis example demonstrates the effect of using a Hilbert curve for layout with [Polymaps](http://polymaps.org) by generating rainbow-colored tiles. As you can see, each tile is surrounded by its adjacent colors in the rainbow, even as you zoom in and out. In contrast, the [sequential layout](http://bl.ocks.org/597292) only preserves locality in one dimension."},"index.html":{"filename":"index.html","type":"text/html","language":"HTML","raw_url":"https://gist.githubusercontent.com/mbostock/597287/raw/45e98011a692e3dec1834097dcf854e4612481ee/index.html","size":2156,"truncated":false,"content":"\n\n \n \n \n \n \n \n \n\n"},"thumbnail.png":{"filename":"thumbnail.png","type":"image/png","language":null,"raw_url":"https://gist.githubusercontent.com/mbostock/597287/raw/7744a17db5337b73b687731482a63e078d0ad701/thumbnail.png","size":4133,"truncated":false,"content":"�PNG\r\n\u001A\n\u0000\u0000\u0000\rIHDR\u0000\u0000\u0000�\u0000\u0000\u0000x\b\u0006\u0000\u0000\u0000�\u0006��\u0000\u0000\u0000\u0019tEXtSoftware\u0000Adobe ImageReadyq�e<\u0000\u0000\u000F�IDATx��]M�\u001CG\u0019~�{>v��z���D\u0018\u0011K8\u0012 \u0010'�H\u0010!%R.�rL.\u001C�\u0003�)B\u0011\u001C8�\u001A��\u0007NH\u0011\u00117�\u0015�\u000B\u001FA�\u0003\u0010��u<�����\u0007U3]�8��Tw���t��$������>޷޷L��\u0013�k6L�+��\u0003�W^��GE�2r\u001B\u00066�R�̕�\u0003��XI���p��)\r�����\u001Do�����x���*�KA�\u0019���~�THմ3%�'6���\u0019�L{,��_����!�m�׳�5��,�\u001Er\u0016:��M��\u0005��\u001CczC5�>��ݩ��A��iNI�v��\u0013А4u����\u001B��[�\u0017��/:tt�\t%�\u001C>G!��fJ>4�\bu:h��\u0000�;S�W�dM�ts\"����Tv\u0019�'ίN6q*K�\u000FA��\u0004A��\u0004�5f�ן�z�\b\u0005ԛŢ\u001F�\u0010:~a�\u001F3\u000F��?��\u0018\u0003d�5_�F�ǽ�\u001BD̼AC�\u0012@g\u0012��\u0007B��ek\u001A�b�$��ѹ(OS�˘�L�I�gf\u0005蕗-��TC\u0007��r�>�Q�{�C��D!��ئ�UXu�1���@'.��xc��\u0015H[�@�T\u0006w���m?R�\u000Eq`e1ԛa�=\u000Be�q����*�\u0003�\u001FI3CmGJ�\u0014����\u0015��Ot�E\u0014��\"@<����\u0010���cn����\f�\u0005�y��[2�K�H\u000El\u00184��\u00001��\u0013.���\u0015�\u0019���\"�\u0004*E{��k�ȃ�3��)�ޣi�\u0010�����ڍ�\\�5f�C����zɛR'\rr\u0016\t>�/\u0011}�D`�B.������zж�1i��UFL�/��A� HL� HL��\u001A�]k�&��!��\u0017ޭ�S\u0012�5\bI�41\t�s��͟z��Yb���D��H˟�B{�bH8\u0004��J���!��|�龲#�L\u0002\u001F{�\\w����\bTڬ\u0001z�E�A�\thfNG�+X9�u\u001B6��\u0010W�\u0016襜b�\u0001X���B�^b�y��C��\u0013�HY��\u0001�I̎NeW7�[�I�\n��h\u001B$Q�W\u0012\u0004Ab\u0012\u0004Ab\u0012\u0004�I\u0010�2�I�7�Bv���*�Ņ}�,\"E��%�\\�\u0014�%2\\A���Bv\u0003�\u000Eٸ�J��\u001A}Ǹ�#K'���\r�\u0013�N#D�\u001Di�-nz��T\u001Dr(��}a��N_�o�����(\u0019���e�I_g\b���**L+�X�����g%�\u0002�S��\u001F\u0005�5�\u0015W��%1�\u0003�3�Ttŵ���1i\u001B�Kȝ�L\u001B���y