morris.js/spec/viz/test.html
2014-03-19 20:55:54 +00:00

33 lines
737 B
HTML

<!doctype html>
<head>
<script src="../../bower_components/jquery/dist/jquery.min.js"></script>
<script src="../../bower_components/raphael/raphael-min.js"></script>
<script src="../../morris.js"></script>
<link rel="stylesheet" href="../../morris.css">
<style>
body {
padding: 0;
margin: 0;
background-color: white;
}
#chart {
width: 500px;
height: 300px;
}
</style>
<script>
function bridge(e) {
window.alert(JSON.stringify(e));
}
window.snapshot = function () {
bridge({ fn: "snapshot" });
};
window.mousemove = function (x, y) {
bridge({ fn: "mousemove", x: x, y: y });
};
</script>
</head>
<body>
<div id="chart"></div>
</body>