ChartObject WebFAQ - Q19


    /* Create a chart */

    ...

    /* Create the image object */
    ErrorStatus = XpmReadFileToPixmap(XtDisplay(top_level), 
                            XRootWindowOfScreen(XtScreen(top_level)),
                            "int.xpm",
                            &pixmap, &mask, &attributes);

    n = 0;
    rectangle.x1 = 0;
    rectangle.y1 = 15;
    rectangle.x2 = 3;
    rectangle.y2 = 45;
    XtSetArg (args[n], XmNrectangle, &rectangle); n++;
    XtSetArg (args[n], XmNimagePixmap, pixmap); n++;
    XtSetArg (args[n], XmNsensitive, False); n++;
    XtSetArg (args[n], XmNlineStyle, XintLINE_NONE); n++;

    image = XintCreateImageObject(edit, "image",
                                 args, n);



    /* Create a data group */
    ....


    /* Put the image object into the plot */

    plot = XintChartGetComponent(chart, XintCHART_COMPONENT_PLOT);
    XintChartInsertObject(plot, image);


    /* Associate the data group with the chart object */

    XintChartAssociateData(chart, data_group);


Click here for the Image
Back to ChartObject FAQ

© INT 1996.