Skip to content

Commit

Permalink
fix(speed-char): show tooltip by index
Browse files Browse the repository at this point in the history
this will get another problem: color in toottip disappear
  • Loading branch information
ElonH committed Jun 3, 2020
1 parent 0cc5d72 commit a53c049
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/app/components/speed-chart/speed-chart.component.ts
Expand Up @@ -87,6 +87,7 @@ export class RngSpeedChartComponent implements OnInit {
},
tooltips: {
mode: 'index',
intersect: false,
callbacks: {
label(tooltipItem, data) {
let label = data.datasets[tooltipItem.datasetIndex].label || '';
Expand Down

0 comments on commit a53c049

Please sign in to comment.