Posted 26 September 2017, 2:26 pm EST
Thanks for the reply. I know about setting the min/max. I was just wondering why the auto calculated axis min/max is not working.
I have encountered another issue with log, when the chartType is specified in series, the log on Y axis will not work for fraction number. See this fiddle: http://jsfiddle.net/cxt6p217/9/. If you remove the chartType in series, you shall see it works again. So I looked up in the code and I do located the bug: In chart.js, function _DataInfo.prototype.analyse,```
if (logy) {
if (isRotated)
this.minX = isNaN(this.minXp) ? 1 : this.minXp;
else
this.minY = isNaN(this.minYp) ? 1 : this.minYp;
}
However, [i]minYp[/i] will always be NaN when the chartType is specified in series, because of ```
var custom = series.chartType !== undefined; this._parseYVal(val, xval, custom, stackAbs, stackPos, stackNeg);
I think that custom in parseYVal very likely should be customY, or the code for calculating minYp should be changed.
Please let me know when the bug can be fixed. Thank you.