The class that plots and stores the heatmap, which displays the the similarity values between every pair of cases in a casebase. This heatmap is interactive, so when the user clicks on a cell, the class notifies to its observers the information about the pair of cases represented in this cell. For this reason, this class implements the PlotEventNotifier.

Additionally, this class displays the stripe charts that appear when the user clicks on the pin icon on the header of the Table comparator. This way, the heatmap is transformed into a stripe chart, where each stripe is the similarity value of the selected case with another case in the casebase. The stripechart is sorted by similarity value.

Hierarchy (view full)

Constructors

Methods

  • Create a stripe chart filtering the heatmap by the caseId.

    Parameters

    • caseId: string

      The caseId selected for the stripe chart

    • sorted: boolean

      Whether the stripe chart is sorted by similarity value or not

    Returns void

  • Create the data for the PlotEvent handlers and notify them

    Parameters

    • data: any

      The data provided by Plotly

    Returns void