Skip to content

Commit

Permalink
remove timeseries data validation to get back line chart support (#258)…
Browse files Browse the repository at this point in the history
… (#292)

Signed-off-by: Eric Wei <[email protected]>
(cherry picked from commit 9f738bc)

Co-authored-by: Eric Wei <[email protected]>
  • Loading branch information
opensearch-trigger-bot[bot] and mengweieric authored Feb 21, 2023
1 parent c577559 commit ad58f26
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions public/components/visualizations/visualization.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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];

Expand Down

0 comments on commit ad58f26

Please sign in to comment.