graph scales axes correctly and sorts data