Skip to content

Commit bc81b70

Browse files
committed
Removes a check inside _data._normalize_data
This check is now redundant as we work with altair.Chart now instead of specification as a dictionary. When defining an altair.Chart object, it does the necessary required validations itself.
1 parent 4edd0fb commit bc81b70

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

mplaltair/_data.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,6 @@ def _normalize_data(chart):
3131

3232
spec = chart.to_dict()
3333

34-
if not spec.get('data'):
35-
raise ValidationError('Please specify a data source.')
36-
3734
if spec['data'].get('url'):
3835
df = pd.DataFrame(_fetch(spec['data']['url']))
3936
elif spec['data'].get('values'):

0 commit comments

Comments
 (0)