Interface MatrixChartModel

All Superinterfaces:
ChartModel
All Known Implementing Classes:
DefaultMatrixChartModel

public interface MatrixChartModel extends ChartModel
An extension of ChartModel for matrix-based data, such as that required by Chord Diagrams or adjacency matrices.
Since:
2025-06-01
Version:
1.0.0
Author:
Arber Gashi
See Also:
  • Method Details

    • getMatrix

      double[][] getMatrix()
      Returns the data as a 2D matrix. The matrix represents the flow or relationship between entities.
      Returns:
      A 2D double array where matrix[i][j] is the value from entity i to j.
    • getEntityLabels

      List<String> getEntityLabels()
      Returns the labels for the entities (nodes) in the matrix. The size of this list should match the dimensions of the matrix.
      Returns:
      A list of labels for each entity.