vitaliisusyak commented on issue #13415:
URL: https://github.com/apache/echarts/issues/13415#issuecomment-2943623108
For those who are searching for a solution, I've found a workaround.
```
position: (mousePosition: [number, number], params: CallbackDataParams[]) =>
{
const xAxisValue = (params[0].value as [number, number])[0];
const x = this.echrtsInstance.convertToPixel({ xAxisIndex: 0 },
xAxisValue);
return [x + 10, mousePosition[1]];
}
```
echrtsInstance.convertToPixel will parse a value from the chart to pixels
and that can be used as x for tooltip position.
--
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]