Interactively adding guides to chart on click/tap

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 adding multiple guides with optional text label.