public ChartBase(Report r, Row row, Chart c, MatrixCellEntry[,] m, Expression showTooltips, Expression showTooltipsX,Expression _ToolTipYFormat, Expression _ToolTipXFormat) { _ChartDefn = c; _row = row; _DataDefn = m; _bm = null; int width = _ChartDefn.WidthCalc(r, null); int height = RSize.PixelsFromPoints(_ChartDefn.HeightOrOwnerHeight); Layout = new ChartLayout(width, height); _SeriesBrush = null; _SeriesMarker = null; _showToolTips = showTooltips.EvaluateBoolean(r, row); _showToolTipsX = showTooltipsX.EvaluateBoolean(r, row); _tooltipYFormat = _ToolTipYFormat.EvaluateString(r, row); _tooltipXFormat = _ToolTipXFormat.EvaluateString(r, row); }
int _GapSize = 6; // TODO: hard code for now public ChartBar(Report r, Row row, Chart c, MatrixCellEntry[,] m, Expression showTooltips, Expression showTooltipsX,Expression _ToolTipYFormat, Expression _ToolTipXFormat) : base(r, row, c, m,showTooltips,showTooltipsX,_ToolTipYFormat,_ToolTipXFormat) { }
public void Chart(Chart c, Row r, ChartBase cb) { string relativeName; Stream io = _sg.GetIOStream(out relativeName, "png"); try { cb.Save(this.r, io, ImageFormat.Png); } finally { io.Flush(); io.Close(); } relativeName = FixupRelativeName(relativeName); // Create syntax in a string buffer StringWriter sw = new StringWriter(); string bookmark = c.BookmarkValue(this.r, r); if (bookmark != null) sw.WriteLine("<div id=\"{0}\">", bookmark); // can't use the table id since we're using for css style string cssName = CssAdd(c.Style, c, null); // get the style name for this item sw.Write("<img src=\"{0}\" class='{1}'", relativeName, cssName); string tooltip = c.ToolTipValue(this.r, r); if (tooltip != null) sw.Write(" alt=\"{0}\"", tooltip); if (c.Height != null) sw.Write(" height=\"{0}\"", c.Height.PixelsY.ToString()); if (c.Width != null) sw.Write(" width=\"{0}\"", c.Width.PixelsX.ToString()); sw.Write(">"); if (bookmark != null) sw.Write("</div>"); tw.Write(Action(c.Action, r, sw.ToString(), tooltip)); return; }
public void Chart(Chart c, Row r, ChartBase cb) { }