update area to area chart when data type changes