Last modified: 2012-06-05 14:15:31 UTC
It beats me why that hasn't been discovered before, and since I needed to fixed that here are two small changes to jqPlotBar/jqPlotPie. It is only needed for those using class SMWAggregatablePrinter. I would provide a patch but gerrit git still causes more trouble ... anyway for ## SRF_jqplotBar.php - $dataObject['series'] = $data; +// Filter min values +foreach ( $data as $key => $value ) { + if ( $value <= $this->params['min'] ) continue; + $dataObject['series'][$key] = $value; + } ## SRF_jqplotPie.php -foreach ( $data as $name => $value ) { - $json[] = array( $name , $value ); -} +// Filter min values +foreach ( $data as $name => $value ) { + if ( $value <= $this->params['min'] ) continue; + $json[] = array( $name , $value ); +}
Gerrit change #10259 Thanks for the patch! :) In the future, please try to follow this workflow: https://www.mediawiki.org/wiki/Git/Workflow#How_to_submit_a_patch :)