Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
eventRateChartData,
height,
width,
showAxis,
loading = false,
}) => {
return (
<div data-test-subj="{`mlEventRateChart" height="" style="{{">
0} loading={loading}>
{showAxis === true && }
</div>
);
};
defaultMessage: 'Count',
})
);
const colors: DataSeriesColorsValues = {
colorValues: [],
specId,
};
const expectedColor = getColorForDataType(field.type);
const seriesColors = new Map([[colors, expectedColor]]);
if (field.type === 'date') {
return wrapInPopover(
export const AnomalyChart: FC = ({
chartType,
chartData = [],
modelData,
anomalyData,
height,
width,
loading = false,
}) => {
const data = chartType === CHART_TYPE.SCATTER ? flattenData(chartData) : chartData;
const xDomain = getXRange(data);
return (
<div data-test-subj="{`mlAnomalyChart" height="" style="{{">
0} loading={loading}>
{chartType === CHART_TYPE.LINE &&
</div>
);
};