added legend read from json data