From 34b848c8c3d9c125ff8069a6d631b5244303d39e Mon Sep 17 00:00:00 2001
From: prasad <prasad@vtiger.com>
Date: Thu, 1 Mar 2018 00:55:43 +0530
Subject: [PATCH] Fixes #569: Data transformed for funnel charts

---
 libraries/jquery/VtJqplotInterface.js | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/libraries/jquery/VtJqplotInterface.js b/libraries/jquery/VtJqplotInterface.js
index fc3bb012d..aeedf0cec 100644
--- a/libraries/jquery/VtJqplotInterface.js
+++ b/libraries/jquery/VtJqplotInterface.js
@@ -77,6 +77,15 @@ var vtJqPlotInterface = function() {
             labels[i] = dataInfo[i][2];
             dataInfo[i][1] = parseFloat(dataInfo[i][1]);
         }
+
+		/* Transform data friendly to Funnel renderer */
+        var tmpdataInfo = [];
+        for (var k in dataInfo) {
+            tmpdataInfo.push(Object.values(dataInfo[k]));
+        }
+        dataInfo = tmpdataInfo;
+        /* End */
+
         this.element.jqplot([dataInfo],  {
             seriesDefaults: {
                 renderer:jQuery.jqplot.FunnelRenderer,
-- 
GitLab