-
-
Notifications
You must be signed in to change notification settings - Fork 484
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
How to get value when click mouse on the chart? #369
Comments
Add a |
Thank you for your reply, but the link is show "Human verification"... |
I see it, too. After verifying, refine your search according to your use case. Failing that, more examples are archived here. |
I see many examples use XYPlot, and I use CategoryPlot, so it no use for me... my code as below: DefaultCategoryDataset dataset = new DefaultCategoryDataset(); //show chart Frame:
} so, how to get the value(2 Line have 2 value) and date(only one) to show in frame title??? |
Focusing on the mouse event's
|
if (event.getEntity() instanceof CategoryItemEntity) it can work, thank you. but it is not my request, I want to show the all lines value when the mouse move aross the date column, not the mouse point move in the entity. And show the DomainCrosshair (just use plot.setDomainCrosshairVisible(true))... |
Since your domain axis is a |
Thank you!I use JSlider and barely solve the demand. |
I create a line chart use DefaultCategoryDataset, and it have several lines, Y axis is number value and X axis is date.
How can I get the value of each line and date at the point when I click mouse on the chart?
Thanks.
The text was updated successfully, but these errors were encountered: