diff --git a/src/data/Source.ts b/src/data/Source.ts index 95a341041f..adbeeaf551 100644 --- a/src/data/Source.ts +++ b/src/data/Source.ts @@ -271,7 +271,7 @@ export function detectSourceFormat(data: DatasetOption['source']): SourceFormat if (item == null) { continue; } - else if (isArray(item)) { + else if (isArray(item) || isTypedArray(item)) { sourceFormat = SOURCE_FORMAT_ARRAY_ROWS; break; } diff --git a/test/dataset-source-two-typed-array.html b/test/dataset-source-two-typed-array.html new file mode 100644 index 0000000000..f2c1cc8f01 --- /dev/null +++ b/test/dataset-source-two-typed-array.html @@ -0,0 +1,271 @@ + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + + + + + + + + + + + + + + + + + + + \ No newline at end of file