Allow independent series fitting on x axes #1157
Labels
:data
Data/series/scales related issue
enhancement
New feature or request
:xy
Bar/Line/Area chart related
Is your feature request related to a problem? Please describe.
Yes, the issue is that when using any
fit
type on a series when there are multiple series specs declared, this causes the fit logic to fill the gaps. This treats all series as if they represent the same data, more specifically it assumes all x values are shared across all series effectively coupling all series to each other.See https://codesandbox.io/s/nostalgic-fast-q5q88?file=/src/App.tsx for an example like this...
Another case that could apply to this fitting logic is if the x values are nearly matching but shifted by some infinitesimal amount. If both series are using some
fit
type, they will both render as if they have discontinuous data.See https://codesandbox.io/s/zen-shamir-pe4ho?file=/src/App.tsx for an example of this...
Describe the solution you'd like
Allow different series specs to be independent in terms of fitting logic. This would not affect the domain extents just how the fitting is applied.
Describe alternatives you've considered
The text was updated successfully, but these errors were encountered: