Option for custom data accessors
See original GitHub issueIs your feature request related to a problem? Please describe.
nivo currently expects data
to be in a certain format, for example {x, y}
for line charts. Sometimes, data is not directly available in that format and one would need to perform expensive transformations that could be avoided when nivo could be told about how it should access the data.
Describe the solution you’d like
A new option dataAccessors
taking key/value pairs. For example for data in format {time, value}
:
dataAccessors: {
x: "time",
y: "value",
}
Describe alternatives you’ve considered The only other option is to transform data which can be a expensive operation that I’d like to avoid.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:9
- Comments:14
Top Results From Across the Web
Mutators & Accessors - Tabulator
Mutators (setters) and Accessors (getters) allow you to manipulate the table data as it enters and leaves your Tabulator, allowing you to convert...
Read more >Using Lombok's @Accessors Annotation - Baeldung
In this tutorial, we'll learn about Project Lombok's @Accessors annotation and its support for fluent, chained, and custom accessors.
Read more >How does a custom accessor method implementation in Core ...
If you go into the Data Model editor, select and entity attribute and then choose "Copy Method Implementation to the Clipboard".
Read more >Extending pandas — pandas 1.5.2 documentation
pandas offers a few options for extending pandas. Registering custom accessors#. Libraries can use the decorators pandas.api.extensions.
Read more >Properties - C# Programming Guide - Microsoft Learn
The get accessor returns the value of the private field, and the set accessor may perform some data validation before assigning a value...
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
bump
[{ id:'Quote', data: [{timeSerie: '2021-01-12', value:22},{timeSerie: '2021-01-13', value:24},{timeSerie: '2021-01-14', value:25}] }]
@wyze you mean something like this?