pub unsafe fn chart_set_type(obj: *mut Object, type_: ChartType) -> Result<()>
Pointers must be valid for the call.