You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been trying for a (long) while but i can't figure out how to make an ordinal LineSeries - chart with String 'x' values. It seems to be unable to determine where its ticks should be; even when using numbers fo the 'x' value. Playing around with the numTicks properties and such all result in the same. Is this package capable of rendering a LineSeries?
I think that you're right that something is up with the ordinal type scale, so I'll mark this as a bug to make sure that it gets resolved.
BUT you can work around this for now with a band scale and setting paddingInner = 1:
xScale={{ type: 'band', paddingInner: 1 }}
Here's a codesandbox to check out/play with, I hope that helps for the time being until I get a chance to fix it! (have been slammed at work recently but will try to get this fixed asap)
FYI this is due to ordinal type scales requiring full explicit domains for each value, which XYChart does not currently handle (it will set a 2-element min/max). Working on a fix to not require users to pass this in explicitly.
Hi there,
I've been trying for a (long) while but i can't figure out how to make an ordinal LineSeries - chart with String 'x' values. It seems to be unable to determine where its ticks should be; even when using numbers fo the 'x' value. Playing around with the numTicks properties and such all result in the same. Is this package capable of rendering a LineSeries?
data
The text was updated successfully, but these errors were encountered: