Annotating chart with dynamically adding guides with click/tap on chart

This advanced demo shows how you can use chart’s cursor place a “marker” on the chart click.

For that it uses chart’s init event handler to attach a JavaScript generic “click” event, which is then used to add a Guide dynamically.

It also utilizes changed event to track cursor movement, so that when click occurs we know where to place a guide.

Check out this demo for a basic guide placement.