paint chart from json data