Added functionality to ensure that the chart colors don't change when the factor is changed.