Skip to content

Instantly share code, notes, and snippets.

@mattwigway
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mattwigway/11ed0c60aac7f51997cb to your computer and use it in GitHub Desktop.
Save mattwigway/11ed0c60aac7f51997cb to your computer and use it in GitHub Desktop.
<!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