From a0388eff4cc38d69872190675bb17d49af841a93 Mon Sep 17 00:00:00 2001 From: etimberg Date: Sat, 15 Oct 2016 17:04:22 -0400 Subject: [PATCH] Add new properties for the caretX,caretY point of a tooltip. Useful for custom tooltips. The custom tooltip sample was updated as well to use the new properties. --- docs/09-Advanced.md | 2 + samples/line-customTooltips.html | 79 +++++++++++++++++--------------- src/core/core.tooltip.js | 12 ++++- 3 files changed, 54 insertions(+), 39 deletions(-) diff --git a/docs/09-Advanced.md b/docs/09-Advanced.md index 5ea957179a6..db346bc94d2 100644 --- a/docs/09-Advanced.md +++ b/docs/09-Advanced.md @@ -173,6 +173,8 @@ var myPieChart = new Chart(ctx, { // tooltip.text // tooltip.x // tooltip.y + // tooltip.caretX + // tooltip.caretY // etc... } } diff --git a/samples/line-customTooltips.html b/samples/line-customTooltips.html index 6695cb66346..9272caff8b6 100644 --- a/samples/line-customTooltips.html +++ b/samples/line-customTooltips.html @@ -4,7 +4,6 @@ Line Chart with Custom Tooltips -