Pre loader

click() event for subchart

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

0
0

Hi,

I created multiple charts by using subchart api. I would like to know how to listen click() event for each subchart. In other words, how do I know which subchart is clicked by the user?

Thanks

Version
3.3.592
  • You must to post comments
0
0

Hello, I think it could be easily implemented using a custom Chart Modifier.
For example:
– create a derived modifier class and override the modifierMouseDown method

    override modifierMouseDown(args: ModifierMouseArgs) {
       super.modifierMouseDown(args);

      console.log(`Clicked ${this.parentSurface.id}`);
  }
  • add the modifier to each subchart

Related documentation links:
https://www.scichart.com/documentation/js/current/webframe.html#CustomChartModifierAPI.html
https://www.scichart.com/documentation/js/current/webframe.html#DetectingClicksOnChartParts.html

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.