Skip to content

Commit

Permalink
fixes #3340
Browse files Browse the repository at this point in the history
Set by default the maxValue of the chart to 0.0 when this one is null or negative.
  • Loading branch information
ptaillandier committed Apr 11, 2022
1 parent c4964ae commit 20ca04a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -102,7 +102,7 @@ protected AbstractRenderer createRenderer(final IScope scope, final String serie
*/
protected void resetRenderer(final IScope scope, final String serieid) {
final SpiderWebPlot plot = (SpiderWebPlot) this.chart.getPlot();

if (plot.getMaxValue() <= 0.0) plot.setMaxValue(1.0);
final ChartDataSeries myserie = this.getChartdataset().getDataSeries(scope, serieid);
if (!IdPosition.containsKey(serieid)) {
// DEBUG.LOG("pb!!!");
Expand Down

0 comments on commit 20ca04a

Please sign in to comment.