Currently there is no way to bind Analytics pane features to measure as it happens in built in visuals. That feature would massively improve functionality of customs visuals (e.g. adding custom lines to visuals that are based on measure calculation made on context of whole visual)
The issue isn't related to the Tools package. Feel free to contact pbicvsupport@microsoft.com with questions related to the development of custom visuals or create a feature request on PowerBI forum
Currently there is no way to bind Analytics pane features to measure as it happens in built in visuals. That feature would massively improve functionality of customs visuals (e.g. adding custom lines to visuals that are based on measure calculation made on context of whole visual)