gridMaxPxX property
The maximum coordinate of the grid, in pixel. The grid starts at (gridMinPxX,gridMinPxY) and ends in (gridMaxPxX, gridMaxPxY).
Implementation
@protected
double get gridMaxPxX {
if (maxLabelWidthY + max(maxLabelWidthX, barWidth)*keys.length > elem.clientWidth) {
// SVG is overflowing
return maxLabelWidthY + max(maxLabelWidthX, barWidth)*keys.length;
}
if (maxLabelWidthX > barWidth) {
return (elem.clientWidth - maxLabelWidthX/2).toDouble();
}
return elem.clientWidth.toDouble();
}