Loading

Salesforce Dashboard: Legend Colors and Sort Order Are Inconsistent Across Components

Udgivelsesdato: May 5, 2026
Beskrivelse

In Salesforce Lightning Dashboards, chart legend ordering is not guaranteed when the grouping field is a picklist or formula field. The following scenarios illustrate common manifestations of this behavior."

 

  • The order of the legend on stacked bar chart is different from classic in lightning and does not match that of the source report.This happens even though the dashboard component is set to "Use chart settings from report"
  • Legend in dashboard chart is sorted incorrectly when the picklist value is translated to a non-English language.
Løsning

This is an expected behavior as Salesforce doesn't guarantee sort order in the chart legend. Lightning Dashboards are not designed to respect field type ordering like picklists and formula. The behavior varies in different languages when these fields are translated. This behavior occurs because Lightning Dashboards do not enforce picklist metadata ordering when rendering chart legends. The rendering engine sorts legend values at display time based on data, not field configuration.

You can upvote the feature request here.

Vidensartikelnummer

000394299

 
Indlæser
Salesforce Help | Article