diff --git a/libraries/jquery/VtJqplotInterface.js b/libraries/jquery/VtJqplotInterface.js index fc3bb012dcc690006ae2c5c02efd26cef8150c3a..aeedf0cecadb6bee67fac6ee72fca90b331fc804 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,