mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-14 00:19:16 +01:00
refactor: remove chart point filter (#743)
This commit is contained in:
parent
3d93ed44d4
commit
47f6bc5829
@ -42,10 +42,8 @@ const createChartPoints = (
|
|||||||
locationSettings: ILocationSettings,
|
locationSettings: ILocationSettings,
|
||||||
y: (m: IFeatureMetricsRaw) => number
|
y: (m: IFeatureMetricsRaw) => number
|
||||||
): IPoint[] => {
|
): IPoint[] => {
|
||||||
const points = metrics.map(metric => ({
|
return metrics.map(metric => ({
|
||||||
x: metric.timestamp,
|
x: metric.timestamp,
|
||||||
y: y(metric),
|
y: y(metric),
|
||||||
}));
|
}));
|
||||||
|
|
||||||
return points.filter(point => point.y > 0);
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user