svelteplot 0.14.1-pr-549.0 → 0.14.1-pr-549.1
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,12 @@
|
|
|
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,
|
|
140
|
+
filteredData.some(
|
|
141
|
+
(d) => resolveChannel(independent, d, options as any) instanceof Date
|
|
142
|
+
)
|
|
140
143
|
);
|
|
141
144
|
|
|
142
145
|
// Build a clean numeric input set for regression fitting, dropping invalid rows early.
|