Based on my experience, the Analytics features aren't available for custom visual. But you may try to add a Boolean object in Format pane.
Based on my experience, the Analytics features aren't available for custom visual. But you may try to add a Boolean object in Format pane.