Easy Chart Adapt onTagsDropped for Touchscreen Application

I have a custom onTagsDropped that I've written for use with an easy chart. However, it's not so easy to drag and drop pens onto an easy chart with a touchscreen.

What's the best way to use a button on the screen to do the same thing with the selected pen? I should be able to grab the component and the paths from the tag browser and call the same onTagsDropped function, right?

If you made the onTagsDropped event a one-line call to a project library script function, yes.

1 Like

I did! Easy peasy. Custom dataset property on the button bound to the selected paths from the tag browse tree.

paths = event.source.paths.getColumnAsList(0)

chart = event.source.parent.getComponent('Custom')

Trending.customChartTagsDropped(chart, paths)
2 Likes