question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option for custom data accessors

See original GitHub issue

Is 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:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:14

github_iconTop GitHub Comments

1reaction
matobielycommented, Oct 5, 2021

bump

1reaction
matobielycommented, Jul 6, 2021

[{ 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?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found