Skip to content

BUG: Custom tooltip not rendering background #5980

Description

@musmuris

When implementing a custom tootltip, the background is only under the title and not the title and the body.

Example at https://codepen.io/anon/pen/zyMRdG

image

Expected that the background should be covering the whole tootip

The options section is as follows:

options: {
  tooltips: {  		
    custom : t => {
      if(t.labelTextColors) {
        t.titleFontColor = t.labelTextColors[0];         
      }    		      
      t.title = ['Hello'];
      t.body  = [{ lines: ['foo']}];
    }
  }
}

My reason for a custom one is to override the title color depending on underlying data. A workaround is just to set the color like above but then implement the title and label callbacks, but it should be possible to just update the custom tooltip model in one go I thought?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions