JetBrains / JetBrains/lets-plot

geom_bar with stat='identity' does not stack values when only one group present

Open
#1,398 4 comments 0 reactions 1 assignee Claimed by @ASmirnov-HORIS View on GitHub
Dominant language
Kotlin
Stars
1.8k
Forks
60
PR merge metrics
No merged PRs in 30d

Description

```python
d = {
'name': ['foo', 'foo', 'bar', 'bar'],
'g': ['A', 'B', 'A', 'B'],
'value': [80, 90, 15, 35]
}

ggplot(d) + geom_bar(aes(x='name', y='value', group='name'), stat='identity')
```
Actual result:
Image

When values are assigned to their own group, everything works as expected (note the mapping `group='g'`):

Image

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.