-
Notifications
You must be signed in to change notification settings - Fork 22
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
LineChart<String, Number> not supported. #11
Comments
Right now the library is meant to work with numerical axes only, so I assume value axis. I'm not sure it makes sense to zoom on category axes, but perhaps it could make sense to allow zooming constrained to the one ValueAxis if only X or Y is a value axis. That would be quite useful for charts showing states over time (like on/off, etc.) Is that what you are looking for? |
Jason,
Right now the library is meant to work with numerical axes only, so I assume value axis. I'm not sure it makes sense to zoom on category axes, but perhaps it could make sense to allow zooming constrained to the one ValueAxis if only X or Y is a value axis. That would be quite useful for charts showing states over time (like on/off, etc.) Is that what you are looking for?— |
Are you using the default mouse event filter that only handles primary button drags and ignores right clicks? But it sounds like you want it to pan with the right button if you drag but open menu if you don't. If I recall, jfxutils doesn't consume the events in most places. |
Hi, Jason,
Just thought I'd mention one other thing for the eventual re-write ;)--- the mouse event filter's logic is a bit backward-- it consumes the event to tell JfxUtil NOT to act. /** A JfxUtil filter that accepts only a simple, single-click MIDDLE drag without modifiers. consume() tells JfxUtils.jar to reject, oddly! */ public static final EventHandler SIMPLE_MIDDLE = ev -> { if (!JfxUtil.isDrag(ev, MouseButton.MIDDLE, 1)) ev.consume(); };
Are you using the default mouse event filter that only handles primary button drags and ignores right clicks? But it sounds like you want it to pan with the right button if you drag but open menu if you don't. If I recall, jfxutils doesn't consume the events in most places.— |
Using a LineChart with a String in either x or y axis will cause the ChartZoomManager to break.
Exception in thread "JavaFX Application Thread" java.lang.ClassCastException: javafx.scene.chart.CategoryAxis cannot be cast to javafx.scene.chart.ValueAxis
at org.gillius.jfxutils.chart.ChartZoomManager.(ChartZoomManager.java:137)
The text was updated successfully, but these errors were encountered: