Skip to content

Deleting groupby names via legend doesn't update correctly #2576

Closed
@alexcjohnson

Description

@alexcjohnson
  • Create a legend with groupby items, in editable mode
  • Delete one of the default labels -> after blur, it stays empty (the default label should come back).
  • Do something else that redraws the graph (including typing in another label) -> now the default label comes back

see https://codepen.io/alexcjohnson/pen/erNPjB?editors=0010 - based on the mock at

var mock = {
data: [{
x: [1, 2, 3],
y: [5, 4, 3]
}, {
x: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14],
y: [1, 3, 2, 4, 3, 5, 4, 6, 5, 7, 6, 8, 7, 9],
transforms: [{
type: 'groupby',
groups: [1, 2, 1, 2, 3, 4, 3, 4, 5, 6, 5, 6, 7, 8]
}]
}],
config: {editable: true}
};

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugsomething broken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions