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

[Feature]: Single datapoint in line charts #649

Open
2 tasks
sqmch opened this issue Jul 7, 2024 · 0 comments
Open
2 tasks

[Feature]: Single datapoint in line charts #649

sqmch opened this issue Jul 7, 2024 · 0 comments

Comments

@sqmch
Copy link

sqmch commented Jul 7, 2024

Describe the feature

Hello!

In the current state, the line chart does not visualize a single datapoint. If your data has one entry, the chart renders but is completely empty as it requires two datapoints to draw a line, however if you hover over the chart, it still catches the invisible datapoint and shows the tooltip. In chartjs for example, this is avoided through having a point/dot rendered for each datapoint in addition to the line. So when there is only one datapoint, you at least see that one dot (and it doesn't mean you have to settle with bumpy lines as a result, if the dot radius is configured the same as the width of the line).

I realize the charts are still in alpha and all, but just wanted to throw it out there as a request, thank you.

Additional information

  • I intend to submit a PR for this feature.
  • I have already implemented and/or tested this feature.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant