kenarp opened a new issue, #19287: URL: https://github.com/apache/echarts/issues/19287
### What problem does this feature solve? Tooltip triggered by a data item can set its own border-color based on that data by default, but tooltip triggered by the AxisPointer doesn't have this feature, which breaks the uniformity of design. - With borderColor:  - Without borderColor:  ### What does the proposed API look like? Provide an attribute to set the tooltip style manully, which accepts a callback function as value, just like the implementation of tooltip.position and tooltip.formatter ``` js const option={ ...otherOptions, tooltip:{ trigger: "axis", position: tooltipPositionCallback, formatter: tooltipFormatterCallback, itemStyle: tooltipStyleCallback } function tooltipStyleCallback(params){ const myColor = myColorPalette[params.dataIndex] return {borderColor:myrColor, borderWidth:"3px"} } ``` -- 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]
