Issue #3251123 by nikathone, andileco: Create interface for selecting colors...
Issue #3251123 by nikathone, andileco: Create interface for selecting colors when chart views are grouped or in other tricky situations, such as pie charts
'#description'=>newTranslatableMarkup('When grouping by an entity reference field, you can set the colors by entities or by a <a href="@href">color field</a> attached to the entity type bundle in question.',[
$element['fields']['entity_grouping']['color_selection_method']['#options']['by_field_on_referenced_entity']=newTranslatableMarkup('Set color based on a color field on entity reference');
// @todo remove if no plan to support this use case.
// $element['fields']['entity_grouping']['color_selection_method']['#options']['by_field_on_current_entity'] = new TranslatableMarkup('Set color based on a color field on the current entity');
$empty_entity_colors=newTranslatableMarkup('No grouping by an entity reference field was detected or the selected field didn\'t have any entity or color field attached.');
$empty_entity_field_name=newTranslatableMarkup('You can\'t set the color using the selected method because the referenced entity doesn\'t have any color field type configured.');