add setXAxisFormat method to LineGraph (for completeness)
refactor somewhat the local makeGraphPoints and makeGraphData functions