DerekNMartin opened a new issue, #20338: URL: https://github.com/apache/echarts/issues/20338
### Version 5.5.1 ### Link to Minimal Reproduction https://codepen.io/derekmartian/pen/vYqPbJN ### Steps to Reproduce Chart Option: ``` { tooltip: {}, xAxis: {}, yAxis: {}, series: [ { type: 'scatter', name: 'ECR', data: data, dimensions: dimensions, encode: { x: 2, y: 1 } }, { type: 'custom', name: 'error', data: data, renderItem: renderItem, dimensions: dimensions, encode: { x: [1, 2, 3], }, } ] } ``` ### Current Behavior Since labels and `api.style()` are deprecated for custom series types, the only way I can see to add a label is to include a text type within the `renderItem` group. However, when trying to access `api.value(0)`, it returns a number, which is `NaN`, because it's supposed to be a string. Dimensions includes a defined ordinal type ``` const dimensions = [{name: 'name', type: 'ordinal'}, 'expert rank', 'rank avg', 'rank std']; ``` The data is of the format: `['Josh Allen', 1, '1.30', '0.64', 4]` When using `api.value(0)` within a custom series type, it returns `NaN`  ### Expected Behavior `api.value(0)` should return the correct value if the dimension's type is specified ### Environment ```markdown - OS: macOS Monterey - Browser: Version 127.0.6533.120 - Framework: Vue@3 ``` ### Any additional comments? I tried this on version `5.1.2`, which is the version prior to `5.2` and `api.value(0)` returns the correct value -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
