intervalGraphLayout

function intervalGraphLayout(ann: Annotation [], tolerance: number): number

This function takes a list of Annotation objects and uses a greedy interval scheduling algorithm to assign each of them a y coordinate in terms of horizontal bins that will prevent any horizontal overlap when they are rendered in a Chart.

Parameters

  • ann: Annotation []

  • tolerance: number

Returns: number