svelteplot 0.4.3-pr-199.0 → 0.4.3-pr-199.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.
- package/dist/Mark.svelte +1 -1
- package/dist/helpers/scales.js +1 -1
- package/package.json +1 -1
package/dist/Mark.svelte
CHANGED
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
? scale === 'x'
|
|
266
266
|
? projectX(origChannel as 'x' | 'x1' | 'x2', plot.scales, value)
|
|
267
267
|
: scale === 'y'
|
|
268
|
-
? projectY(origChannel as 'y' | 'y1' | '
|
|
268
|
+
? projectY(origChannel as 'y' | 'y1' | 'y2', plot.scales, value)
|
|
269
269
|
: scale === 'color' && !isValid(value)
|
|
270
270
|
? plot.options.color.unknown
|
|
271
271
|
: plot.scales[scale].fn(value)
|
package/dist/helpers/scales.js
CHANGED
|
@@ -236,7 +236,7 @@ export function inferScaleType(name, dataValues, markTypes) {
|
|
|
236
236
|
if (name === 'symbol')
|
|
237
237
|
return 'ordinal';
|
|
238
238
|
// for positional scales, try to pick a scale that's required by the mark types
|
|
239
|
-
if (
|
|
239
|
+
if (name === 'x' || name === 'y') {
|
|
240
240
|
if (name === 'y' &&
|
|
241
241
|
(markTypes.has('barX') || markTypes.has('tickX') || markTypes.has('cell')))
|
|
242
242
|
return 'band';
|