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 <menwe@amazon.com>
(cherry picked from commit 9f738bc)

Co-authored-by: Eric Wei <menwe@amazon.com>
  • Loading branch information
2 people authored and Peter Fitzgibbons committed Mar 16, 2023
1 parent deb3d65 commit a16d761
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 a16d761

Please sign in to comment.