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.

allow to provide custom getValue() and getDelta() functions

See original GitHub issue

I have a huge data set that I embed in html as json object that follows d3-flamegraph specification. I also add several custom fields to it, such as syscall count, vmfault count, etc. I would like to have an easy way to choose what subset of data to display in a flame graph, preferably without regenerating the whole data structure (e.g. now I’ll need to traverse the whole tree to place what I want into the value field).

Describe the solution you’d like Some way to provide custom implementations of getValue() and getDelta() functions. This also will allow to make data more compact. E.g., for comparison view, I can have A and B values in the data (since I want to show them in a tooltip anyway), so I don’t need to store delta and can compute it easily in getDelta() function.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Comments:22 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
spiermarcommented, Sep 28, 2018

What is the use case for node.value other than node’s width?

Exactly when I need to know the node’s width.

0reactions
wonder-micecommented, Oct 11, 2018

Check this out: https://github.com/spiermar/d3-flame-graph/pull/120

It has some differences visible from outside though:

  • No transitionDuration / transitionEase functions. Must supply custom CSS class instead to control transitions. Don’t have setter for that yet though.
  • Tooltip doesn’t have arrows because I didn’t have tome to replicate this part of behavior and I think it’s not super important
Read more comments on GitHub >

github_iconTop Results From Across the Web

Unclear about CBonded.cpp - EDEM - Altair Community
getValue queries the existing value of the property and writes it to m_BondStatus. Typically this would be m_BondStatus[0] for a custom property ...
Read more >
ExtJs, custom TextField's getValue() function not being called ...
getValue is not being called at all when FormPanel.getForm().submit() is called on the parent FormPanel object.
Read more >
Obtain Underlying and Displayed Data in the ASP.NET Web ...
Example: Obtain a Custom Item's Underlying Data for a Clicked Visual ... getValue() + " - Details"); $popupContent = popup.content(); ...
Read more >
go-chart - Go Packages
GetValues gets a value at a given index. func (LinearRegressionSeries) GetYAxis ¶. func (lrs LinearRegressionSeries) GetYAxis() YAxisType.
Read more >
7 Ways to Refactor Java switch Statements - Developer.com
Let's suppose that we have the following simple Java enum: ... public Type getType() { return type; } public int getDelta() { return...
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