setGranularity method

void setGranularity(
  1. double granularity
)

Set a minimum interval for the axis when zooming in. The axis is not allowed to go below that limit. This can be used to avoid label duplicating when zooming in.

@param granularity

Implementation

void setGranularity(double granularity) {
  _granularity = granularity;
  // set this to true if it was disabled, as it makes no sense to call this method with granularity disabled
  _granularityEnabled = true;
}