将鼠标悬停在多轴上的点上时,如何显示HTML工具提示?

时间:2019-11-22 00:49:05

标签: python matplotlib mpld3

尽管类似To this mouseover question,但需要使用matplotlib mpld3 HTML工具解决方案。该代码显示两个图,但是只有第二个图具有鼠标悬停注释。如何在两个图上获取工具提示?

  export class SessionService {
  private loggedIn: boolean;
  constructor(private router: Router) {
    this.loggedIn = false;
  }

  public isLoggedIn(): boolean {
    return this.loggedIn;
  }

  public setLoggedIn(value: boolean): void {
    const previous = this.loggedIn;
    this.loggedIn = value;
    if (previous === this.loggedIn) {
      return;
    }
    const i = this.router.config.findIndex(x => x.path === '');
    this.router.config.splice(i, 1);
    this.router.config.push(
      {path: '', loadChildren: () => import('app/handler/handler.module').then(mod => mod.HandlerModule)}
    );
  }
}

0 个答案:

没有答案