예제 #1
0
        public IValueAxis CreateValueAxis(AxisPosition pos)
        {
            XSSFValueAxis xssfValueAxis = new XSSFValueAxis(this, (long)(this.axis.Count + 1), pos);

            if (this.axis.Count == 1)
            {
                IChartAxis axi = this.axis[0];
                axi.CrossAxis((IChartAxis)xssfValueAxis);
                xssfValueAxis.CrossAxis(axi);
            }
            this.axis.Add((IChartAxis)xssfValueAxis);
            return((IValueAxis)xssfValueAxis);
        }
예제 #2
0
        public IChartAxis CreateDateAxis(AxisPosition pos)
        {
            long         id       = axis.Count + 1;
            XSSFDateAxis dateAxis = new XSSFDateAxis(this, id, pos);

            if (axis.Count == 1)
            {
                IChartAxis ax = axis[0];
                ax.CrossAxis(dateAxis);
                dateAxis.CrossAxis(ax);
            }
            axis.Add(dateAxis);
            return(dateAxis);
        }
예제 #3
0
        public IChartAxis CreateCategoryAxis(AxisPosition pos)
        {
            long             id           = axis.Count + 1;
            XSSFCategoryAxis categoryAxis = new XSSFCategoryAxis(this, id, pos);

            if (axis.Count == 1)
            {
                IChartAxis ax = axis[0];
                ax.CrossAxis(categoryAxis);
                categoryAxis.CrossAxis(ax);
            }
            axis.Add(categoryAxis);
            return(categoryAxis);
        }
예제 #4
0
        public IValueAxis CreateValueAxis(AxisPosition pos)
        {
            long          id        = axis.Count + 1;
            XSSFValueAxis valueAxis = new XSSFValueAxis(this, id, pos);

            if (axis.Count == 1)
            {
                IChartAxis ax = axis[0];
                ax.CrossAxis(valueAxis);
                valueAxis.CrossAxis(ax);
            }
            axis.Add(valueAxis);
            return(valueAxis);
        }