Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upCrosshair labels onNearestX only works up until the end of the shortest line? #1306
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
I am using the API reference and this code snippet as examples for adding crosshairs to my XYPlot which contains a variable number of LineSeries. So far it has been working, but I am running into some cases where one LineSeries is shorter than the rest and crosshairs won't show up for X values that go beyond the shortest lines' X values.
Here's an example. The top line is shorter and the Crosshairs only show up until the last X value of the shorter line. I want to be able to show Crosshairs for all values up until the end of the graph (the longest line).

Is this possible?
(Even if I just take the example code and just make one line longer than the other by making one data array longer, I run into this same behavior.)
Help would be greatly appreciated!