function heuristicGraphLayout(ann: Annotation [], nIters: number, tolerance: number): MapVerticalLayout

This function takes a list of Annotation objects and uses a non-deterministic greedy graph coloring heuristic 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.


  • ann: Annotation []

  • nIters: number

  • tolerance: number

Returns: MapVerticalLayout