dino-graph
Version:
a simple dynamic graphing library
46 lines (36 loc) • 692 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>quadratic line test</title>
</head>
<body>
<canvas id="canvas" width=600 height=300></canvas>
<script>
var data =
[
[
[ 0, 50 ],
[ 100, 200 ],
[ 200, 100 ],
[ 300, 50 ],
[ 400, 300 ]
],
]
var g = new DinoGraph
(
document.getElementById( 'canvas' ),
data,
{
debug: true,
lineWidth: 3,
points: false,
fill: true,
quadratic: true,
}
)
</script>
</body>
</html>