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 totrue
-
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