protected XAxisLabelPosition GetXAxisPosition(XAXISPosition mode)
        {
            switch (mode)
            {
            case XAXISPosition.BOTTOM:
                return(XAxisLabelPosition.Bottom);

            case XAXISPosition.TOP:
                return(XAxisLabelPosition.Top);

            case XAXISPosition.BOTTOM_INSIDE:
                return(XAxisLabelPosition.BottomInside);

            case XAXISPosition.TOP_INSIDE:
                return(XAxisLabelPosition.TopInside);

            case XAXISPosition.BOTH:
                return(XAxisLabelPosition.BothSided);

            default:
                return(XAxisLabelPosition.Top);
            }
        }
        public static XAxis.XAxisPosition GetXAxisPosition(XAXISPosition mode)
        {
            switch (mode)
            {
            case XAXISPosition.BOTTOM:
                return(XAxis.XAxisPosition.Bottom);

            case XAXISPosition.TOP:
                return(XAxis.XAxisPosition.Top);

            case XAXISPosition.BOTTOM_INSIDE:
                return(XAxis.XAxisPosition.BottomInside);

            case XAXISPosition.TOP_INSIDE:
                return(XAxis.XAxisPosition.TopInside);

            case XAXISPosition.BOTH:
                return(XAxis.XAxisPosition.BothSided);

            default:
                return(XAxis.XAxisPosition.Top);
            }
        }