feat(component.legend) integrating cursor pointer in the update_