Exemplo n.º 1
0
        public void SetLogBase(double logBase)
        {
            if (logBase < XSSFChartAxis.MIN_LOG_BASE || XSSFChartAxis.MAX_LOG_BASE < logBase)
            {
                throw new ArgumentException("Axis log base must be between 2 and 1000 (inclusive), got: " + (object)logBase);
            }
            CT_Scaling ctScaling = this.GetCTScaling();

            if (ctScaling.IsSetLogBase())
            {
                ctScaling.logBase.val = logBase;
            }
            else
            {
                ctScaling.AddNewLogBase().val = logBase;
            }
        }
Exemplo n.º 2
0
        public void SetLogBase(double logBase)
        {
            if (logBase < Min_LOG_BASE ||
                Max_LOG_BASE < logBase)
            {
                throw new ArgumentException("Axis log base must be between 2 and 1000 (inclusive), got: " + logBase);
            }
            CT_Scaling scaling = GetCTScaling();

            if (scaling.IsSetLogBase())
            {
                scaling.logBase.val = logBase;
            }
            else
            {
                scaling.AddNewLogBase().val = (logBase);
            }
        }