@@ -79,7 +79,7 @@ export const CORE_VIS = {
7979 Icon : FiCode ,
8080 Container : ScalarVisContainer ,
8181 supportsDataset : ( dataset ) => {
82- return hasPrintableType ( dataset ) && hasScalarShape ( dataset ) ;
82+ return hasScalarShape ( dataset ) && hasPrintableType ( dataset ) ;
8383 } ,
8484 } ,
8585
@@ -89,7 +89,7 @@ export const CORE_VIS = {
8989 Container : MatrixVisContainer ,
9090 ConfigProvider : MatrixConfigProvider ,
9191 supportsDataset : ( dataset ) => {
92- return hasPrintableType ( dataset ) && hasArrayShape ( dataset ) ;
92+ return hasArrayShape ( dataset ) && hasPrintableType ( dataset ) ;
9393 } ,
9494 } ,
9595
@@ -99,7 +99,7 @@ export const CORE_VIS = {
9999 Container : LineVisContainer ,
100100 ConfigProvider : LineConfigProvider ,
101101 supportsDataset : ( dataset ) => {
102- return hasNumericLikeType ( dataset ) && hasArrayShape ( dataset ) ;
102+ return hasArrayShape ( dataset ) && hasNumericLikeType ( dataset ) ;
103103 } ,
104104 } ,
105105
@@ -109,7 +109,7 @@ export const CORE_VIS = {
109109 Container : ComplexLineVisContainer ,
110110 ConfigProvider : LineConfigProvider ,
111111 supportsDataset : ( dataset ) => {
112- return hasComplexType ( dataset ) && hasArrayShape ( dataset ) ;
112+ return hasArrayShape ( dataset ) && hasComplexType ( dataset ) ;
113113 } ,
114114 } ,
115115
@@ -120,9 +120,9 @@ export const CORE_VIS = {
120120 ConfigProvider : HeatmapConfigProvider ,
121121 supportsDataset : ( dataset ) => {
122122 return (
123- hasNumericLikeType ( dataset ) &&
124123 hasArrayShape ( dataset ) &&
125- hasMinDims ( dataset , 2 )
124+ hasMinDims ( dataset , 2 ) &&
125+ hasNumericLikeType ( dataset )
126126 ) ;
127127 } ,
128128 } ,
@@ -134,9 +134,9 @@ export const CORE_VIS = {
134134 ConfigProvider : HeatmapConfigProvider ,
135135 supportsDataset : ( dataset ) => {
136136 return (
137- hasComplexType ( dataset ) &&
138137 hasArrayShape ( dataset ) &&
139- hasMinDims ( dataset , 2 )
138+ hasMinDims ( dataset , 2 ) &&
139+ hasComplexType ( dataset )
140140 ) ;
141141 } ,
142142 } ,
@@ -174,9 +174,9 @@ export const CORE_VIS = {
174174 ConfigProvider : MatrixConfigProvider ,
175175 supportsDataset : ( dataset ) => {
176176 return (
177+ hasNonNullShape ( dataset ) &&
177178 hasCompoundType ( dataset ) &&
178- hasPrintableCompoundType ( dataset ) &&
179- hasNonNullShape ( dataset )
179+ hasPrintableCompoundType ( dataset )
180180 ) ;
181181 } ,
182182 } ,
@@ -192,9 +192,9 @@ export const CORE_VIS = {
192192
193193 return (
194194 enableSurfaceVis &&
195- hasNumericType ( dataset ) &&
196195 hasArrayShape ( dataset ) &&
197- hasMinDims ( dataset , 2 )
196+ hasMinDims ( dataset , 2 ) &&
197+ hasNumericType ( dataset )
198198 ) ;
199199 } ,
200200 } ,
0 commit comments