ABTSoftware / SciChart.JS.Examples

MIT License
76 stars 36 forks source link

Drag of JavaScript Chart Editable Annotations at the time of insertion #181

Open sakshamjaiswal1 opened 1 year ago

sakshamjaiswal1 commented 1 year ago

We are using JavaScript Chart Editable Annotations but we need some more modificaions in that which can enhance this feature in terms of user experience. Currently when the anonations are loaded they are havinng a fixed shape but we want the annotations to be draggable as soon as they are loaded in the charts whitout any extra clicks,this feature is provided by tradingView charts and we also want to provide the same to our users. I have attached images and videos for better understanding of the issue. Hope we can get the solution of this issue asap.

Please refer to the below video link for beter understanding. https://www.scichart.com/wp-content/sabai/File/files/l_58835d6c84c3ee425515c6f130db83d3.jpg

andyb1979 commented 1 year ago

Hi there, is this the same requirement as this forum question?

If so, we don't support this right now, but David (@antichaosdb) our CTO thinks it should be possible via a custom modifier. He was looking at it recently. David - any thoughts?

andyb1979 commented 1 year ago

Actually, the forum question I linked to has David's answer. Can you check it?

Curious why you didn't receive an email notification of updated answer

sakshamjaiswal1 commented 1 year ago

hey i have just now checked the answer but did not able to get few of the concepts can i get a working example so that i can implement it and run in my app it will be very helpfull if i can get codepen working demo @andyb1979 Thnks in advance

andyb1979 commented 1 year ago

understand, David did mention in the forum post that he plans to make a full example at some point however we have other priorities at the moment.

My advice for now is take the example we posted in github here. Substitute the CreateAnnotationModifier here. Does this show the concept?

Basically what we're doing is overriding our ChartModifierBase API to allow you to control precisely what interactions happen on mouse-down and how to place annotations + edit them immediately.

andyb1979 commented 1 year ago

@sakshamjaiswal1 I sent you an email (unrelated to this issue) asking what you're making, I'm keen to hear more about the project!