Error while using Piechart v1.5 on Grafana v7.03

Hi All,

I have my data source set as JSON with metric as table. The data has only two columns ‘type’ and ‘count’. I am able to show the data as table visualization. But, when I select Piechart I am getting ’ An unexpected error happened’ (attached screenshot).

Able to show the json data as table:-

But when I select piechart visualization, i am getting error

My JSON data is of table format. Does piechart supports table metric?
Please suggest.