index.html
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-1.9.1.js"></script>
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" />
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js"></script>
<meta charset="utf-8">
<title>Line Chart using MG</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/metrics-graphics/2.7.0/metricsgraphics.min.js"></script>
<link href="https://cdnjs.cloudflare.com/ajax/libs/metrics-graphics/2.7.0/metricsgraphics.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id='linechart'></div>
<script>
d3.json('data.json', function(data) {
data = MG.convert.date(data, "date");
MG.data_graphic({
title: "Articulos ingresados",
data: data,
width: 960,
height: 500,
target: document.getElementById('linechart'),
x_accessor: 'date',
y_accessor: 'value'
});
});
</script>
</body>
</html>