dosubot[bot] commented on issue #32879:
URL: https://github.com/apache/superset/issues/32879#issuecomment-2835380358
<!-- Answer -->
Yes, Superset provides a way to define custom display labels for columns,
which can help you achieve the transformation of underscores to spaces. You can
use the `customColumnName` control to specify a custom column name for display
purposes. This allows you to replace underscores with spaces in the display
label without altering the actual column names in the database. Here's a
relevant code snippet:
```tsx
const customColumnName: ControlFormItemSpec<'Input'> = {
controlType: 'Input',
label: t('Display column name'),
description: t('Custom column name (leave blank for default)'),
debounceDelay: 200,
};
```
By using this feature, you can store column names with underscores in your
database and configure Superset to display them with spaces, making them more
readable without manual adjustments for each column
<sup>[[1]](https://github.com/apache/superset/blob/master/superset-frontend/src/explore/components/controls/ColumnConfigControl/constants.tsx)</sup>.
<!-- Dosu Comment Footer -->
*To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
---
<sup>Help Dosu learn! Give it feedback: [Great
Response](https://app.dosu.dev/response-feedback/2af8ae4e-03d3-453b-9974-b29a9cfae85b?feedback_type=great_response)
| [Irrelevant
Answer](https://app.dosu.dev/response-feedback/2af8ae4e-03d3-453b-9974-b29a9cfae85b?feedback_type=irrelevant_answer)
| [Incorrect
Sources](https://app.dosu.dev/response-feedback/2af8ae4e-03d3-453b-9974-b29a9cfae85b?feedback_type=incorrect_sources)
| [Too
Verbose](https://app.dosu.dev/response-feedback/2af8ae4e-03d3-453b-9974-b29a9cfae85b?feedback_type=too_verbose)
|
[Hallucination](https://app.dosu.dev/response-feedback/2af8ae4e-03d3-453b-9974-b29a9cfae85b?feedback_type=hallucination)
| [Bug
Report](https://app.dosu.dev/response-feedback/2af8ae4e-03d3-453b-9974-b29a9cfae85b?feedback_type=bug_report)
|
[Other](https://app.dosu.dev/response-feedback/2af8ae4e-03d3-453b-9974-b29a9cfae85b?feedback_type=other)</sup>
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]