svelteplot 0.14.1-pr-549.0 → 0.14.1-pr-549.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -134,9 +134,10 @@
|
|
|
134
134
|
|
|
135
135
|
// Detect temporality from the raw data rather than from the computed scale type to avoid a
|
|
136
136
|
// circular dependency that would cause the scale type to be permanently inferred as 'linear'.
|
|
137
|
+
// Scan for the first row that resolves to a non-null independent value — checking only
|
|
138
|
+
// filteredData[0] would give false negatives when the leading row has a missing/null value.
|
|
137
139
|
const independentIsDate = $derived(
|
|
138
|
-
filteredData.
|
|
139
|
-
resolveChannel(independent, filteredData[0], options as any) instanceof Date
|
|
140
|
+
filteredData.some((d) => resolveChannel(independent, d, options as any) instanceof Date)
|
|
140
141
|
);
|
|
141
142
|
|
|
142
143
|
// Build a clean numeric input set for regression fitting, dropping invalid rows early.
|