data to curves