dino-graph
Version:
a simple dynamic graphing library
45 lines (36 loc) • 648 B
HTML
<html>
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1, maximum-scale=1" name="viewport">
<script src="../dist/dino-graph.js"></script>
<title>split test</title>
</head>
<body>
<canvas id="canvas" width=600 height=300></canvas>
<script>
var data =
[
[
[ 0, 0 ],
[ 40, 50 ],
[ 80, 10 ],
],
[
[ 0, 0 ],
[ 40, 50 ],
[ 80, 10 ],
],
]
var g = new DinoGraph
(
document.getElementById( 'canvas' ),
data,
{
split: true,
centerPadding: 10
}
)
</script>
</body>
</html>