Skip to content

Instantly share code, notes, and snippets.

@OllyHodgson
Created January 7, 2013 09:50
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save OllyHodgson/4473766 to your computer and use it in GitHub Desktop.
Save OllyHodgson/4473766 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.
Display the source blob
Display the rendered blob
Raw
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