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

Black screen on sankey and heatmaps #7058

Closed
3 tasks done
jasonshah opened this issue Mar 19, 2019 · 12 comments
Closed
3 tasks done

Black screen on sankey and heatmaps #7058

jasonshah opened this issue Mar 19, 2019 · 12 comments
Assignees
Labels
!deprecated-label:bug Deprecated label - Use #bug instead

Comments

@jasonshah
Copy link

Make sure these boxes are checked before submitting your issue - thank you!

  • I have checked the superset logs for python stacktraces and included it here as text if there are any.
  • I have reproduced the issue with at least the latest released version of superset.
  • I have checked the issue tracker for the same issue and I haven't found one similar.

Superset version

0.99dev, commit guid 07c340c

Expected results

The heatmap and sankey charts render correctly.

Actual results

The heatmaps show black in many places, including covering the entire screen in the second screenshot. The sankey's lines connecting the axes are black.
(Apologies about the blurring effect in both screenshots; I am trying to protect sensitive information.)
1
2

Steps to reproduce

Open a dashboard that has the sankey or heatmap defined.

@kristw kristw added !deprecated-label:bug Deprecated label - Use #bug instead .vis labels Mar 19, 2019
@iaperez
Copy link
Contributor

iaperez commented Apr 2, 2019

it seems to happen only in production mode. I can't reproduce it on development mode.

@mistercrunch
Copy link
Member

That's so weird. It also looks like the heatmap canvas is not rendering in the right spot.

@mistercrunch
Copy link
Member

When using npm run dev, on the <rect> behind the heatmap I see:
Screen Shot 2019-04-02 at 9 41 56 PM

But when I run npm run build I don't see it.

@mistercrunch
Copy link
Member

@kristw @williaster any idea where this could be coming from? Could it be related to missing CSS when packaging the legacy vises?

@kristw
Copy link
Contributor

kristw commented Apr 3, 2019

From screenshot it looks like css

@mistercrunch
Copy link
Member

mistercrunch commented Apr 3, 2019

Yes @kristw , but any idea how/why the CSS would be different on npm run dev and npm run build

@mistercrunch
Copy link
Member

@kristw @williaster I'd love to get input and any intuition you may have on the webpack intricacies that may be at play here before I dive into this one.

@williaster
Copy link
Contributor

There's a switch statement for css loading in webpack.config.js, I'm not sure why this would be different now that we have plugins though.

@mistercrunch
Copy link
Member

Oh good catch, though I tried disabling as shown here and it didn't work :(
Screen Shot 2019-04-04 at 9 52 04 PM

I'm not sure how to go about this one.

@kristw
Copy link
Contributor

kristw commented Apr 5, 2019

Let me see if I can reproduce.

@kristw
Copy link
Contributor

kristw commented Apr 10, 2019

I am looking at it. There are some issues with importing css from the package.
Can reproduce this with the production storybook of @superset-ui-plugins
Trying to figure out a clean solution.

@kristw kristw self-assigned this Apr 10, 2019
@kristw
Copy link
Contributor

kristw commented Apr 10, 2019

One short-term remedy is to point to the lib output instead of using default esm.
For example

import CalendarChartPlugin from '../../../../superset-ui-legacy-plugin-chart-calendar/lib';

instead of

import CalendarChartPlugin from '../../../../superset-ui-legacy-plugin-chart-calendar';

I may drop the module fields in package.json of the legacy packages to make import points to lib by default.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
!deprecated-label:bug Deprecated label - Use #bug instead
Projects
None yet
Development

No branches or pull requests

5 participants