-
Yes, I followed the following tutorial but I want to pass object of rollover in it , I dont want to use .withRollOverModifier because I want to disappear Rollover modifier in some cases and it is only possible when I made an object of Rollover Modifier globally.
-
Then try to use .withModifier() and pass RolloverModifier instance as parameter, but be aware that you can’t use same modifier instance for several charts
-
Yes, I am using it in the same way but it only display RolloverModifier in one chart at a time ,I want to share that rolloverModifier in all charts
-
As I said before you can’t use same modifier instance in several charts at the same time. If you want you to reuse modifier you can remove it from previous chart and only then add into another one.
-
Download the tutorial code Muhammad, all will become clear
-
I am using another way to handle this case, I create an instance of sharedRolloverModifier and use isEnabled property to overcome this problem. On longpress I set isEnabled “true” and onUp I set isEnabled “false” , everything is working fine except when I set isEnabled property as “false” the vertical line of RolloverModifier doesnot disappear from last location. How can I also disappear the vertical line? . I have attached my code below kindly review it and give feedback that is everything is fine in my code because when I use scicharts for more than 5 to 10 minutes in my original app in which my data is coming from API my device becomes heatup and performance becomes slow by time , Is there is some problem in my code or it is some other problem? Thanks
-
Is there any solution regarding the above mentioned Rollover modifier problem?
-
As Andrew said solution is to create a separate RolloverModifier for each chart and synchronize them using MotionEventGroup.