Open dej611 opened 3 years ago
Time and Linear can be mixed together, but there are some limitation that needs to be considered:
RangeError: Invalid array length
error)We should fix the part of the code to compute the number of ticks to avoid such a use case. This was anyway something that we want to change/clean up in the near future, cleaning all the scale functions we have
Describe the bug When mixing two Bar series, with one Time and the other Linear X scales, leads to the charts area to crash (blank area) and an error appears in the console.
To Reproduce Steps to reproduce the behavior:
35_test_time.tsx
storybars.stories.tsx
Expected behaviour The two scales should be independent and just split the series as it happens when mixing a
Time
and anOrdinal
scales together (try to change thexScaleType={ScaleType.Linear}
toOrdinal
to see the difference).Screenshots
Additional context
In Lens the user could configure multiple "layers", without particular constraint on types, which could lead to this situation.
Errors in browser console
Kibana Cross Issues Add any Kibana Lens issue related issues here.
Checklist
Kibana Cross Issues
listkibana cross issue
tag is associated to the issue if any kibana cross issue is present