This is documentation for the next version of Grafana. For the latest stable release, go to the latest version.

API Reference@grafana/uiXYCanvas

XYCanvas variable

XYCanvas variable

Renders absolutely positioned element on top of the uPlot’s plotting area (axes are not included!). Useful when you want to render some overlay with canvas-independent elements on top of the plot.


XYCanvas: React.FC<XYCanvasProps>


import { XYCanvas } from '@grafana/ui';