Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Inconsistent Rendering of Superset Dashboard in Angular Application #31694

Open
3 tasks done
natwar585 opened this issue Jan 3, 2025 · 2 comments
Open
3 tasks done
Labels

Comments

@natwar585
Copy link

Bug description

I am currently working on embedding a chart from Apache Superset into an Angular application. The chart displays correctly within Superset itself, but when I try to display it in my Angular app, it does not render as expected.

Here are some details about the issue:

The chart shows up fine when accessed directly in Superset. but i try my angular app then Some charts and tables load fine, but others fail to render

I have attached images showing the Superset dashboard and the Angular app dashboard for reference. The issue is visible in the Angular app, where certain elements do not render

Screenshots/recordings

Screenshot from 2025-01-03 14-28-37
Screenshot from 2025-01-03 12-53-18

Superset version

master / latest-dev

Python version

3.9

Node version

16

Browser

Chrome

Additional context

No response

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • I have checked Superset's logs for errors and if I found a relevant Python stacktrace, I included it here as text in the "additional context" section.
@dosubot dosubot bot added the embedded label Jan 3, 2025
Copy link

dosubot bot commented Jan 3, 2025

Hey there, @natwar585! I'm here to help you with any bugs, questions, or contributions while you wait for a human maintainer. Let's squash those bugs together! 🤖

I found a similar closed issue regarding chart loading problems when embedding Superset charts in an HTML iframe, but no solution was found in the comments [1].

For your issue with inconsistent rendering in an Angular application, ensure that the EMBEDDABLE_CHARTS configuration is set to True in your Superset configuration. Additionally, configure CORS by setting ENABLE_CORS to True and specifying CORS_OPTIONS in your superset_config.py file. You may also need to adjust the content security policy (CSP) using flask-talisman to allow your domain to display Superset content [2][3].

If you encounter specific error messages, you might want to check for common exceptions like SupersetVizException, NoDataException, or SupersetSyntaxErrorException, which can provide more insight into the rendering issues [4].

Adjusting the logging settings to DEBUG mode can also help you gather more detailed information for debugging [2][5].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@rusackas
Copy link
Member

rusackas commented Jan 3, 2025

It might be helpful to provide the errors that it links to (also available in the browser's JS console) though we'll probably have trouble supporting an Angular app we have no insight/access to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants