From a16d7610f36d5929b0717ecdebe698ce56526bae Mon Sep 17 00:00:00 2001 From: "opensearch-trigger-bot[bot]" <98922864+opensearch-trigger-bot[bot]@users.noreply.github.com> Date: Tue, 21 Feb 2023 12:48:44 -0800 Subject: [PATCH] remove timeseries data validation to get back line chart support (#258) (#292) Signed-off-by: Eric Wei (cherry picked from commit 9f738bc9123a259b003db55f73b0be9b3ae9ec47) Co-authored-by: Eric Wei --- public/components/visualizations/visualization.tsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/public/components/visualizations/visualization.tsx b/public/components/visualizations/visualization.tsx index d737bc7bbe..f1107908b9 100644 --- a/public/components/visualizations/visualization.tsx +++ b/public/components/visualizations/visualization.tsx @@ -34,10 +34,6 @@ export const Visualization = ({ if (isEmpty(series)) return [false, VISUALIZATION_ERROR.INVALID_DATA]; // series is required to any visualization type - // timeseries - if (vis.id === VIS_CHART_TYPES.Line && (isEmpty(span) || dimensions.length > 0)) - return [false, VISUALIZATION_ERROR.INVALID_DATA]; - // bars, pie if (dimensions.length < 1 && isEmpty(span)) return [false, VISUALIZATION_ERROR.INVALID_DATA];