Last modified: 2012-09-15 06:41:02 UTC
Currently a jqplotbar diagram will not be shown unless you define an explicit value for distributionlimit, which shouldn't be the case. Some investigation reveals that the problem is in SMWAggregatablePrinter::applyDistributionParams(), in the following code block: if ( $this->params['distributionlimit'] !== false ) { $data = array_slice( $data, 0, $this->params['distributionlimit'], true ); } The default value for distributionlimit is 0, which will trigger the if-condition and cause data to be sliced into nothing. A quick fix will be to either change the comparison operator to != (i.e. allow type juggeling) or compare to 0 instead of false.
Patch sent to gerrit: https://gerrit.wikimedia.org/r/14282
https://gerrit.wikimedia.org/r/#/c/14284/