Docs: fix tooltip model doc. (#11143)

Co-authored-by: Leo Chen <liang.chen@thoughtworks.com>
This commit is contained in:
leo2436
2023-02-15 21:13:24 +08:00
committed by GitHub
parent 7f9bca6844
commit 120b72eaae

View File

@@ -377,9 +377,10 @@ The tooltip model contains parameters that can be used to render the tooltip.
// lines of text that form the footer
footer: string[],
// colors to render for each item in body[]. This is the color of the squares in the tooltip
labelColors: Color[],
// style to render for each item in body[]. This is the style of the squares in the tooltip
labelColors: TooltipLabelStyle[],
labelTextColors: Color[],
labelPointStyles: { pointStyle: PointStyle; rotation: number }[],
// 0 opacity is a hidden tooltip
opacity: number,