Accepting function instead of dataKey
See original GitHub issueIt would be great if it were possible to pass a function that evaluates to a data points value instead of passing a dataKey
i.e.
<Line dataKey="uv" />
could be equivalent to
<Line value={ (data, index) => data[index]["uv"] } />
That would allow Recharts to make less assumptions about the passed data
s format and would enable more use cases like computing values
Issue Analytics
- State:
- Created 7 years ago
- Reactions:15
- Comments:28 (5 by maintainers)
Top Results From Across the Web
Exploring Recharts: different ways of accessing data
Passing data in dataKey helps with some level of customization to ... Accepting function instead of dataKey · Issue #383 · recharts/recharts ...
Read more >React DataKey in Charts - Stack Overflow
I would add the keys to the chart objects and use them as props inside the Chart component. Like so: const charts =...
Read more >GenerateDataKeyPair - AWS Key Management Service
GenerateDataKeyPair returns a unique data key pair for each request. The bytes in the keys are random; they are not related to the...
Read more >SPI EEPROM Interface Specification - Datakey
The instruction is neither accepted nor executed during a write ... nonvolatile cells that have the same properties and function as regular memory...
Read more >Advanced data key configuration - ThingsBoard
However, there are times when it is not suitable to read the returning text to find out if a device is active or...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@erayalakese using a function works for me
@tarrencev Thanks! We’ll think about this feature.