ABTSoftware / SciChart.JS.Examples

MIT License
77 stars 37 forks source link

Getting X and Y pair values when we get XyDataSeries by Zoom area #64

Closed hecto932 closed 3 years ago

hecto932 commented 3 years ago

Hello!

Is there is any way to get the X and Y pair values when we create a box annotation?

This issue is related to #21

klishevich commented 3 years ago

Hi @hecto932 if you need to get box coordinates out of RubberBandXyZoomModifier, you need to create your custom modifier extending RubberBandXyZoomModifier. Please take a look at this example, it shows how to extend chart modifiers - https://github.com/ABTSoftware/SciChart.JS.Examples/tree/master/Sandbox/CustomerExamples/RangeSelectionWithCustomModifier

hecto932 commented 3 years ago

Awesome @klishevich!

I'll look into it

hecto932 commented 3 years ago

@klishevich

Following that example above and trying to make something like #21, how can I get all the XYDataSeries by Range Selection on X-axis?

Do we have some method to test Bounds just in the X range?

klishevich commented 3 years ago

Hi @hecto932 take a look at Hit-Test API - https://demo.scichart.com/javascript-chart-hit-test-on-click