setCustom method
Sets a custom legend's entries array.
- A null label will start a group. This will disable the feature that automatically calculates the legend entries from the datasets. Call resetCustom() to re-enable automatic calculation (and then notifyDataSetChanged() is needed to auto-calculate the legend again)
Implementation
void setCustom(List<LegendEntry> entries) {
_entries = entries;
_isLegendCustom = true;
}