Skip to content

Instantly share code, notes, and snippets.

@mleinart
Created April 30, 2012 15:58
Show Gist options
  • Save mleinart/2559530 to your computer and use it in GitHub Desktop.
Save mleinart/2559530 to your computer and use it in GitHub Desktop.
Sample metadata in graphite SVG
<script>
<![CDATA[
metadata = {
"area": {
"xmin": 39.195507812499997,
"ymin": 33.96875,
"ymax": 623.794921875,
"xmax": 1122
},
"series": [
{
"start": 1335398400,
"step": 1800,
"end": 1335425400,
"name": "summarize(test.data, \"30min\", \"sum\")",
"color": "#859900",
"data": [null, null, 1.0, null, 1.0, null, 1.0, null, 1.0, null, 1.0, null, null, null, null],
"options": {},
"valuesPerPoint": 1
}
],
"y": {
"labelValues": [0, 0.25, 0.5, 0.75, 1.0],
"top": 1.0,
"labels": ["0 ", "0.25 ", "0.50 ", "0.75 ", "1.00 "],
"step": 0.25,
"bottom": 0
},
"x": {
"start": 1335398400,
"end": 1335423600
},
"font": {
"bold": false,
"name": "Sans",
"italic": false,
"size": 10
},
"options": {
"lineWidth": 1.2
}
}
]]>
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment