hihibaibai commented on issue #21340: URL: https://github.com/apache/echarts/issues/21340#issuecomment-3488797989
> > I read options documentation, no explaination about key-value set. > > Yes, but [api.value](https://echarts.apache.org/en/option.html#series-custom.renderItem.arguments.api.value) depends on _dimension_, which is applicable only to array-type data. There is no dimension, or guaranteed order, in key-value (object) type of data. In your example then: `[new Date('2025-11-04'), '50']` has two dimensions `{x: new Date('2025-11-04').getTime(), y: '50'}` has none, so it cannot be used in _api.value()_. I couldn't use api.value() to get data. But I still need the values to do custom rendering in _renderItem(params, api)_ function. Which function should I use when I use key-value dataset? -- 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]
