me.min = isFinite(min) ? Math.max(0, min) : null;
me.max = isFinite(max) ? Math.max(0, max) : null;
+ if (me.options.beginAtZero) {
+ me._zero = true;
+ }
+
me.handleTickRangeOptions();
}
me._startValue = log10(start);
me._valueRange = log10(me.max) - log10(start);
- me._zero = me.options.beginAtZero;
}
getPixelForValue(value) {
}
});
- expect(chart.scales.y.min).toBe(1);
+ expect(chart.scales.y.min).toBe(0.1);
expect(chart.scales.y.max).toBe(200);
});
}
});
- expect(chart.scales.y.min).toBe(1);
+ expect(chart.scales.y.min).toBe(0.1);
expect(chart.scales.y.max).toBe(200);
});
type: 'bar',
data: {
datasets: [{
- data: [10, 5, 1, 25, 78]
+ data: [10, 5, 2, 25, 78]
}],
labels: []
},
type: 'bar',
data: {
datasets: [{
- data: [10, 5, 1, 25, 78]
+ data: [10, 5, 2, 25, 78]
}],
labels: []
},