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
Describe the bug
With the newly added x scale ordinal fallback enhancement (#678), the xDomain prop should be ignored as the DomainRange object does not apply to ordinal scales.
Expected behaviour
A warning should be thrown that the custom domain is not valid. But no error should be thrown.
Version (please complete the following information):
OS: [e.g. iOS]
Browser: [e.g. chrome, safari]
Elastic Charts: 20.0.0, 19.5.1
Errors in browser console
Uncaught TypeError: xDomain for ordinal scale should be an array of values, not a DomainRange object
at Object.mergeXDomain (x_domain.js:47)
at Object.computeSeriesDomains (utils.js:134)
at eval (compute_series_domains.js:14)
at resultFuncWithRecomputations (index.js:77)
at eval (index.js:60)
at eval (index.js:29)
at eval (index.js:68)
at eval (index.js:29)
at selector (index.js:105)
at eval (index.js:66)
at eval (index.js:29)
at selector (index.js:105)
at eval (index.js:66)
at eval (index.js:29)
at Object.selector [as getLegendItemsLabelsSelector] (index.js:105)
at XYAxisChartState.getLegendItemsLabels (chart_state.js:55)
at exports.getLegendItemsLabelsSelector (get_legend_items_labels.js:5)
at eval (index.js:66)
at eval (index.js:29)
at selector (index.js:105)
at eval (index.js:66)
at eval (index.js:29)
at selector (index.js:105)
at eval (index.js:66)
at eval (index.js:29)
at selector (index.js:105)
at eval (index.js:66)
at eval (index.js:29)
at selector (index.js:105)
at eval (index.js:66)
at eval (index.js:29)
at selector (index.js:105)
at eval (index.js:66)
at eval (index.js:29)
at selector (index.js:105)
at XYAxisChartState.eval [as onElementOverCaller] (on_element_over_caller.js:56)
at XYAxisChartState.eventCallbacks (chart_state.js:85)
at eval (chart.js:106)
at Object.dispatch (redux.js:144)
at Object.e [as dispatch] (<anonymous>:1:40553)
at dispatch (<anonymous>:1:28545)
at Object.eval [as updateParentDimensions] (redux.js:297)
at eval (chart_resizer.js:42)
The text was updated successfully, but these errors were encountered:
Describe the bug
With the newly added x scale ordinal fallback enhancement (#678), the
xDomain
prop should be ignored as theDomainRange
object does not apply to ordinal scales.To Reproduce
https://codesandbox.io/s/goofy-https-1vy9c?file=/src/App.tsx
Expected behaviour
A warning should be thrown that the custom domain is not valid. But no error should be thrown.
Version (please complete the following information):
20.0.0
,19.5.1
Errors in browser console
The text was updated successfully, but these errors were encountered: