public boolean SetChartType(int type) {
        
        if ((type>=0) && (type<NUMOFCHARTS)) {
            m_chartType = type;
            return(true);
        } else {
            return(false);
        }
    }