isle-project / isle-editor

Editor for ISLE (Integrated Statistics Learning Environment) lessons.
https://isledocs.com
Other
16 stars 7 forks source link

[Bug]: bar chart -> customize colors, labels are wrong #3511

Open gweinberg opened 1 year ago

gweinberg commented 1 year ago

Description

Bar chart -> select variable -> group by = select second variable, then "customize colors" apparently controls the colors of the levels of the first (primary) variable, but in the toolbox diaglog they're wrongly labeled by the levels of the second (group-by) variable.

For instance go to https://isle.stat.cmu.edu/36-200-fall23/heartdisease_project1/ -> toolbox -> plots -> bar chart -> counts -> select "complications" (which is a 0/1 categorical variable) -> group by -> select "gender".

The default plot is as follows:

image

If you go back to the bar chart dialog and select "customize colors," it indicates the levels of the group-by variable:

image

But "customize colors" evidently controls the levels of the main variable ("complications"), as proved by trying it:

image

Expected behavior

The "customize colors" lablels should be the levels of the main variable, not of the group-by variable.

To Reproduce

see above

Version

0.76.23

Link to ISLE lesson

see above

ISLE Code

No response

What browsers are you seeing the problem on?

Firefox

What browser version?

No response

Additional context

No response