Consider following code
<BarChart
metric="sales"
categorical="Customer.City"
width={300}
height={300}
margin={magicMargin}
data={frame}
direction="horizontal"
/>
if for example developer made a typo and wrote "sale" instead of "sales" and typescript didn't catch that error (because DataFrame wasn't able to infer type) it will fall through down to the DataFrame internals and throw cryptic error. Instead we need to check (in development mode only), that the given column is actually present in the scheme and throw clear error if not
Consider following code
if for example developer made a typo and wrote
"sale"instead of"sales"and typescript didn't catch that error (because DataFrame wasn't able to infer type) it will fall through down to the DataFrame internals and throw cryptic error. Instead we need to check (in development mode only), that the given column is actually present in the scheme and throw clear error if not