import React from 'react'; import { PanelProps, GraphWithLegend /*, GraphSeriesXY*/ } from '@grafana/ui'; import { Options } from './types'; import { GraphPanelController } from './GraphPanelController'; import { LegendDisplayMode } from '@grafana/ui/src/components/Legend/Legend'; interface GraphPanelProps extends PanelProps {} export const GraphPanel: React.FunctionComponent = ({ data, timeRange, width, height, options, onOptionsChange, }) => { if (!data) { return (

No data found in response

); } const { graph: { showLines, showBars, showPoints }, legend: legendOptions, } = options; const graphProps = { showBars, showLines, showPoints, }; const { asTable, isVisible, ...legendProps } = legendOptions; return ( {({ onSeriesToggle, ...controllerApi }) => { return ( ); }} ); };