add rjson::fromJSON so create_chart will work