add custom chartjs tooltip

This commit is contained in:
Jesse Lucas
2020-03-29 16:51:12 -04:00
parent 3840d57f8d
commit 7aca2bcbc0
4 changed files with 95 additions and 1 deletions
@@ -1,6 +1,6 @@
import { Component, Input } from '@angular/core';
import { Chart } from 'chart.js'
import { LabelOptions } from '@angular/material/core';
import { tooltip } from '../tooltip'
@Component({
selector: 'app-donut-chart',
@@ -71,6 +71,11 @@ export class DonutChartComponent {
responsive: false,
legend: {
display: false
},
tooltips: {
// Disable the on-canvas tooltip
enabled: false,
custom: tooltip(),
}
}
});