Skip to content

Instantly share code, notes, and snippets.

@cuibonobo
Forked from OllyHodgson/sparkline.svg
Created August 12, 2014 10:19
Show Gist options
  • Save cuibonobo/2a243ac5f2f3eaddfb4f to your computer and use it in GitHub Desktop.
Save cuibonobo/2a243ac5f2f3eaddfb4f to your computer and use it in GitHub Desktop.
Stuart Langridge's Simple SVG sparklines — http://kryogenix.org/days/2012/12/30/simple-svg-sparklines — but using an object element instead of an embed. Worth investigating whether having many of these on a page will create many HTTP requests.
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<!doctype html>
<html>
<head>
<meta charset=utf-8>
<meta name=description content="Stuart's Sparklines">
<meta name=viewport content="width=device-width, initial-scale=1">
<title>Sparklines</title>
</head>
<body>
<h1><a href="http://kryogenix.org/days/2012/12/30/simple-svg-sparklines">Stuart's Simple SVG sparklines</a> using an object element:</h1>
<object data="sparkline.svg?1,8,1,8,1,8" type="image/svg+xml" width="100" height="15"></object>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment