getCalculatedMinWidth method

  1. @override
double getCalculatedMinWidth()
override

Gets the calculated minimum width of the graph, depending on minWidthOverride and of course, minWidth.

Implementation

@override
double getCalculatedMinWidth() {
  if (minWidthOverride) {
    return minWidth;
  }

  return max((getLabelCountX() * (maxLabelWidthX + 10)), minWidth);
}