Cross

Renders a crosshair as an SVG path with one horizontal and one vertical line. It is used as the default tooltip cursor in ScatterChart.

All coordinates and dimensions are in pixels, rather than chart data values. The vertical line runs from (x, top) to (x, top + height), and the horizontal line runs from (left, y) to (left + width, y). Set top, left, width, and heightto define the extent of the lines; x and y position their intersection.

Use SVG presentation attributes such as stroke, strokeWidth, and strokeDasharrayto style the lines. Set stroke to make the path visible; fill does not color the lines.

  • classNamestringoptional

  • heightnumber | stringoptional

    Height of the cross in pixels.

  • leftnumberoptional

    The x-coordinate of the top left point in the boundary box of the cross.

  • topnumberoptional

    The y-coordinate of the top left point in the boundary box of the cross.

  • widthnumber | stringoptional

    Width of the cross in pixels.

  • xnumber | stringoptional

    The x-coordinate of the vertical line of the cross in pixels.

  • ynumber | stringoptional

    The y-coordinate of the horizontal line of the cross in pixels.