| | Sparklines in data: URIs in Python | 2005-04-25 | BitWorking (Site not responding. Last check: 2007-11-02) |
 | | Embedding sparklines in that report output sounds like a perfect application of "data: URIs" [RFC 2397], which allow you to take small bits of data, like small images, and instead of serving them up seperately, you embed the data right into the URI. |
 | | Making the sparklines turned out to be incredibly easy, making me think that the reason there wasn't any libraries is that it's just so easy to glue the right pieces together in Python that a library would be overkill. |
 | | Here is the code that generated that sparkline, which not only generates the 'img' element but also prints the minimum point and the last data value in colors that match the corresponding points in the sparkline. |
| bitworking.org /news/Sparklines_in_data_URIs_in_Python (1654 words) |