Added ability to provide a function for tick formatting on x and y axis. Added ability to pass in an x and y element to target for the ticks