Skip to content
This repository was archived by the owner on Jan 13, 2022. It is now read-only.
This repository was archived by the owner on Jan 13, 2022. It is now read-only.

Wrong column labels are being used if dataKey is the same #74

@sebastienbarre

Description

@sebastienbarre

It appears that you can't have two columns with different label but the same dataKey.

          <Column
            cellRenderer={trendLine}
            dataKey="values"
            label="Trend"
            width={100}
          />
          <Column
            cellRenderer={averager}
            dataKey="values"
            label="Average"
            width={100}
          />

One of these two labels will win, and both columns will display the same header label ("Average" in my case).

The use case here is that I want to share (not duplicate) the same data (an array of values), but render it differently in each cell -- one would show the average of the cells (a number), the other a sparkline/chart of all the values over time.

I'm using 0.1.2. Thanks for that component, it looks very useful.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions