Min y-axis not working for jQPlotSeries stacked series
From semantic-mediawiki.org
Fragment of a discussion from Extension talk:Semantic Result Formats
Below is what I found fixes the issue I was having.
Starting at line 93 in SemanticResultFormats/formats/jqplot/resources/ext.srf.jqplot.chart.bar.js
// Number axis var numberaxis = { ticks: data.parameters.stackseries || data.parameters.autoscale ? [] : data.ticks, // use autoscale for staked series label: data.parameters.numbersaxislabel, labelRenderer: $.jqplot.CanvasAxisLabelRenderer, - autoscale: data.parameters.stackseries || data.parameters.autoscale ? true : false, + autoscale: data.parameters.autoscale ? true : false, //do not use autoscale for stacked series - padMax: 0, + padMax: 0.5, // make some room at the top padMin: 0, + min: 0, // force min = 0 (should be changed to accept min param) tickOptions: { angle: data.parameters.direction === 'horizontal' ? 0 : -40, formatString: !data.parameters.valueformat ? '%d' : data.parameters.valueformat // %d default } };
Well done, now tracked at [0].
[0] https://github.com/SemanticMediaWiki/SemanticResultFormats/issues/96