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

Bug - Line chart does not connect nulls values when multiple lines plotted #32032

Open
3 tasks done
rebuglio opened this issue Jan 30, 2025 · 1 comment
Open
3 tasks done
Labels
viz:charts:line Related to the Line chart

Comments

@rebuglio
Copy link

Bug description

When plotting more than one line in line/mixed charts, the "connectNulls" option (https://echarts.apache.org/en/option.html#series-line.connectNulls) does not work.

Example in IMAGE1: There are four missing points.
Expected behavior: A continuous yellow line should connect the last leftmost point (67.3M) to the single rightmost point, just as it does in IMAGE2.

IMAGE2 plots the same graph but without the grey line. In this case, the behavior is correct.

Screenshots/recordings

IMAGE 1:
Image

IMAGE2:
Image

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 viz:charts:line Related to the Line chart label Jan 30, 2025
Copy link

dosubot bot commented Jan 30, 2025

Hey there, @rebuglio! I'm here to help you with any bugs, questions, or contributions you have for the project. Let's tackle this together!

The issue you're experiencing with the "connectNulls" option not working when multiple lines are plotted in line/mixed charts might be related to how the connectNulls option is implemented in the Superset codebase. The connectNulls option is applied to the series configuration in the transformSeries function, and it is specifically set for derived series in the transformProps function [1][2].

If the behavior is not as expected when multiple datasets are plotted, it could be due to the logic that determines whether a series is considered derived, which affects the connectNulls setting. You might want to check if the series in your chart are being correctly identified as derived or not, as this could influence the connectNulls behavior.

Additionally, there might be specific conditions or logic in the codebase that affect how connectNulls is applied when multiple lines are plotted, which could be worth investigating further [1][2].

To continue talking to Dosu, mention @dosu.


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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
viz:charts:line Related to the Line chart
Projects
None yet
Development

No branches or pull requests

1 participant