Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
name={series.key.replace('Histogram', '')}
data={series.value || undefined}
xScaleType={getOr(ScaleType.Linear, 'configs.series.xScaleType', chartConfigs)}
yScaleType={getOr(ScaleType.Linear, 'configs.series.yScaleType', chartConfigs)}
timeZone={browserTimezone}
xAccessor="x"
yAccessors={['y']}
areaSeriesStyle={getSeriesLineStyle()}
customSeriesColors={getSeriesStyle(seriesKey, series.color)}
/>
) : null;
})}
) : null;
});
id="xpack.uptime.monitorCharts.monitorDuration.titleLabel"
defaultMessage="Monitor duration"
description="The 'ms' is an abbreviation for milliseconds."
/>
Number(d).toFixed(0)}
title={i18n.translate('xpack.uptime.monitorCharts.durationChart.leftAxis.title', {
defaultMessage: 'Duration ms',
})}
/>
{lineSeries}
series={series}
source={source}
timeRange={timeRange}
/>
)}
<div width="" style="{{">
{series.rows.length > 0 ? (
{metrics.map((metric, id) => (
))}
) : options.metrics.length > 0 ? (
) : (
)}
</div>
);
}
);
export const Axes: FC = ({ chartData }) => {
const yDomain = chartData !== undefined ? getYRange(chartData) : undefined;
return (
);
};
const dateFormatter = (d: number) => {
return moment(d)
.tz(timezone)
.format(getTimeBuckets(alert.params).getScaledDateFormat());
};
const aggLabel = aggregationTypes[aggType].text;
return (
<div data-test-subj="alertVisualizationChart">
{alertVisualizationDataKeys.length ? (
{alertVisualizationDataKeys.map((key: string) => {
return (
</div>
strokeWidth: 1,
visible: true,
},
point: {
visible: false,
radius: 0,
opacity: 0,
},
area: { visible: true, opacity: 1 },
},
}}
tooltip={{ headerFormatter }}
/>
kibanaFieldFormat(d, fieldFormat)}
/>
d.toFixed(3)}
hide={true}
/>
0 ? chartData : [{ x: 0, y: 0 }]}
theme={chartTheme}
rotation={shouldRotate ? 90 : 0}
/>
xAxisFormatter.convert(d)}
/>
yAxisFormatter.convert(d)}
/>
{layers.map(
(
{
splitAccessor,
seriesType,
accessors,
xAccessor,
layerId,
columnToLabel,
yScaleType,
<div width="" style="{{">
{series.rows.length > 0 ? (
{metrics.map((metric, id) => (
))}
) : options.metrics.length > 0 ? (</div>
const dateFormatter = (d: number) => {
return moment(d)
.tz(timezone)
.format(getTimeBuckets(watch).getScaledDateFormat());
};
const aggLabel = aggTypes[watch.aggType].text;
return (
<div data-test-subj="watchVisualizationChart">
{watchVisualizationDataKeys.length ? (
{watchVisualizationDataKeys.map((key: string) => {
return (
</div>