From e3791244b5b46e2ed972feecdef06c68e1647b67 Mon Sep 17 00:00:00 2001 From: Madhura Jayaratne Date: Wed, 25 Dec 2013 18:44:13 +0530 Subject: [PATCH] bug #4198 Hovering over pie chart gives fatal JS error Signed-off-by: Madhura Jayaratne --- ChangeLog | 1 + js/chart.js | 7 ++++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index e36d50557e..80a8031b64 100644 --- a/ChangeLog +++ b/ChangeLog @@ -3,6 +3,7 @@ phpMyAdmin - ChangeLog 4.1.3.0 (not yet released) - bug #3938 PDFDefaultPageSize doc and easy configurability +- bug #4198 Hovering over pie chart gives fatal JS error 4.1.2.0 (2013-12-23) - bug #4178 Quick edit for BIT type does not work diff --git a/js/chart.js b/js/chart.js index dcd08cc2ae..fb0d9af584 100644 --- a/js/chart.js +++ b/js/chart.js @@ -520,7 +520,12 @@ JQPlotPieChart.prototype = new JQPlotChart(); JQPlotPieChart.prototype.constructor = JQPlotPieChart; JQPlotPieChart.prototype.populateOptions = function (dataTable, options) { - var optional = {}; + var optional = { + highlighter: { + formatString:'%s, %d', + useAxesFormatters: false + } + }; var compulsory = { seriesDefaults : { renderer : $.jqplot.PieRenderer