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

More control over hoverformat when supplying ticktext/tickvals #320

Closed
cpsievert opened this issue Mar 8, 2016 · 3 comments
Closed

More control over hoverformat when supplying ticktext/tickvals #320

cpsievert opened this issue Mar 8, 2016 · 3 comments

Comments

@cpsievert
Copy link

As I mention in plotly/plotly.R#480, for our ggplot2 converter, a huge number of issues are resolved by using linear axes and supplying ticktext/tickvals for all data types. Here's a mini example of how I implement date/datetime axes -- http://codepen.io/cpsievert/pen/mPVGEg

It'd be awesome if I had more control over the hoverformat. Would it be easy/possible to add the ability to convert types just for hoverformatting purposes? Maybe this could be a new property, say layout.axisid.hoverType = "-" | "linear" | "log" | "date" | "category"?

@etpinard
Copy link
Contributor

etpinard commented Mar 8, 2016

Why not use hoverinfo in the traces?

I guess, that would imply setting a custom hoverinfo for all traces on a given axis.

@cpsievert
Copy link
Author

Yea, I'll probably end up using hovermode="text" and creating custom text for each trace. Not ideal since I have to send more data, and lose the axis hovertext, but I can make it work.

@etpinard
Copy link
Contributor

We will be resolved using a templating mini-language in trace text fields.

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

No branches or pull requests

2 participants