color tooltip #xxxx ; #xxxxxx
by loicbourgois
HTML
<script src="https://rawgit.com/chartjs/chartjs.github.io/master/dist/master/Chart.bundle.js"></script>
<body>
<canvas id="chartJSContainer" width="600" height="400"></canvas>
</body>
JavaScript
var options = {
type: 'bar',
data: {
labels: ["Red", "Blue", "Yellow", "Green", "Purple", "Orange"],
datasets: [
{
type:'line',
label: '# of Points',
data: [11, 5, 8, 3, 7, 7],
pointBackgroundColor: '#0f08',
borderWidth: 1,
pointRadius: 10
},
{
type:'line',
label: '# of Points',
data: [8, 3, 7, 7, 11, 5],
pointBackgroundColor: '#ffff00dd',
borderWidth: 1,
pointRadius: 10
},
{
type:'bar',
label: '# of Points',
data: [7, 11, 5, 8, 3, 7],
backgroundColor: '#F0F1',
borderWidth: 1,
pointRadius: 10
},
{
type:'line',
label: '# of Points',
data: [7, 11, 5, 8, 3, 7],
pointBackgroundColor: '#0ff',
borderWidth: 1,
pointRadius: 10
},
{
type:'line',
label: '# of Points',
data: [5, 8, 3, 7, 7, 11],
pointBackgroundColor: 'rgba(255,0,0,0.1)',
borderWidth: 1,
pointRadius: 10
},
]
}
}
var ctx = document.getElementById('chartJSContainer').getContext('2d');
new Chart(ctx, options);