GitHub user dosubot[bot] added a comment to the discussion: Apache Superset 
6.0.0: Big Number (Legacy) chart, how to override default “No data” empty-state 
messages when embedding charts

<!-- Answer -->
The correct source path for BigNumberViz.tsx in Superset 6.0.0 is:

```
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx
```

To override this file in your Docker build, place your modified 
BigNumberViz.tsx in your build context (for example, in 
frontend_overrides/BigNumberViz.tsx), then add this COPY command before running 
npm ci and npm run build:

```dockerfile
COPY frontend_overrides/BigNumberViz.tsx 
superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx
```

Make sure this happens before the frontend build step, so your changes are 
included in the final assets. Node 20.x is required for frontend builds in 
Superset 6.0.0+—using Node 16 will fail 
[reference](https://github.com/apache/superset/blob/master/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx).


<!-- Dosu Comment Footer -->
*To reply, just mention [@dosu](https://go.dosu.dev/dosubot).*

---
<sup>How did I do? 
[Good](https://app.dosu.dev/response-feedback/346ca00a-6661-46c2-9554-072e79411690?feedback_type=great_response)
 | 
[Irrelevant](https://app.dosu.dev/response-feedback/346ca00a-6661-46c2-9554-072e79411690?feedback_type=irrelevant_answer)
 | 
[Incorrect](https://app.dosu.dev/response-feedback/346ca00a-6661-46c2-9554-072e79411690?feedback_type=incorrect_sources)
 | 
[Verbose](https://app.dosu.dev/response-feedback/346ca00a-6661-46c2-9554-072e79411690?feedback_type=too_verbose)
 | 
[Hallucination](https://app.dosu.dev/response-feedback/346ca00a-6661-46c2-9554-072e79411690?feedback_type=hallucination)
 | [Report 
🐛](https://app.dosu.dev/response-feedback/346ca00a-6661-46c2-9554-072e79411690?feedback_type=bug_report)
 | 
[Other](https://app.dosu.dev/response-feedback/346ca00a-6661-46c2-9554-072e79411690?feedback_type=other)</sup>

[![Chat with 
Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/a28d3c7e-a9d3-459e-9fb6-3a6f9ff4f357/ask?utm_source=github)&nbsp;[![Open
 in 
Cursor](https://dosu.dev/dosu-in-cursor.svg)](https://cursor.com/link/prompt?text=The%20correct%20source%20path%20for%20BigNumberViz.tsx%20in%20Superset%206.0.0%20is%3A%0A%0A%60%60%60%0Asuperset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx%0A%60%60%60%0A%0ATo%20override%20this%20file%20in%20your%20Docker%20build%2C%20place%20your%20modified%20BigNumberViz.tsx%20in%20your%20build%20context%20%28for%20example%2C%20in%20frontend_overrides/BigNumberViz.tsx%29%2C%20then%20add%20this%20COPY%20command%20before%20running%20npm%20ci%20and%20npm%20run%20build%3A%0A%0A%60%60%60dockerfile%0ACOPY%20frontend_overrides/BigNumberViz.tsx%20superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx%0A%60%60%60%0A%0AMake%20sure%20this%20happens%20before%20the%20frontend%20build%20step%2C%20so%20your%20change
 
s%20are%20included%20in%20the%20final%20assets.%20Node%2020.x%20is%20required%20for%20frontend%20builds%20in%20Superset%206.0.0%2B%E2%80%94using%20Node%2016%20will%20fail%C2%A0%5Breference%5D%28https%3A//github.com/apache/superset/blob/master/superset-frontend/plugins/plugin-chart-echarts/src/BigNumber/BigNumberViz.tsx%29.)&nbsp;[![Join
 
Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share
 on 
X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/apache/superset/issues/37129)

GitHub link: 
https://github.com/apache/superset/discussions/41053#discussioncomment-17309095

----
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