JetBrains / JetBrains/lets-plot

Tooltip position `top_right`/`top_left` does not consider `panel_inset` parameter

Open
#1,043 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
1.8k
Forks
60
PR merge metrics
No merged PRs in 30d

Description

Tooltip position `top_right`/`top_left` does not consider `panel_inset` parameter.
Example:

```
data = {
'subj': ['progr', 'math', 'physic', 'chemistry', 'biology'],
'subj_id': [1, 2, 3, 4, 5],
'student': ['John'] * 5,
'score': [19, 15, 18, 12, 9]
}

p = ggplot(data) \
+ geom_path(aes(x='subj', y='score', color='student'), flat=True) \
+ geom_point(aes(x='subj', y='score', color='student'), tooltips=layer_tooltips().line('^x').anchor('top_right') )

p + coord_polar() + theme(panel_inset=[40,40]) + flavor_solarized_light()
```

![top_right_position](https://github.com/JetBrains/lets-plot/assets/73931962/44a280f6-3746-4e04-add1-f27aa79521b8)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.