Skip to content
Extraits de code Groupes Projets
Valider df905ecf rédigé par benakamoorthi's avatar benakamoorthi
Parcourir les fichiers

Fixes #3295, make sure Piwik JQPlot class doesn't transform pie chart data twice.

git-svn-id: http://dev.piwik.org/svn/trunk@6705 59fd770c-687e-43c8-a1e3-f5a4ff64c105
parent 110e57b4
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -390,8 +390,10 @@ JQPlot.prototype = {
};
// pie charts have a different data format
for (var i = 0; i < this.data[0].length; i++) {
this.data[0][i] = [this.params.axes.xaxis.ticks[i], this.data[0][i]];
if (!(this.data[0][0] instanceof Array)) { // check if already in different format
for (var i = 0; i < this.data[0].length; i++) {
this.data[0][i] = [this.params.axes.xaxis.ticks[i], this.data[0][i]];
}
}
},
......@@ -1411,4 +1413,4 @@ RowEvolutionSeriesToggle.prototype.beforeReplot = function() {
$.jqplot.preInitHooks.push($.jqplot.PieLegend.init);
$.jqplot.postDrawHooks.push($.jqplot.PieLegend.postDraw);
})(jQuery);
\ No newline at end of file
})(jQuery);
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter