Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change display values #144

Open
SirCameron opened this issue May 20, 2019 · 3 comments
Open

Change display values #144

SirCameron opened this issue May 20, 2019 · 3 comments

Comments

@SirCameron
Copy link

@SirCameron SirCameron commented May 20, 2019

I have 2 plots displayed on one graph and I changed the values of one of the plots to ensure it was within the same y axis range as the other plot..
Is it possible to show different values on the value tooltips?
I would just need to receive the value at the current position and run a calculation on it to get the original value..

@nicolaskruchten
Copy link
Member

@nicolaskruchten nicolaskruchten commented May 20, 2019

Yep, check out the “hovertemplate” attribute

@SirCameron
Copy link
Author

@SirCameron SirCameron commented May 20, 2019

Thanks. But, it looks like this is just a simple string template. No functionality to specify a function that returns augmented data.

@nicolaskruchten
Copy link
Member

@nicolaskruchten nicolaskruchten commented May 20, 2019

That’s right: Plotly.js figures are totally declarative and therefore accept no functions. That said, you can store derived data in “customdata” and refer to it in “hovertemplate”

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.