Skip to content

Charts are not showing in explore mode until you refresh the page #296

@warenlg

Description

@warenlg

I had this issue when doing a demo on my local instance.
Let's say you are in SQL Lab, you're query is running fine and you have your output table. After clicking on Explore the default visualization type is a Table and you can see such a table on the right. Then, if I'm changing the visualization type to a bar or a pie chart for example, it shows me Control labeled "Metrics" cannot be empty. Ok fine let's set the proper metrics and series in case of a bar chart.
However, when your query configuration is fine and you click on RUN QUERY, no chart is showing, no message error, nothing. When I inspect this element of the page, the console shows me:

explore.4a1f0ba….entry.js:2 Item with key "SUPERSET_DEFAULT" already exists. You are assigning a new value.

:8088/superset/log/?…events&slice_id=0:1 Failed to load resource: the server responded with a status of 400 (BAD REQUEST)
explore.4a1f0ba….entry.js:2 

Uncaught TypeError: e.map is not a function
    at explore.4a1f0ba….entry.js:2
    at r.utils.state.<anonymous> (explore.4a1f0ba….entry.js:2)
    at r.utils.state.update (explore.4a1f0ba….entry.js:2)
    at SVGSVGElement.<anonymous> (explore.4a1f0ba….entry.js:2)
    at explore.4a1f0ba….entry.js:2
    at he (explore.4a1f0ba….entry.js:2)
    at Array.ws.each (explore.4a1f0ba….entry.js:2)
    at Array.I (explore.4a1f0ba….entry.js:2)
    at Array.J.call (explore.4a1f0ba….entry.js:2)
    at Object.generate (explore.4a1f0ba….entry.js:2)

:8088/superset/log/?…events&slice_id=0:1 Failed to load resource: the server responded with a status of 400 (BAD REQUEST)

After the demo, I figured out that I need to refresh the page for the chart to finally show. I don't remember this behavior before.

sourced version v0.17.0
srcd/sourced-ui:v0.7.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    blockedThis is blocked for some reasonbugSomething isn't workingcan't reproduceThis issue cannot be reproduced

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions