How to setup a chart range of X/Y axies, via python scripts?

Operating system: windows
Slicer version: 4.11.0
Expected behavior: change X/Y axes minimum and maximum in charts
Actual behavior:

Hi all,
I am still trying to use a Chart (slicer.vtkMRMLChartNode()) but I am stuck at the settings of its properties such as: how to reset up the minimum and maximum in a chart? Say, by default I have a range of x-axis from 8 to 10, now I would like to set it up as from 0 to 11.

Thanks a lot.

Hahha, forget about this:
chartNode.SetYAxisRangeAuto(False)
chartNode.SetYAxisRange(0, 4e5)

Thanks for sharing the solution. You can find further information and examples here: