Add new API endpoint to support chart ordering