use tracker colors for state
angle x axis tags
extract shared config
extract legend and axes code