add axis to graph and fix indice bug to display data