-
Notifications
You must be signed in to change notification settings - Fork 133
XDomain should fallback to ordinal type #678
Copy link
Copy link
Closed
elastic/kibana
#69126Labels
:axisAxis related issueAxis related issue:vislibRelating to vislib replacementRelating to vislib replacement:xyBar/Line/Area chart relatedBar/Line/Area chart relatedbugSomething isn't workingSomething isn't workingreleasedIssue released publiclyIssue released publicly
Metadata
Metadata
Assignees
Labels
:axisAxis related issueAxis related issue:vislibRelating to vislib replacementRelating to vislib replacement:xyBar/Line/Area chart relatedBar/Line/Area chart relatedbugSomething isn't workingSomething isn't workingreleasedIssue released publiclyIssue released publicly
Type
Fields
Give feedbackNo fields configured for issues without a type.
Describe the bug
Using a
LineSerieswhen defining anXScaleTypeaslinearor undefined, elastic charts will try to use linear and useordinalas a fallback if needed. This should be the same logic withAreaSeries.Version (please complete the following information):
latestAdditional context
Related to code below...
elastic-charts/src/chart_types/xy_chart/domains/x_domain.ts
Lines 68 to 72 in a79e899
Errors in browser console
Uncaught Error: Each X value in a linear x scale needs be be a number. String or objects are not allowed at Object.mergeXDomain (x_domain.js:51) at Object.computeSeriesDomains (utils.js:136) at compute_series_domains.js:14 at resultFuncWithRecomputations (index.js:77) at index.js:70 at index.js:30 at index.js:84 at index.js:30 at selector (index.js:105) at index.js:80