Closed mikewilli closed 2 years ago
I originally was thinking we should allow non-date types for the X axis, but not sure if that is a valid concern. Either way, we should validate the type of the field before just assuming it is a date and converting it to JS Date object.
If we want to allow generic (numeric) fields for the X axis we should be able to do that pretty easily along with this check.
We should be able to grab the
type
from the field object and check if it isdate
before assuming the X axis field is a date field.