Last active
August 29, 2015 14:17
-
-
Save mattwigway/11ed0c60aac7f51997cb to your computer and use it in GitHub Desktop.
This file contains hidden or 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> | |
<html> | |
<head> | |
<title>MetricsGraphics Confidence Bound Test</title> | |
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/metrics-graphics/2.2.1/metricsgraphics.css" /> | |
</head> | |
<body> | |
<div id="chart"></div> | |
<script src="http://d3js.org/d3.v3.min.js" charset="utf-8"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/metrics-graphics/2.2.1/metricsgraphics.js"></script> | |
<script> | |
data = [ | |
{l: 0, m: 0, u: 0, v: 0}, | |
{l: 1, m: 2, u: 3, v: 1}, | |
{l: 2, m: 4, u: 6, v: 2} | |
]; | |
MG.data_graphic({ | |
title: 'test', | |
data: data, | |
area: false, | |
x_accessor: 'v', | |
y_accessor: 'm', | |
show_confidence_band: ['l', 'u'], | |
target: '#chart', | |
width: 800, | |
height: 600 | |
}); | |
} | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment