svelteplot 0.4.8-pr-226.0 → 0.4.9-pr-230.0

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.
@@ -152,7 +152,11 @@ export function createScale(name, scaleOptions, marks, plotOptions, plotWidth, p
152
152
  throw new Error(`Invalid scale type ${type} for scale
153
153
  ${name}. Valid types are ${[...VALID_SCALE_TYPES[name]].join(', ')}`);
154
154
  }
155
- const isOrdinal = type === 'band' || type === 'point' || type === 'ordinal' || type === 'categorical';
155
+ const isOrdinal = type === 'band' ||
156
+ type === 'point' ||
157
+ type === 'ordinal' ||
158
+ type === 'categorical' ||
159
+ type === 'threshold';
156
160
  if (isOrdinal && sortOrdinalDomain) {
157
161
  valueArr.sort(ascending);
158
162
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "svelteplot",
3
- "version": "0.4.8-pr-226.0",
3
+ "version": "0.4.9-pr-230.0",
4
4
  "license": "ISC",
5
5
  "author": {
6
6
  "name": "Gregor Aisch",