Using the subchart options for billboardjs like in the documentation works as expected.
What I want to know is:
Is there a way to show the subchart on top of the chart?
How should I proceed to make this happen?
Example from docs:
var chart = bb.generate({
data: {
columns: [
["sample", 30, 200, 100, 400, 150, 250]
]
},
size:{width: 500, height: 250},
subchart: {
show: true
},
bindto: "#SubChart"
});
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/billboard.js/dist/billboard.min.css" />
<script src="https://cdn.jsdelivr.net/npm/billboard.js/dist/billboard.pkgd.min.js"></script>
<title>JS Bin</title>
</head>
<body>
<div id="SubChart"></div>
</body>
</html>