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

StepLineChart won't draw a single point line segment or area fill, but will show the point dot #1599

Open
IanMcCarthy opened this issue Mar 4, 2024 · 2 comments

Comments

@IanMcCarthy
Copy link

I know a StepLineChart is a specific type of line chart, and for ordinary line charts I understand why you can't draw a single point line segment (because it has to come from or go to the next point).

But for the StepLineChart, the line is self referencing and of a fixed width.

Seems like it should be doable.

I only ask, because I actually have a requirement for such a chart, and I think it would be easier than trying to stack a bar chart over the other traces on my existing (StepLineChart) chart.

@IanMcCarthy
Copy link
Author

Sorry, didn't make this clear in original post, but I'm looking at this when the underlying data contains FlSpot.nullSpot.

The width of each line segment can still be determined from the number of points (as a whole) in the dataset, but a single valid value (nullSpot either side) doesn't draw the horizontal line portion, or the under line fill, although you can display the spot in the centre of the (not drawn) line.

@imaNNeo
Copy link
Owner

imaNNeo commented Apr 14, 2024

Hi there, can you please provide a reproducible code and maybe a screenshot from the issue that you're talking about?
Thanks!

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

No branches or pull requests

2 participants