title: Stacked bar chart — top X values
body: <p>I wonder if this is possible to achieve in Datadog. I have a data collected under 1 metric <code>entity.count</code> - now the data are being posted to Datadog with multiple tags, for example <code>entity.count.visits</code>, <code>entity.count.payment</code> and probably another 10 different tags.</p>
  
  <p>I'm trying to create Datadog chart in a dashboard, which would display top 5 tags of the entity counts in a stacked bar chart. I know about the option of adding more queries, but since I'm not sure what entities will be available in the future, I would like datadog to always just display dynamically the top 5 entities in the dashboard (Insted of me specifying in the queries what tag to display). This is what I currently have (and it does the job, it's just not dynamic):</p>
  
  <p><a href="https://i.stack.imgur.com/tdIah.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/tdIah.png" alt="enter image description here"></a></p>