d.legend API change reflected