updata Charts's constructor