getScale method
Implementation
List<double> getScale(double divider) {
List<double> scale = [];
final double interval = maxValue / (divider - 1);
for (double i = 0; i < divider; i++) {
scale.add((i * interval));
}
scale.removeWhere((element) => element < minValue);
return scale;
}