setLabelCount2 method

void setLabelCount2(
  1. int count,
  2. bool force
)

sets the number of label entries for the y-axis max = 25, min = 2, default: 6, be aware that this number is not fixed (if force == false) and can only be approximated.

@param count the number of y-axis labels that should be displayed @param force if enabled, the set label count will be forced, meaning that the exact specified count of labels will be drawn and evenly distributed alongside the axis - this might cause labels to have uneven values

Implementation

void setLabelCount2(int count, bool force) {
  setLabelCount1(count);
  _forceLabels = force;
}