HTML
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.bundle.js"></script>
<script src="https://rawgit.com/chartjs/Chart.js/master/samples/utils.js"></script>
<!doctype html>
<html>
<head>
<title>Mixed Chart</title>
<script src="../../dist/Chart.bundle.js"></script>
<script src="../utils.js"></script>
<style>
canvas {
-moz-user-select: none;
-webkit-user-select: none;
-ms-user-select: none;
}
div {
display: flex;
flex-wrap: wrap;
}
div div {
flex-grow: 1;
width: 30%;
margin: 0.5em;
height: 15em;
min-width: 20em;
}
</style>
</head>
<body>
<button id="randomizeData">Randomize Data</button>
<div id="container">
</div>
<script>
var sets = [
{
parents: ['scatter', 'line', 'bubble', 'bar', 'horizontalBar', undefined],
childs: [
{type:'scatter', color:'#f844'},
{type:'scatter', color:'#f844'},
{type:'line', color:'#4f84', fill:false},
{type:'bubble', color:'#8f44'},
{type:'line', color:'#f484'},
{type:'bar', color:'#48f4'},
{type:'bar', color:'#84f4'}
]
}, {
parents: ['scatter', 'line', 'bubble', 'bar', 'horizontalBar', undefined],
childs: [
{type:'scatter', color:'#f844'},
{type:'scatter', color:'#f844'},
{type:'line', color:'#4f84', fill:false},
{type:'bubble', color:'#8f44'},
{type:'line', color:'#f484'}
]
}, {
parents: ['scatter', 'line', 'bubble', 'bar', 'horizontalBar', undefined],
childs: [
{type:'scatter', color:'#f844'},
{type:'line', color:'#4f84', fill:false},
{type:'bubble', color:'#8f44'},
{type:'line', color:'#f484'},
{type:'bar', color:'#48f4'},
{type:'bar', color:'#48f4'},
{type:'horizontalBar', color:'#84f4'},
]
}, {
parents: ['scatter', 'line', 'bubble', 'bar', 'horizontalBar', undefined],
childs: [
{type:'horizontalBar', color:'#f484'},
{type:'scatter',...