Added support for specifying x-axis parameter (defaults to time)