public void Setgrid() { ChartGrid grid = new ChartGrid (this.Chart ); grid.GridClass = "major"; this.Content .Add (grid); }
/// <summary> /// create the chart grid /// </summary> /// <param name="node"></param> /// <returns></returns> private IContent CreateChartGrid(XmlNode node) { try { ChartGrid grid = new ChartGrid (this.Chart .Document ,node); //grid.Node = node; grid.Chart = this.Chart ; ChartStyleProcessor csp = new ChartStyleProcessor (this.Chart ); XmlNode nodeStyle = csp.ReadStyleNode(grid.StyleName); IStyle style = csp.ReadStyle (nodeStyle,"grid"); if (style != null) { grid.Style =style; this.Chart .Styles .Add (style); } return grid; } catch(Exception ex) { throw new AODLException("Exception while creating the chart grid!", ex); } }