Grafanalib.core missing a class for BarChart(Beta) or PieChart(Beta) init

Grafana 9.0
Try to genereate dashboard from the python code, and I fail to find way to generate BarChat(Beta) or PieChart(Beta) graph, for Bar chart I have to use TimeSeries and draw type as Bar to work aound it, and PieChat it use old PieChart,I fail to find way to use beta graph.

                    graph = TimeSeries(
                    graph = PieChart(

The problem of old method like TimeSeries is that the chart is not look like the beta chart, I wonder anyone know how to generate one without rewrite alll the json?