Recent

Author Topic: lasso selection  (Read 1636 times)

apeoperaio

  • Sr. Member
  • ****
  • Posts: 273
lasso selection
« on: May 15, 2019, 10:25:48 am »
Dear all,
is there a way to select points in a TAChart using lasso selection?
Have a look here for an example:
https://plot.ly/javascript/lasso-selection/
https://onlinehelp.tableau.com/current/pro/desktop/en-us/inspectdata_selectiontools.htm

Has TAChart this functionality, someone has already implemented it? Or do you have any suggestion on how to implement it?
I think it is a very nice feature.
Thank you in advance,
Andrea

wp

  • Hero Member
  • *****
  • Posts: 11916
Re: lasso selection
« Reply #1 on: May 15, 2019, 11:26:06 am »
Has TAChart this functionality
No
someone has already implemented it?
No
Or do you have any suggestion on how to implement it?
Should be based on the ChartTools. Assuming a rectangular selection,  code can be borrowed from the ZoomDragTool. In the MouseUp event of the tool, all data points enclosed by the selection rectangle should be collected, stored in an array or list and passed to an OnSelect event.

apeoperaio

  • Sr. Member
  • ****
  • Posts: 273
Re: lasso selection
« Reply #2 on: May 15, 2019, 04:50:18 pm »
Thanks @wp.
I am already using the rectangular selection but in some cases a more flexible selection (lasso) would be better.
I will look around.
Thank you.
Andrea

 

TinyPortal © 2005-2018