I have the following command to create visualization on choropleth map which works but I get only the categorical color and volume as legend (without header), how can I add more column full country name that I retrieve from geo_attr_countried to the legend and if possible with header of the columns?
index=main "registered successfully"
| rex "SFTP_OP_(?<country>(\w{2}))"
| stats count by country
| rename country AS iso2
| lookup geo_attr_countries iso2 OUTPUT country
| stats sum by country
| rename sum(count) AS Volume
| geom geo_countries featureIdField="country"
Basically, if possible, I am trying to get a legend something on the right bottom corner like the one below
Color Categorical | Country Name | Volume |
Color | China | 124 |
Color | Brazil | 25 |