fix: d3 appears to use special characters for math values like pi. Wrapped in try..catch.