A learning-based approach for efficient visualization construction