Chart stuff mostly working