scale method
void
scale()
Scales this object's column values managed in pointsColumns
.
This allows separation of creating this object with the original, unscaled data points, and apply scaling later on the stackable (stacked or unstacked) values.
Notes:
- Iterates this object's internal list of PointsColumn, then the contained PointsColumn.stackableValuePoints, and scales each point by applying its StackableValuePoint.scale method.
- No scaling of the internal representation stored in
_valuePointArrInRows
or_valuePointArrInColumns
.
Implementation
void scale() {
int col = 0;
for (PointsColumn column in this) {
column.allPoints().forEach((StackableValuePoint point) {
double scaledX = chartTopContainer.xTickXs[col];
point.scale(scaledX: scaledX, yLabelsCreator: chartTopContainer.yLabelsCreator);
});
col++;
}
}