make chart output work