Skip to content
This repository was archived by the owner on Jun 4, 2024. It is now read-only.

Column is automatically merged when merge_duplicate_headers = true if the names are the same and the data is different #490

Open
alinastarkov opened this issue Jul 4, 2019 · 1 comment
Labels
dash-type-bug Something isn't working as intended

Comments

@alinastarkov
Copy link
Contributor

bug1

and the data in demo/data.ts is:

...
 {
        id: 'ccc',
        name: ['City', 'Canada', 'Toronto'],
        type: ColumnType.Numeric,
        data: gendata(i => i, rows)
    },

    {
        id: 'ddd',
        name: ['City', 'Canada', 'Toronto'],
        type: ColumnType.Numeric,
        data: gendata(i => i * 100, rows)
    },
...
@alinastarkov alinastarkov added the dash-type-bug Something isn't working as intended label Jul 4, 2019
@alinastarkov alinastarkov changed the title Column is automatically merged when merge_duplicate_headers = true even if the names are the same even if the data is different Column is automatically merged when merge_duplicate_headers = true if the names are the same and the data is different Jul 5, 2019
@alexcjohnson
Copy link
Collaborator

Nice find @alinastarkov!

Is there a use case for two columns with entirely merged headers? To simplify that, is there a use case for merging single-row headers? I guess I can imagine cases I might want to do it - say I have 2 columns for each year, and it's clear from the values in each column what they mean, like the first column is sales volume and the second is percent change from the previous year. It would preclude single-column operations like sorting, but that doesn't seem like a good reason to forbid it. This bug might be though, if we can't figure out a workaround.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dash-type-bug Something isn't working as intended
Projects
None yet
Development

No branches or pull requests

2 participants