shouldDrawValues method

Returns true if set draws values or icons and has at most BarLineScatterCandleBubbleDataProvider.maxVisibleCount entries inside the visible x range of chart, above which the labels would sit too close together to read.

Implementation

@protected
bool shouldDrawValues(
  BarLineScatterCandleBubbleDataProvider chart,
  IBarLineScatterCandleBubbleDataSet set,
) {
  return shouldDrawValuesOf(set) &&
      visibleEntryCount(chart, set) <= chart.maxVisibleCount;
}