You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks in advance, please let me know if you need more data...
The version of d3plus from the comments at the top is " d3plus v2.0.0-alpha.25 "
I am using d3plus.Barchart...and changing the Xaxis label orientation by 90 degrees
.config ({ xConfig: { title: "" , labelRotation: 1 } })
This works in all cases except it gives an error when the number of labels is 2 or 3. So it works when the number of labels is 1, 4, 5, 6, 7 etc.
The error is at "d3plus.full.js:29525:72"
The error is " textData[(i + diff))] is undefined"
The line of code being executed in the function below is " var prevPosition =......."
The function being called is...
function calculateSpace(datum) {
var diff = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
var i = datum.i,
position = datum.position;
if (this._scale === "band") {
return this._d3Scale.bandwidth();
} else {
var prevPosition = i - diff < 0 ? textData.length === 1 || !this._range ? rangeOuter[0] : (position - textData[i + diff].position) / 2 - position : position - (position - textData[i - diff].position) / 2;
var prevSpace = Math.abs(position - prevPosition);
var nextPosition = i + diff > textData.length - 1 ? textData.length === 1 || !this._range ? rangeOuter[1] : (position - textData[i - diff].position) / 2 - position : position - (position - textData[i + diff].position) / 2;
var nextSpace = Math.abs(position - nextPosition);
return min([prevSpace, nextSpace]) * 2;
}
}
The text was updated successfully, but these errors were encountered:
Thanks in advance, please let me know if you need more data...
The version of d3plus from the comments at the top is " d3plus v2.0.0-alpha.25 "
I am using d3plus.Barchart...and changing the Xaxis label orientation by 90 degrees
.config ({ xConfig: { title: "" , labelRotation: 1 } })
This works in all cases except it gives an error when the number of labels is 2 or 3. So it works when the number of labels is 1, 4, 5, 6, 7 etc.
The error is at "d3plus.full.js:29525:72"
The error is " textData[(i + diff))] is undefined"
The line of code being executed in the function below is " var prevPosition =......."
The function being called is...
function calculateSpace(datum) {
var diff = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
var i = datum.i,
position = datum.position;
The text was updated successfully, but these errors were encountered: