added domain and scale to axis directive

and changed graph directive to use axis directive