Skip to content

time scale tooltips #1466

Description

@firien

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions