PieChart in Grafonnet?

Is anyone using Grafonnet to have their dashboards generated automatically via code? I’m just getting into it. The docs are very scant and hard to follow. I’m trying to add a PieChart using the pieChartPanel.new API.

I am getting this error: STATIC ERROR: dashboard.jsonnet:33:3-16: Unknown variable: pieChartPanel