Created
June 18, 2013 16:56
-
-
Save stla/5807195 to your computer and use it in GitHub Desktop.
TestFirefox1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype HTML> | |
<meta charset = 'utf-8'> | |
<html> | |
<head> | |
<script src='http://polychart.com/s/third_party/polychart2.standalone.js' type='text/javascript'></script> | |
<style> | |
.rChart { | |
display: block; | |
margin-left: auto; | |
margin-right: auto; | |
width: 800px; | |
height: 300px; | |
} | |
</style> | |
</head> | |
<body> | |
<div id='chart7e867ea10d1' class='rChart polycharts'></div> | |
<script type='text/javascript'> | |
var chartParams = { | |
"dom": "chart7e867ea10d1", | |
"width": 800, | |
"height": 300, | |
"layers": [ | |
{ | |
"x": "y", | |
"y": "x", | |
"data": { | |
"x": [ 50, 54, 42 ], | |
"y": [ 482, 502, 756 ], | |
"Date": [ "25/01/2012", "07/02/2012", "10/02/2012" ], | |
"Trt": [ "A", "A", "B" ], | |
"TSL": [ "250002589", "250002680", "250002680" ] | |
}, | |
"facet": null, | |
"type": "point", | |
"color": "Trt", | |
"size": { | |
"const": 2 | |
}, | |
"tooltip": function(item){return 'Date:' + item.Date + '\n' + 'Trt: ' + item.Trt + '\n' + 'TSL: ' + item.TSL} | |
} | |
], | |
"facet": [], | |
"guides": { | |
"x": { | |
"min": 450, | |
"max": 800, | |
"numticks": 8 | |
} | |
}, | |
"coord": [], | |
"id": "chart7e867ea10d1" | |
} | |
_.each(chartParams.layers, function(el){ | |
el.data = polyjs.data(el.data) | |
}) | |
var graph_chart7e867ea10d1 = polyjs.chart(chartParams); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment