bluejiaxie opened a new issue #9962: series custom change the string value to NaN via api.value when the first string is number like '0'. URL: https://github.com/apache/incubator-echarts/issues/9962 ### Version 4.1.0-release ### Steps to reproduce Data: ... "schema": [ { "name": "DATE", "type": "timestamp" }, { "name": "AirQualityLevel", "type": "string", }, ...], "data": [ [ "2015-01-01 08:00:00", "0", ... ], [ "2015-01-02 12:00:00", "Slightly polluted", ... ], ... ] ... ************** var option = { ..., series: [{ type: 'custom', renderItem: function (params, api) { ###Here use api.value ### If the first string is number like "0", api.value type will change to number. ### if the first string is string type, api.value type still is string. }, data: data }] } ### What is expected? expected: The type should be the same type of the set one in schema. ### What is actually happening? Above <!-- This issue is generated by echarts-issue-helper. DO NOT REMOVE --> <!-- This issue is in English. DO NOT REMOVE -->
---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
