test chart api rearrange