Selecting bars in a series with a TColorBand
Posted: Wed Feb 10, 2016 5:36 pm
I need to create a UI that uses color bands to select a series of bars in a chart using a TBarSeries.
The attached demo gets close--when the mouse goes down, it finds the closest center of a bar bar then selects from the middle of the bar to the middle of the bar when the mouse goes up.
But I need it to find the closest point between two bars and start there. (After getting that right, I need to add multiple color bands, but I believe after getting this first step right everything else should be easy).
How can I achieve this?
Thank you,
Ed Dressel
The attached demo gets close--when the mouse goes down, it finds the closest center of a bar bar then selects from the middle of the bar to the middle of the bar when the mouse goes up.
But I need it to find the closest point between two bars and start there. (After getting that right, I need to add multiple color bands, but I believe after getting this first step right everything else should be easy).
How can I achieve this?
Thank you,
Ed Dressel