Mermaid lines not showing in xy chart

Thanks for your help. Where do I put this additional code? does it go in a separate file somewhere?