added "color_var" public variable, improved graph behavior