diff --git a/giraffe/package.json b/giraffe/package.json index 421a23ce..d15adfee 100644 --- a/giraffe/package.json +++ b/giraffe/package.json @@ -1,6 +1,6 @@ { "name": "@influxdata/giraffe", - "version": "2.7.3", + "version": "2.7.4", "main": "dist/index.js", "module": "src/index.js", "license": "MIT", diff --git a/giraffe/src/components/Plot.tsx b/giraffe/src/components/Plot.tsx index dd075972..af7bb9f5 100644 --- a/giraffe/src/components/Plot.tsx +++ b/giraffe/src/components/Plot.tsx @@ -11,6 +11,7 @@ interface PlotProps { } export const Plot: FunctionComponent = ({ + children, config, axesCanvasRef = useRef(null), layerCanvasRef = useRef(null), @@ -24,7 +25,9 @@ export const Plot: FunctionComponent = ({ height={config.height} layerCanvasRef={layerCanvasRef} width={config.width} - /> + > + {children} + ) } @@ -38,7 +41,9 @@ export const Plot: FunctionComponent = ({ height={height} layerCanvasRef={layerCanvasRef} width={width} - /> + > + {children} + )} )