replace old chart on datatype change