From 1793f12a1f5eb71edad07a32c358905bda0db731 Mon Sep 17 00:00:00 2001 From: Ivan Mikheykin Date: Sat, 10 Oct 2020 12:56:42 +0300 Subject: [PATCH] fix: 'name' in tooltip for opacity and gradient modes --- dist/tooltip.js | 4 ++-- dist/tooltip.js.map | 2 +- src/tooltip.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/dist/tooltip.js b/dist/tooltip.js index 24ef6b8..7f4d95b 100644 --- a/dist/tooltip.js +++ b/dist/tooltip.js @@ -186,9 +186,9 @@ System.register(["d3", "jquery", "lodash"], function (_export, _context) { }), ""), "\n \n "); } else { if (values.length === 1) { - tooltipHtml += "
\n name: ".concat(name, "
\n value: ").concat(value, "
\n
"); + tooltipHtml += "
\n name: ".concat(yLabel, "
\n value: ").concat(value, "
\n
"); } else { - tooltipHtml += "
\n name: ".concat(name, "
\n values:\n