From 37638898279e3af06377a06cc563809b701e730c Mon Sep 17 00:00:00 2001 From: Hannah Eslinger Date: Wed, 13 Mar 2024 13:53:58 -0600 Subject: [PATCH] Fix categorical axis (#4565) Fix catagorical axis --- seed/static/seed/js/controllers/insights_property_controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/seed/static/seed/js/controllers/insights_property_controller.js b/seed/static/seed/js/controllers/insights_property_controller.js index 8345cd341a..ea408cfa7f 100644 --- a/seed/static/seed/js/controllers/insights_property_controller.js +++ b/seed/static/seed/js/controllers/insights_property_controller.js @@ -313,7 +313,7 @@ angular.module('BE.seed.controller.insights_property', []).controller('insights_ item.x = _.find(prop, (v, k) => k.endsWith(`_${String($scope.configs.chart_xaxis)}`)); // is x axis categorical? - if ($scope.x_categorical === false && Number.isNaN(item.x)) { + if ($scope.x_categorical === false && isNaN(item.x)) { $scope.x_categorical = true; }