Beispiel #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);
        }
Beispiel #2
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);
        }