What is the recommended approach for creating and manipulating charts via IFM?

What libraries should be included (ifm/diagram.h or ifc_diagram.c?)

How should IfmDiagramVaSetValues be called for setting axis labels, etc?  Code below is for context...


TSDiag=IfmDiagramCreate(pDoc,NULL,"Chart Title");
TSCurve=IfmCurveCreate(pDoc,"Curve Name",1000);

IfmDiagramShow(TSDiag,1);

IfmDiagramVaSetValues(TSDiag,IfmNabscissaLabel, *****Text Input Format??***** );
IfmDiagramVaSetValues(TSDiag,IfmNordinateLabel, *****Text Input Format??*****);

IfmDiagramAddCurve(TSDiag,TSCurve);
        IfmCurveAddPoint(TSCurve,x_value,y_value);