ZingChart: 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 adjust the crosshairX object in the following ways:

  • placement attribute set to 'node-top'

  • multiple attribute set to true

  • offsetY attribute, as needed, to adjust the offset

For example,

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


The syntax you can look at from the demo below should illustrate this a bit more clearly.

Example: https://demos.zingchart.com/view/RJS4QFE4

Documentation

Crosshairs Tutorial
Crosshairs Plot Label JSON Syntax 

Did this answer your question? Thanks for the feedback There was a problem submitting your feedback. Please try again later.

Still need help? Contact Us Contact Us