This commit is contained in:
rolux 2013-04-26 12:28:26 +02:00
parent f7c531c5df
commit 47aa05b9bc

View file

@ -95,7 +95,7 @@ Ox.Chart = function(options, self) {
var value = self.options.data[key],
sort = self.options.sort.operator == '+'
? (self.subData ? self.totals[key] : value)
? (self.subData ? self.max - self.totals[key] : self.max - value);
: (self.subData ? self.max - self.totals[key] : self.max - value);
if (self.options.sort.key == 'value') {
sort = Ox.pad(value, 64) + sort;
}