JetBrains / lets-plot

Multiplatform plotting library based on the Grammar of Graphics
https://lets-plot.org
MIT License
1.55k stars 49 forks source link

waterfall_plot: faceting doesn't work without a measure mapping #1152

Closed ASmirnov-HORIS closed 3 weeks ago

ASmirnov-HORIS commented 1 month ago

Example:

data = {
    'cat': ['A', 'B', 'C', 'A', 'B', 'C'],
    'val': [2, 3, -1, 1, -2, 4],
    'g': ['one', 'one', 'one', 'two', 'two', 'two'],
}
waterfall_plot(data, 'cat', 'val', group='g') + facet_grid(x='g')

throws Internal error: NoSuchElementException : Key [] is missing in the map.

And

waterfall_plot(data, 'cat', 'val', group='g') + facet_wrap(facets='g')

shows axis length: NaN instead of plot.