The JavaScript error reported in #46 does not raise a corresponding Python error. Instead, vl-convert still returns an svg string but the svg itself is wrong due to the error which happened on the JS level:

Would it be possible to raise all JS errors? Especially when generating a large number of charts, it would be important to know if everything worked as expected.