amcharts / amcharts5

The newest, fastest, and most advanced amCharts charting library for JavaScript and TypeScript apps.
Other
359 stars 96 forks source link

Disable interacting with drawings on Stock Chart #1109

Closed Afellman closed 1 year ago

Afellman commented 1 year ago

Hi,

I would like the ability to disable all user interactions with drawings, specifically on the stock chart.

Use Case User enters draw mode, draws many things, leaves draw mode (toggle drawingControl "active" setting), then we don't want the user to be able to interact with these created drawings while they are navigating the chart. We also have a click event on our candle series and drawing anything over a candle disables the click event.

I am imagining a simple setting on the drawingControl drawingControl.set("userInteraction", false); or something equivalent.

zeroin commented 1 year ago

It's a reasonable request, we will add a method in next release and will let you know.

Afellman commented 1 year ago

@zeroin Great, thank you!

martynasma commented 1 year ago

Implemented in 5.4.9.

[5.4.9] - 2023-10-06

Added

Fixed

Full change log.

Download options.

Make sure you clear your browser cache after upgrading. And feel free to contact us again if you are still experiencing this issue.

Afellman commented 1 year ago

Thank you!

Afellman commented 1 year ago

@martynasma Is there a trick to getting this to work? The toggle doesn't appear to be doing anything.

https://codepen.io/andrew-fellman-highway-com/pen/eYbQNdz

martynasma commented 1 year ago

Editing is disabled, albeit hover and drag is still active. We'll fix it. Thanks for letting us know.

martynasma commented 1 year ago

Fixed in 5.4.11.

[5.4.11] - 2023-10-10

Fixed

Full change log.

Download options.

Make sure you clear your browser cache after upgrading. And feel free to contact us again if you are still experiencing this issue.