Home › Forums › Chart Support › What can cause axisX and axisY to be undefined? › Reply To: What can cause axisX and axisY to be undefined?
Small correction – to my previous post… another return “” is required for when the array index does not exist for a e.value.
axisX: { labelAngle: 90, labelFormatter: function (e) {
if (e.value % 1 === 0) { if (typeof xAxisValsArr[e.value] !== “undefined”) { return xAxisValsArr[e.value]; } else { return “”; } } else { return “”; } } }, axisY: { labelFormatter: function (e) { console.log(e.value); if (e.value % 1 === 0) { if (typeof yAxisValsArr[e.value] !== “undefined”) { return yAxisValsArr[e.value]; } else { return “”; } } else { return “”; } } },