getGroupWidth method

double getGroupWidth(
  1. double groupSpace,
  2. double barSpace
)

In case of grouped bars, this method returns the space an individual group of bar needs on the x-axis.

@param groupSpace @param barSpace @return

Implementation

double getGroupWidth(double groupSpace, double barSpace) {
  return dataSets.length * (_barWidth + barSpace) + groupSpace;
}