sirAbramstone opened a new issue, #18253: URL: https://github.com/apache/echarts/issues/18253
### What problem does this feature solve? In our low-code platform we allow users to set relative length units for any component of a chart (Legend, Axis, etc) - mostly for options that set font size. In previous major version of echarts we've been reached this with some tricky hacks with DOM, because, as we know, echarts allows us to use only numbers. But not so long ago we upgraded to version 5 and recently I noticed that now we can use relative units without any hacks as-is (btw, you didn't mention that in the official documentation). And when I found that we can do that in any component, except Tooltip. Tooltip just gets our relative units and concat them with "px" string. And we've been compelled to return to old tricks with DOM. ### What does the proposed API look like? Can we expect Tooltip to support relative length units? AFAIC all that need to do - tests given value and concat it with "px", like you do before, if it is number, and do nothing if it is string with some units. -- 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]
