BigFatDog / parcoords-es

ES6 module of Syntagmatic's Parallel Coordinates
MIT License
62 stars 32 forks source link

Axes types are not correctly detected if `null` present #118

Open prithvikannan opened 1 year ago

prithvikannan commented 1 year ago

Nulls are not properly handled in the first row of the dataset. However, if null exists in a later row, then the chart will render properly.

A current workaround to this problem is to cast null values as strings, but that creates an additional challenge of columns being inferred as "string" type even if they are numeric.

The source of this issue is here https://github.com/BigFatDog/parcoords-es/blob/master/src/api/detectDimensionTypes.js#L3-L10

I have written this PR with a proposed fix https://github.com/BigFatDog/parcoords-es/pull/117