Built in a robust fashion, the widget queries the past hour's data, plus a price for 'now', which is appended to the sparkline. If for some reason the past hour's data isn't returned, the widget will create a sparkline from now, polling every minute to get a price update and build up the sparkline.
A hover state was incorporated, giving a tooltip for the price for the cursor along the x-axis
Uses CSS3 to animate price updates when successfully retrieved. The price value going red or green, and fading up or down accordingly, calculated against the previously most recent value.
Fully vector and prepared for HiDPI devices. The widget source includes base64 encoded SVGs used for logos, with fallback PNGs, to reduce requests.
Designed to be embedded with the minimum footprint, the widget can be embedded with 2 lines code:
Once initialised, the widget loads its other dependencies. The widget supports mutliple dimensions and alignments, which can be specified by the relevant