/// <summary> /// Returns last calculated number cache for X axis. /// </summary> //internal XSSFNumberCache LastCaculatedXCache //{ // get // { // return lastCaclulatedXCache; // } //} /// <summary> /// Returns last calculated number cache for Y axis. /// </summary> //internal XSSFNumberCache LastCalculatedYCache //{ // get // { // return lastCalculatedYCache; // } //} internal void AddToChart(CT_ScatterChart ctScatterChart) { CT_ScatterSer scatterSer = ctScatterChart.AddNewSer(); scatterSer.AddNewIdx().val = (uint)this.id; scatterSer.AddNewOrder().val = (uint)this.order; /* TODO: add some logic to automatically recognize cell * types and choose appropriate data representation for * X axis. */ /*CT_AxDataSource xVal = scatterSer.AddNewXVal(); * CT_NumRef xNumRef = xVal.AddNewNumRef(); * xNumRef.f = (xMarker.FormatAsString()); * * CT_NumDataSource yVal = scatterSer.AddNewYVal(); * CT_NumRef yNumRef = yVal.AddNewNumRef(); * yNumRef.f = (yMarker.FormatAsString()); * * if (useCache) * { * // We can not store cache since markers are not immutable * XSSFNumberCache.BuildCache(xMarker, xNumRef); * lastCalculatedYCache = XSSFNumberCache.BuildCache(yMarker, yNumRef); * } */ CT_AxDataSource xVal = scatterSer.AddNewXVal(); XSSFChartUtil.BuildAxDataSource <Tx>(xVal, xs); CT_NumDataSource yVal = scatterSer.AddNewYVal(); XSSFChartUtil.BuildNumDataSource <Ty>(yVal, ys); }
internal void AddToChart(CT_ScatterChart ctScatterChart) { CT_ScatterSer ctScatterSer = ctScatterChart.AddNewSer(); ctScatterSer.AddNewIdx().val = (uint)this.id; ctScatterSer.AddNewOrder().val = (uint)this.order; XSSFChartUtil.BuildAxDataSource <Tx>(ctScatterSer.AddNewXVal(), this.xs); XSSFChartUtil.BuildNumDataSource <Ty>(ctScatterSer.AddNewYVal(), this.ys); }
internal void AddToChart(CT_ScatterChart ctScatterChart) { CT_ScatterSer scatterSer = ctScatterChart.AddNewSer(); scatterSer.AddNewIdx().val = (uint)this.id; scatterSer.AddNewOrder().val = (uint)this.order; CT_AxDataSource xVal = scatterSer.AddNewXVal(); XSSFChartUtil.BuildAxDataSource <Tx>(xVal, xs); CT_NumDataSource yVal = scatterSer.AddNewYVal(); XSSFChartUtil.BuildNumDataSource <Ty>(yVal, ys); if (IsTitleSet) { scatterSer.tx = this.GetCTSerTx(); } }