ChartDirector 6.0 (PHP Edition)
JsChartViewer.showCrossHair
Usage
Description
Arguments
| Argument | Default | Description |
|---|---|---|
| x | (Mandatory) | The x pixel coordinate of the crosshair, relative to the chart. |
| y | (Mandatory) | The y pixel coordinate of the crosshair, relative to the chart. |
| lineStyle | "1px | dotted black" The line style of the crosshair in CSS border property format, like "1px solid black" or "2px dotted #FF0000". |
| leftMargin | 0 | The number of pixels that the crosshair cursor will extend outside the left side of the plot area. A negative number means that the crosshair cursor will be shortened instead of extended. |
| rightMargin | 0 | The number of pixels that the crosshair cursor will extend outside the right side of the plot area. A negative number means that the crosshair cursor will be shortened instead of extended. |
| topMargin | 0 | The number of pixels that the crosshair cursor will extend outside the top side of the plot area. A negative number means that the crosshair cursor will be shortened instead of extended. |
| bottomMargin | 0 | The number of pixels that the crosshair cursor will extend outside the bottom side of the plot area. A negative number means that the crosshair cursor will be shortened instead of extended. |
| centerOffset | 5 | The radius in pixels of the region around (x, y) where the crosshair cursor lines should be broken. |
Return Value