Medical X-rays are not a problem if we have Graves’. Normal practice should be followed. By that I mean if the doctor determines you need an x-ray they will perform one.
Since it is your ankle and not your neck it should be safe. You can mention it to the x-ray technician and they can always put the lead collar around your neck on top of the lead apron they put on your chest like they did when I got my dental x-rays done recently.