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

time scale tooltips #1466

Closed
firien opened this issue Sep 18, 2015 · 3 comments
Closed

time scale tooltips #1466

firien opened this issue Sep 18, 2015 · 3 comments

Comments

@firien
Copy link

firien commented Sep 18, 2015

for v2:

can the time scale (#1459) tooltip title match the formatted scale label by default? The sample has many different label examples, but I am using actual date objects. Using the option below I could get a custom title, but it seems unintuitive, and I don't think there is a way to easily pipe the date through the tick format (in the graph image below I didn't even have a format, just set round and unit to 'month')

tooltips: {
  custom: function(a) {
    //called 50 times when chart is animating at load (with no tooltip visible)
    console.log('tooltip');
    if (a._view && a._view.title) {
      debugger;
      // i don't believe we have access to formatters from here
      a._view.title = 'formatted';
    }
  }
}

screen shot 2015-09-18 at 2 42 56 pm

thanks for all the hard work.

@tannerlinsley
Copy link
Contributor

Yes, the time scale is pretty intense under the hood, but this should/will absolutely be available. I'll implement this or fix it if it's not working as we put this through more production use cases. Check back in a bit!

@etimberg etimberg added the v2.x label Oct 23, 2015
@etimberg
Copy link
Member

I believe this should be addressed once #1542 is merged

@etimberg
Copy link
Member

etimberg commented Dec 7, 2015

Closing since #1744 was merged

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

3 participants