Skip to content

Commit fb0c0e1

Browse files
committed
Raises if default config of axis and scales are overriden
1 parent fcb6af4 commit fb0c0e1

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

mplaltair/parse_chart.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,13 @@ def __init__(self, alt_chart):
114114
self.data = alt_chart.data
115115
self.mark = alt_chart.mark
116116

117+
if alt_chart.to_dict().get('config').get('axis'):
118+
raise NotImplementedError
119+
120+
if alt_chart.to_dict().get('config').get('scale'):
121+
raise NotImplementedError
122+
123+
117124
self.encoding = {}
118125
for k, v in alt_chart.to_dict()['encoding'].items():
119126
self.encoding[k] = ChannelMetadata(k, alt_chart)

0 commit comments

Comments
 (0)