dataPoints: TooltipItem[],
// Positioning
- xPadding: number,
- yPadding: number,
xAlign: string,
yAlign: string,
beforeBody: string[],
// line of text that appear after the body and before the footer
afterBody: string[],
- bodyFont: Font,
- _bodyAlign: string,
- bodySpacing: number,
// Title
// lines of text that form the title
title: string[],
- titleFont: Font,
- _titleAlign: string,
- titleSpacing: number,
- titleMarginBottom: number,
// Footer
// lines of text that form the footer
footer: string[],
- footerFont: Font,
- _footerAlign: string,
- footerSpacing: number,
- footerMarginTop: number,
-
- // Appearance
- caretSize: number,
- caretPadding: number,
- cornerRadius: number,
- backgroundColor: Color,
// colors to render for each item in body[]. This is the color of the squares in the tooltip
labelColors: Color[],
// 0 opacity is a hidden tooltip
opacity: number,
- multiKeyBackground: Color,
- displayColors: boolean,
- borderColor: Color,
- borderWidth: number
+
+ // tooltip options
+ options : Object
}
```
* `xLabel` and `yLabel` were removed. Please use `index` and `value`
* The `filter` option will now be passed additional parameters when called and should have the method signature `function(tooltipItem, index, tooltipItems, data)`
* The `custom` callback now takes a context object that has `tooltip` and `chart` properties
+* All properties of tooltip model related to the tooltip options have been moved to reside within the `options` property.
## Developer migration