update chart when certain options change

This patch allows for the updating of 7 chart properties in real time: x axis, y axis, legend, controls, interactive, distributionX, and distributionY. I tested it as thoroughly as one could without having an intricate knowledge of this library, so there may still be errors.