How do I format the crosshairs so that they appear fixed above the nodes on my chart?

You can format the crosshairs so that they appear fixed above the nodes on your chart. In the plotLabel object, you need to add:

  • placement attribute set to 'node-top'
  • multiple attribute set to true
  • offsetY attribute, as needed, to adjust the offset

See the below demo.

crosshairX: {
  plotLabel: {
    placement: 'node-top',
    multiple: true,
    offsetY: -5,
    ...
  },
  scaleLabel: {
    visible: false
  },
  marker: {
    ...
  },
  ...
}

Refer to the Crosshairs Tutorial for information on interactive crosshairs generally. Refer to the Crosshairs Plot Label JSON page for a full list of attributes for the crosshair plot labels.

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.