Chocolate triggers my period

Every since I started my period it has always been irregular. I notice every time I eat chocolate it makes my period come on. WHY? Any thoughts?