Generate a grouped bar plot

How can I create a plot with grouped values for each x axis, similar to the image shown. Currently I'm able to create a bar plot by specifying each feature as a column from a query in the visualization_settings:

visualization_settings: {
      'graph.dimensions': [x_feature],
      'graph.metrics': [feature1, feature2],
      series_settings:  ...,
      'graph.show_values': 'true',
      'graph.label_value_formatting': 'auto',
      'graph.label_value_frequency': 'fit',
    }

But what if I want to detail the column that contains different features so the plot group them?

Hope someone can help me with this and thank you!