export widget QUERY in JSON; fill the chart