GitHub user saha23412 created a discussion: Implement the ability to 
concatenate X-axis values

I want to implement the ability to Concatenate values in the name of labels 
that will be displayed on the X-Axis, how to do this correctly, or perhaps 
there are already internal tools with which this can be implemented
For example: 
I have an array of X-axis values.
`
[
    "COUNTRY",
    "STATE",
    "CITY"
]
`
<img width="300" height="179" alt="image" 
src="https://github.com/user-attachments/assets/babbbcdc-1e4b-4274-8316-6238bafdbe44";
 />
Based on this, I receive data:
`
[
    {
        "COUNTRY": "USA",
        "STATE": "IL",
        "CITY": "Chicago",
        "count": 3426
    },
    {
        "COUNTRY": "USA",
        "STATE": "GA",
        "CITY": "Atlanta",
        "count": 3202
    },
    {
        "COUNTRY": "USA",
        "STATE": "TX",
        "CITY": "Dallas-Fort Worth",
        "count": 2766
    },
    {
        "COUNTRY": "USA",
        "STATE": "CO",
        "CITY": "Denver",
        "count": 2197
    },
    {
        "COUNTRY": "USA",
        "STATE": "TX",
        "CITY": "Houston",
        "count": 2174
    },
    {
        "COUNTRY": "USA",
        "STATE": "CA",
        "CITY": "Los Angeles",
        "count": 2105
    },
    {
        "COUNTRY": "USA",
        "STATE": "NY",
        "CITY": "New York",
        "count": 1939
    },
    {
        "COUNTRY": "USA",
        "STATE": "AZ",
        "CITY": "Phoenix",
        "count": 1617
    },
    {
        "COUNTRY": "USA",
        "STATE": "CA",
        "CITY": "San Francisco",
        "count": 1604
    },
    {
        "COUNTRY": "USA",
        "STATE": "NV",
        "CITY": "Las Vegas",
        "count": 1318
    }
]
`
How do I concatenate column values, the name of these columns is stored in the 
columns array? 
The name should be written as "USA NV Las Vegas" and this name should be 
displayed on the x axis.


GitHub link: https://github.com/apache/superset/discussions/38097

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: 
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to