XYRangeIndicator #390
Replies: 1 comment 4 replies
-
@Blazingsteal thanks for your interest. If I understand your use-case correctly, you want to mark a given area inside the plot using a bounding box -- similar to what the zoomer already does -- but without performing the actual zoom at the end and while providing properties for the corners in units of the given axes. I.e. something like List<double> getBoundingBoxMinX(); // list of coordinates for the 1st, 2nd, ... nth horizontal axis
List<double> getBoundingBoxMinY(); // list of coordinates for the 1st, 2nd, ... nth vertical axis
List<double> getBoundingBoxMaxX();
List<double> getBoundingBoxMaxY(); If yes, then the mouse- and bounding box handling of the Zoomer plugin notably the What would you do with the corners of the bounding box? Does your use-case require other UI elements (e.g. the XValueIndicators have additional markers on the axes). Do you need this value to derive/change other objects within or outside the chart? Since the above API doesn't exist (yet), this could be used to shape and influence a bit the final API design choices such as lists of doubles, tuples, domain objects containing also information on the axes like unit, etc. Would you be interested in this and willing to make a PR? Let us know. |
Beta Was this translation helpful? Give feedback.
-
Hi loving the library.
Tho I thought some functionality was missing such as an XYRangeIndicator.
You currently have both the X - & Y-RangeIndicators plugin but not one for both axes at the same time, which seems like something most people could use as well.
I've gone ahead and made a MWE tho keep in mind it's made in Kotlin
This is more of a workaround than a final solution as I instantiate an AbstractRangeValueIndicator with only the Xaxis and X-lower and upper bounds, tho the Yaxis and Y-lower and upper bounds are used to draw the square.
This is made from the JDK8 branch.
Beta Was this translation helpful? Give feedback.
All reactions