circos.js

Tracks

CircosJS has several types of tracks :

  • Chords
  • Heatmap
  • Histogram
  • Line
  • Scatter
  • Stack

To add a track to your circos instance you should write something like this:

instance.heatmap(
    'my-heatmap',
    {
        // your heatmap configuration
    },
    heatmap_data
);

This pattern is similar to all track types:

instance.trackType('track-name', configuration, data);

About the track name:

  • Must be unique.
  • Should be slug style for simplicity, consistency and compatibility. Example: heatmap-1
  • Lowercase, a-z, can contain digits, 0-9, can contain dash or dot but not start/end with them.
  • Consecutive dashes or dots not allowed.
  • 50 characters or less.

Note: As written just above, the track name is used as a class name so you should not use spaces and weird characters and first character should not be a digit.