{"id":65,"date":"2008-01-23T13:42:58","date_gmt":"2008-01-23T17:42:58","guid":{"rendered":"http:\/\/ryepup.unwashedmeme.com\/blog\/2008\/01\/23\/adw-charting-is-available-for-download\/"},"modified":"2008-01-23T13:42:56","modified_gmt":"2008-01-23T17:42:56","slug":"adw-charting-is-available-for-download","status":"publish","type":"post","link":"http:\/\/ryepup.unwashedmeme.com\/blog\/2008\/01\/23\/adw-charting-is-available-for-download\/","title":{"rendered":"adw-charting is available for download"},"content":{"rendered":"<p>Someone on #lisp started talking about making line charts using vecto, so I went ahead and got setup a common-lisp.net project:  <a href=\"http:\/\/common-lisp.net\/project\/adw-charting\/\">http:\/\/common-lisp.net\/project\/adw-charting\/<\/a><\/p>\n<p>Now I&#8217;m somewhat flooded with digital paperwork:<\/p>\n<ul>\n<li><strike>Get my darcs repository onto common-lisp.net<\/strike><\/li>\n<li><strike>Update the documentation to point to common-lisp.net<\/strike> (removed all the damn lies, so only vague untruths remain)<\/li>\n<li>Get access to my trac sorted out (I sent an email to the cl.net admin)<\/li>\n<li><strike>Get my ssh keys sorted out<\/strike><\/li>\n<li>Get my setup at work pulling from the common-lisp.net darcs repo<\/li>\n<li>Get my setup at home pulling from the common-lisp.net darcs repo<\/li>\n<li>Make a script to generate docs\/examples and transfer to common-lisp.net<\/li>\n<li>Make a script to generate \/ sign a new release<\/li>\n<li>figure out what I should be doing with mailing lists<\/li>\n<\/ul>\n<p>I&#8217;ve never run an open source project before, I foresee a lot of learning in the coming weeks.<\/p>\n<p>Paperwork aside, I did spend a lot of time last night on actual functionality.  I spent a good bit of time reading through <a href=\"http:\/\/www.edwardtufte.com\/tufte\/books_vdqi\"><font face=\"times new roman, times, serif\" size=\"3\"><em>The Visual Display of Quantitative Information<\/em><\/font><\/a><font size=\"3\"><font face=\"times new roman, times, serif\">, <\/font><\/font>to get a better sense of what goes into a good chart, and try to learn the right words for some of these things, and then worked on the code a bit:<\/p>\n<ul>\n<li> converted macros to use &amp;body instead of &amp;rest, which gives Emacs some better ideas on how to indent code<\/li>\n<li>REVERSEd the list of data elements before display, so the legends on pie\/line charts are ordered sensibly<\/li>\n<li>Improved the example to not create duplicate X labels<\/li>\n<li>Pulled apart a monolithic function into several smaller ones, introduced a class to help pass data between them<\/li>\n<li>Tried to generate more human-friendly axis labels.  Instead of splitting the y-axis into N even parts and drawing a label for whatever value happens to be there (which generates odd, unfriendly labels in the examples: 1.52, 3.05, 4.57), I look at the spread data, and pick a suitable interval.  So, if the lowest y is -10 and the biggest is 2, then we have a total spread of 12, which is just over 10, so we should try to draw a label every 1.0 units.  If the spread was 120, I&#8217;d try to draw a label every 10.0 units.  I added some math to prevent overlapping labels, and then I have decent labels at human readable increments.  There are still lots of problems with this scheme, so I haven&#8217;t pushed it yet.  Hopefully I&#8217;ll have time tonight to work out some bugs, and add some more examples.  This style of doing it would be a baby step towards another #lisp request, logarithmic axes.<\/li>\n<\/ul>\n<p>I wasn&#8217;t very happy with using a helper class to pass state around, so I&#8217;ll probably try out a few different methods and see what works best.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Someone on #lisp started talking about making line charts using vecto, so I went ahead and got setup a common-lisp.net project: http:\/\/common-lisp.net\/project\/adw-charting\/ Now I&#8217;m somewhat flooded with digital paperwork: Get my darcs repository onto common-lisp.net Update the documentation to point to common-lisp.net (removed all the damn lies, so only vague untruths remain) Get access to [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[22,15,8],"tags":[],"class_list":["post-65","post","type-post","status-publish","format-standard","hentry","category-adw-charting","category-lisp","category-open-source"],"_links":{"self":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/posts\/65","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/comments?post=65"}],"version-history":[{"count":0,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/posts\/65\/revisions"}],"wp:attachment":[{"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/media?parent=65"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/categories?post=65"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/ryepup.unwashedmeme.com\/blog\/wp-json\/wp\/v2\/tags?post=65"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}